bootstd: Use -c flag with bootdev order
PATCH 1/1 bootstd: Use -c flag with bootdev order
Update this command to use a -c flag rather than a special 'clear' argument.
---
cmd/bootdev.c | 4 ++-- doc/usage/cmd/bootdev.rst | 10 +++++----- test/boot/bootdev.c | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-)
cmd/bootdev.c +2 -2
@@ -148,7 +148,7 @@ static int do_bootdev_order(struct cmd_tbl *cmdtp, int flag, int argc,if (ret)return ret;if (argc ==2 ) { -if (!strncmp (argv[1 ],"clear" ,strlen (argv[1 ]))) { +if (!strcmp (argv[1 ],"-c" )) {bootdev_set_order (NULL );return 0 ;
@@ -176,7 +176,7 @@ static int do_bootdev_order(struct cmd_tbl *cmdtp, int flag, int argc,U_BOOT_LONGHELP (bootdev,"list [-p] - list all available bootdevs (-p to probe)\n" "bootdev hunt [-l|<spec>] - use hunt drivers to find bootdevs\n" -"bootdev order [clear] | [<spec>,...] - view or update bootdev order\n" +"bootdev order [-c] | [<spec>,...] - view or update bootdev order\n" "bootdev select <bd> - select a bootdev by name | label | seq\n" "bootdev info [-p] - show information about a bootdev (-p to probe)" );
doc/usage/cmd/bootdev.rst +5 -5
@@ -13,7 +13,7 @@ Synopsis bootdev list [-p] - list all available bootdevs (-p to probe) bootdev hunt [-l|<spec>] - use hunt drivers to find bootdevs - bootdev order [clear] | [<spec> ...] - view or update bootdev order + bootdev order [-c] | [<spec> ...] - view or update bootdev order bootdev select <bm> - select a bootdev by name bootdev info [-p] - show information about a bootdev
@@ -85,11 +85,11 @@ bootdev order This allows the bootdev order to be examined or set. With no argument the current ordering is shown, one item per line. -The argument can either be 'clear' or a space-separated list of labels. Each -label can be the name of a bootdev (e.g. "mmc1.bootdev"), a bootdev sequence -number ("3") or a media uclass ("mmc") with an optional sequence number (mmc2). +The argument is a space-separated list of labels. Each label can be the name of +a bootdev (e.g. "mmc1.bootdev"), a bootdev sequence number ("3") or a media +uclass ("mmc") with an optional sequence number (mmc2). -Use `bootdev order clear` to clear any ordering and use the default. +Use `bootdev order -c` to clear any ordering and use the default. By default, the ordering is defined by the `boot_targets` environment variable or, failing that, the bootstd node in the devicetree ("bootdev-order" property).
test/boot/bootdev.c +1 -1
@@ -793,7 +793,7 @@ static int bootdev_test_cmd_order(struct unit_test_state *uts)ut_assert_nextline ("mmc1" );ut_assert_console_end (); -ut_assertok (run_command ("bootdev order clear" ,0 )); +ut_assertok (run_command ("bootdev order -c" ,0 ));ut_assertok (run_command ("bootdev order" ,0 ));ut_assert_nextline ("No ordering" );ut_assert_console_end ();
Signature · 4 lines
2.34.1 base-commit: d0792b0848712a84b5fe20ba60f699b48def807e branch: schc3
Quoted 7 lines · Simon Glass
Update this command to use a -c flag rather than a special 'clear' argument.
Signed-off-by Simon Glass <[email protected]>Suggested-by Quentin Schulz <[email protected]>
[snip]
Quoted 5 lines
Signature · 4 lines
2.34.1 base-commit: d0792b0848712a84b5fe20ba60f699b48def807e branch: schc3
This is unfortunately not on mainline.
Signature · 1 line
Tom
Hi Simon,
Quoted 3 lines · Simon Glass
Update this command to use a -c flag rather than a special 'clear' argument.
I don't see the commit which adds the clear command to either master or next branch, so maybe just fix that in the original commit before sending a pull request instead of via fixups?
Did I miss something instead maybe?
Cheers,
Quentin
Hi Quentin,
Quoted 11 lines · Quentin Schulz
Hi Simon,
Quoted 3 lines · Simon Glass
Update this command to use a -c flag rather than a special 'clear' argument.
I don't see the commit which adds the clear command to either master or next branch, so maybe just fix that in the original commit before sending a pull request instead of via fixups?
Tom rejected that series (or 'changes requested' to be specific). I added it to my tree in merge-request 68:
d93f42d6e3d bootstd: Provide a command to select the bootdev order
Quoted 2 lines
Did I miss something instead maybe?
I didn't send out my 'applied' emails for this series, so it was silently applied to my tree, so far as the mailing list was concerned. Tom wants me to operate my tree silently so I don't always send the emails...
Regards,
Simon
Hi Simon,
Quoted 11 lines · Simon Glass
Hi Quentin,
Quoted 8 lines · Quentin Schulz
Hi Simon,
Quoted 3 lines · Simon Glass
Update this command to use a -c flag rather than a special 'clear' argument.
Quoted 9 lines
Quoted 3 lines
I don't see the commit which adds the clear command to either master or next branch, so maybe just fix that in the original commit before sending a pull request instead of via fixups?
Tom rejected that series (or 'changes requested' to be specific). I added it to my tree in merge-request 68:
d93f42d6e3dbootstd: Provide a command to select the bootdev order
If changes are required to merge the merge request and considering that you are the owner of both the patch being fixed up and the merge request, maybe sending a vN+1 instead of fixups would make sense? Especially if you haven't sent the "applied" mails like you say below?
I would rather avoid reviewing patches on top of commits that may never make it to the main tree.
Quoted 8 lines
Quoted 2 lines
Did I miss something instead maybe?
I didn't send out my 'applied' emails for this series, so it was silently applied to my tree, so far as the mailing list was concerned. Tom wants me to operate my tree silently so I don't always send the emails...
I don't want to pour fuel on the fire but this whole ordeal between you and Tom needs to be sorted out, I'm essentially not even looking at any of your patches anymore even when I'm in Cc/To. From an outsider PoV, the situation is confusing and frustrating. Please do not take this as an invitation to include me in the "fights". Nobody likes to see arguments lasting months even if they are not part of it. "Fights" may sometimes be necessary and healthy for a project but this has become anxiety-provoking to me, hence my reluctance to look at any thread you both are part of. I also want to be able to again trust that the few reviews I occasionally make on the mailing list are useful because they are for patches that have a chance of being merged and based on code that was merged or soon to be merged (in a maintainer tree with high chances of being merged in a subsequent merge request to the main tree).
Quentin
Hi Quentin,
Quoted 42 lines · Quentin Schulz
Hi Simon,
Quoted 11 lines · Simon Glass
Hi Quentin,
Quoted 8 lines · Quentin Schulz
Hi Simon,
Quoted 3 lines · Simon Glass
Update this command to use a -c flag rather than a special 'clear' argument.
Quoted 9 lines
Quoted 3 lines
I don't see the commit which adds the clear command to either master or next branch, so maybe just fix that in the original commit before sending a pull request instead of via fixups?
Tom rejected that series (or 'changes requested' to be specific). I added it to my tree in merge-request 68:
d93f42d6e3dbootstd: Provide a command to select the bootdev orderIf changes are required to merge the merge request and considering that you are the owner of both the patch being fixed up and the merge request, maybe sending a vN+1 instead of fixups would make sense? Especially if you haven't sent the "applied" mails like you say below?
I would rather avoid reviewing patches on top of commits that may never make it to the main tree.
Quoted 8 lines
Quoted 2 lines
Did I miss something instead maybe?
I didn't send out my 'applied' emails for this series, so it was silently applied to my tree, so far as the mailing list was concerned. Tom wants me to operate my tree silently so I don't always send the emails...
Quoted 13 lines
I don't want to pour fuel on the fire but this whole ordeal between you and Tom needs to be sorted out, I'm essentially not even looking at any of your patches anymore even when I'm in Cc/To. From an outsider PoV, the situation is confusing and frustrating. Please do not take this as an invitation to include me in the "fights". Nobody likes to see arguments lasting months even if they are not part of it. "Fights" may sometimes be necessary and healthy for a project but this has become anxiety-provoking to me, hence my reluctance to look at any thread you both are part of. I also want to be able to again trust that the few reviews I occasionally make on the mailing list are useful because they are for patches that have a chance of being merged and based on code that was merged or soon to be merged (in a maintainer tree with high chances of being merged in a subsequent merge request to the main tree).
Thanks for your comments. I fully agree.
Regards,
Simon