Boris Brezillon
80a48dd47e
common: command: Rework the 'cmd is repeatable' logic
...
The repeatable property is currently attached to the main command and
sub-commands have no way to change the repeatable value (the
->repeatable field in sub-command entries is ignored).
Replace the ->repeatable field by an extended ->cmd() hook (called
->cmd_rep()) which takes a new int pointer to store the repeatable cap
of the command being executed.
With this trick, we can let sub-commands decide whether they are
repeatable or not.
We also patch mmc and dtimg who are testing the ->repeatable field
directly (they now use cmd_is_repeatable() instead), and fix the help
entry manually since it doesn't use the U_BOOT_CMD() macro.
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com >
Reviewed-by: Tom Rini <trini@konsulko.com >
2019-01-15 15:28:54 -05:00
..
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-09 04:40:27 -06:00
2017-02-08 15:56:28 -05:00
2018-11-20 12:35:34 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-07 10:47:38 -04:00
2018-08-11 09:16:08 +02:00
2018-11-16 13:34:34 -05:00
2017-07-03 17:35:28 -04:00
2018-08-21 16:21:37 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-04 19:45:57 +01:00
2018-05-07 09:34:12 -04:00
2018-05-23 17:30:05 -04:00
2018-12-02 21:59:37 +01:00
2018-06-19 07:31:45 -04:00
2018-05-07 09:34:12 -04:00
2018-12-07 08:13:48 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-31 09:42:41 +08:00
2018-09-29 11:49:35 -06:00
2018-12-04 19:44:57 +01:00
2018-05-07 09:34:12 -04:00
2018-09-25 21:49:18 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-09 04:40:27 -06:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-15 11:49:19 -05:00
2019-01-15 15:28:54 -05:00
2018-05-07 09:34:12 -04:00
2018-12-05 15:06:24 -05:00
2018-08-21 00:04:24 +02:00
2018-09-30 13:00:34 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-07 16:31:45 +01:00
2018-09-23 21:55:30 +02:00
2018-05-07 09:34:12 -04:00
2018-11-29 09:30:05 -07:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-09-11 11:00:54 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-01-15 15:28:43 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-01-15 15:28:54 -05:00
2018-11-26 08:25:35 -05:00
2018-12-10 07:30:58 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-06-18 14:02:04 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-10 06:03:14 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-15 11:49:19 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-09-10 20:48:17 -04:00
2018-05-07 09:34:12 -04:00
2018-10-24 14:45:36 -05:00
2018-05-07 09:34:12 -04:00
2016-03-14 15:34:50 -06:00
2019-01-15 15:28:54 -05:00
2018-05-07 09:34:12 -04:00
2018-10-02 22:12:32 +05:30
2018-09-20 20:11:01 +05:30
2017-08-16 08:30:24 -04:00
2018-07-26 14:08:20 -05:00
2019-01-15 15:28:43 -05:00
2018-05-07 09:34:12 -04:00
2016-10-06 20:57:42 -04:00
2018-09-28 18:27:33 +02:00
2018-09-10 21:19:33 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-11-16 16:51:56 -05:00
2018-05-18 08:27:26 +02:00
2018-10-08 14:45:02 -04:00
2018-05-07 09:34:12 -04:00
2017-08-20 09:54:30 -04:00
2018-05-07 09:34:12 -04:00
2018-06-07 20:06:29 -04:00
2018-05-07 09:34:12 -04:00
2018-11-01 10:02:43 -04:00
2018-12-07 16:31:45 +01:00
2018-11-14 09:16:27 -08:00
2018-11-26 08:25:37 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-01-15 15:28:44 -05:00
2018-05-07 09:34:12 -04:00
2018-05-08 09:07:35 -04:00
2018-12-13 16:36:41 -07:00
2018-07-19 16:17:58 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2016-01-25 10:39:43 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-07 16:31:45 +01:00
2018-05-07 09:34:12 -04:00
2018-11-29 09:30:06 -07:00
2018-11-29 09:30:06 -07:00
2018-05-25 20:12:55 -04:00
2018-11-29 09:30:06 -07:00
2019-01-15 15:28:44 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-01-15 15:28:44 -05:00
2018-09-28 20:22:32 -04:00
2018-05-07 09:34:12 -04:00
2019-01-15 15:28:44 -05:00
2018-12-07 16:31:45 +01:00
2018-12-07 16:31:45 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-11-14 09:16:27 -08:00
2018-09-28 20:22:36 -04:00
2018-07-02 14:14:20 -05:00
2018-05-07 09:34:12 -04:00
2016-01-25 10:39:43 -05:00
2018-05-07 09:34:12 -04:00
2019-01-15 15:28:44 -05:00