Patchwork [U-Boot,2/2] usb: add help for missing start subcommand

login
register
mail settings
Submitter Veli-Pekka Peltola
Date Nov. 2, 2011, 2:59 p.m.
Message ID <1320245996-22531-2-git-send-email-veli-pekka.peltola@bluegiga.com>
Download mbox | patch
Permalink /patch/123281/
State Awaiting Upstream
Delegated to: Remy Bohmer
Headers show

Comments

Veli-Pekka Peltola - Nov. 2, 2011, 2:59 p.m.
Signed-off-by: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
Cc: Remy Bohmer <linux@bohmer.net>
---
When I first time used USB framework it was not so obvious to start with
"usb reset" to get everything going on. So lets add help text for start.

 common/cmd_usb.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
Remy Bohmer - Nov. 26, 2011, 11:35 p.m.
Hi,

2011/11/2 Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>:
> Signed-off-by: Veli-Pekka Peltola <veli-pekka.peltola@bluegiga.com>
> Cc: Remy Bohmer <linux@bohmer.net>
> ---
> When I first time used USB framework it was not so obvious to start with
> "usb reset" to get everything going on. So lets add help text for start.
>
>  common/cmd_usb.c |    6 ++++--
>  1 files changed, 4 insertions(+), 2 deletions(-)

Applied to u-boot-usb.

Kind regards,

Remy

Patch

diff --git a/common/cmd_usb.c b/common/cmd_usb.c
index aecde13..d4ec2a2 100644
--- a/common/cmd_usb.c
+++ b/common/cmd_usb.c
@@ -700,7 +700,8 @@  int do_usb(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 U_BOOT_CMD(
 	usb,	5,	1,	do_usb,
 	"USB sub-system",
-	"reset - reset (rescan) USB controller\n"
+	"start - start (scan) USB controller\n"
+	"usb reset - reset (rescan) USB controller\n"
 	"usb stop [f] - stop USB [f]=force stop\n"
 	"usb tree - show USB device tree\n"
 	"usb info [dev] - show available USB devices\n"
@@ -725,7 +726,8 @@  U_BOOT_CMD(
 U_BOOT_CMD(
 	usb,	5,	1,	do_usb,
 	"USB sub-system",
-	"reset - reset (rescan) USB controller\n"
+	"start - start (scan) USB controller\n"
+	"usb reset - reset (rescan) USB controller\n"
 	"usb tree - show USB device tree\n"
 	"usb info [dev] - show available USB devices"
 );