Harald Seiler
35b65dd8ef
reset: Remove addr parameter from reset_cpu()
...
Historically, the reset_cpu() function had an `addr` parameter which was
meant to pass in an address of the reset vector location, where the CPU
should reset to. This feature is no longer used anywhere in U-Boot as
all reset_cpu() implementations now ignore the passed value. Generic
code has been added which always calls reset_cpu() with `0` which means
this feature can no longer be used easily anyway.
Over time, many implementations seem to have "misunderstood" the
existence of this parameter as a way to customize/parameterize the reset
(e.g. COLD vs WARM resets). As this is not properly supported, the
code will almost always not do what it is intended to (because all
call-sites just call reset_cpu() with 0).
To avoid confusion and to clean up the codebase from unused left-overs
of the past, remove the `addr` parameter entirely. Code which intends
to support different kinds of resets should be rewritten as a sysreset
driver instead.
This transformation was done with the following coccinelle patch:
@@
expression argvalue;
@@
- reset_cpu(argvalue)
+ reset_cpu()
@@
identifier argname;
type argtype;
@@
- reset_cpu(argtype argname)
+ reset_cpu(void)
{ ... }
Signed-off-by: Harald Seiler <hws@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2021-03-02 14:03:02 -05:00
..
2020-05-18 18:36:55 -04:00
2020-09-09 16:57:35 -04:00
2021-02-08 08:53:14 +01:00
2021-02-25 18:06:08 +08:00
2020-12-13 07:58:17 -07:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2017-02-08 15:56:28 -05:00
2021-02-26 15:30:55 +01:00
2020-05-18 18:36:55 -04:00
2021-02-02 15:33:42 -05:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-19 14:01:47 -04:00
2020-12-18 20:32:21 -07:00
2021-01-31 14:08:56 +01:00
2021-02-15 10:16:45 -05:00
2021-02-02 15:33:42 -05:00
2020-08-22 07:58:39 -06:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2021-02-02 15:33:42 -05:00
2020-05-18 21:19:18 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2021-02-15 22:31:52 -05:00
2021-02-02 15:33:42 -05:00
2021-02-15 22:31:52 -05:00
2021-01-16 14:49:09 -05:00
2020-05-18 18:36:55 -04:00
2020-08-05 08:18:34 -04:00
2020-05-18 18:36:55 -04:00
2020-12-13 16:51:08 -07:00
2020-05-18 18:36:55 -04:00
2020-05-27 14:40:09 +08:00
2020-08-24 11:03:26 +02:00
2020-08-24 14:11:31 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2021-01-13 02:38:01 +01:00
2020-05-18 18:36:55 -04:00
2020-12-18 20:32:21 -07:00
2020-05-18 18:36:55 -04:00
2021-01-30 14:25:41 -07:00
2020-05-18 18:36:55 -04:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:09 -07:00
2021-01-31 14:08:56 +01:00
2020-05-18 18:36:55 -04:00
2021-02-15 22:31:52 -05:00
2020-07-07 15:37:13 -04:00
2021-01-25 01:15:33 +01:00
2021-02-21 06:08:00 +01:00
2021-02-02 15:33:42 -05:00
2021-02-26 16:17:43 +01:00
2020-05-18 21:19:18 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:23 -04:00
2020-10-23 13:33:07 -04:00
2020-07-09 18:57:22 -06:00
2020-05-18 21:19:18 -04:00
2021-02-15 22:31:52 -05:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-07-07 15:36:59 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:18 -04:00
2021-01-16 14:48:23 -05:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-12-13 16:51:09 -07:00
2021-02-21 06:08:00 +01:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-12-01 10:33:38 -05:00
2020-05-18 21:19:23 -04:00
2021-02-24 16:51:48 -05:00
2020-12-13 16:51:08 -07:00
2020-05-18 18:36:55 -04:00
2019-12-04 17:10:51 -05:00
2019-12-04 17:10:51 -05:00
2020-05-18 18:36:55 -04:00
2021-02-02 15:33:42 -05:00
2021-02-02 15:33:42 -05:00
2020-12-13 16:51:08 -07:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2021-01-18 15:23:06 -05:00
2021-01-15 16:00:32 -05:00
2020-05-18 18:36:55 -04:00
2020-08-03 22:19:54 -04:00
2021-02-02 15:33:42 -05:00
2020-05-18 18:36:55 -04:00
2020-08-03 22:19:54 -04:00
2020-12-18 20:32:21 -07:00
2021-02-19 15:00:34 +08:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2021-02-02 15:33:42 -05:00
2020-10-28 11:49:31 -04:00
2021-02-15 22:31:52 -05:00
2020-09-30 16:55:03 -04:00
2020-08-24 16:37:53 +02:00
2021-02-02 15:33:42 -05:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-10-23 16:52:09 +05:30
2020-12-18 20:32:21 -07:00
2020-07-08 17:21:46 -04:00
2020-07-07 15:22:42 -04:00
2020-05-18 18:36:55 -04:00
2020-12-18 20:32:21 -07:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-12-18 20:32:21 -07:00
2021-02-02 15:33:42 -05:00
2020-08-14 15:18:30 -04:00
2021-02-24 16:51:48 -05:00
2021-02-03 23:16:44 +08:00
2021-02-02 15:33:42 -05:00
2020-09-23 14:29:57 +02:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-12-13 16:51:09 -07:00
2020-05-18 18:36:55 -04:00
2021-01-05 12:24:41 -07:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-07-09 06:02:45 +02:00
2020-05-18 18:36:55 -04:00
2021-02-02 15:33:42 -05:00
2020-05-18 18:36:55 -04:00
2020-12-01 10:33:38 -05:00
2021-02-26 15:48:00 +05:30
2020-05-18 18:36:55 -04:00
2021-01-27 17:07:48 -05:00
2020-05-18 18:36:55 -04:00
2021-02-02 15:33:42 -05:00
2021-02-15 22:31:52 -05:00
2020-06-29 13:34:43 -04:00
2021-02-02 15:33:42 -05:00
2020-08-07 22:31:32 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:18 -04:00
2021-01-31 14:08:56 +01:00
2020-05-18 18:36:55 -04:00
2020-10-23 13:33:07 -04:00
2021-02-02 15:33:42 -05:00
2021-03-02 14:03:02 -05:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-12-03 21:22:40 +01:00
2020-05-18 18:36:55 -04:00
2020-05-18 21:19:18 -04:00
2021-01-04 09:10:17 -05:00
2020-05-18 21:19:18 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2021-01-31 14:08:56 +01:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-12-18 20:32:21 -07:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2021-02-15 22:31:52 -05:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-05-25 11:54:53 -04:00