* [U-Boot] [PATCH] ums: respect CONFIG_USB_CABLE_CHECK
@ 2014-04-30 21:10 Stephen Warren
2014-05-01 5:21 ` Marek Vasut
0 siblings, 1 reply; 3+ messages in thread
From: Stephen Warren @ 2014-04-30 21:10 UTC (permalink / raw)
To: u-boot
From: Stephen Warren <swarren@nvidia.com>
Not all boards support usb_cable_connected(). CONFIG_USB_CABLE_CHECK is
used elsewhere to indicate whether a board does support that function.
Enhance cmd_usb_mass_storage.c to honor that config variable.
Cc: Przemyslaw Marczak <p.marczak@samsung.com>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
common/cmd_usb_mass_storage.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/cmd_usb_mass_storage.c b/common/cmd_usb_mass_storage.c
index 5f557d5f857d..2f69a53acc67 100644
--- a/common/cmd_usb_mass_storage.c
+++ b/common/cmd_usb_mass_storage.c
@@ -42,6 +42,7 @@ int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
g_dnl_register("ums");
+#ifdef CONFIG_USB_CABLE_CHECK
/* Timeout unit: seconds */
int cable_ready_timeout = UMS_CABLE_READY_TIMEOUT;
@@ -65,6 +66,7 @@ int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
}
puts("\r\n");
}
+#endif
while (1) {
usb_gadget_handle_interrupts();
--
1.8.1.5
^ permalink raw reply related [flat|nested] 3+ messages in thread* [U-Boot] [PATCH] ums: respect CONFIG_USB_CABLE_CHECK
2014-04-30 21:10 [U-Boot] [PATCH] ums: respect CONFIG_USB_CABLE_CHECK Stephen Warren
@ 2014-05-01 5:21 ` Marek Vasut
2014-05-01 17:09 ` Stephen Warren
0 siblings, 1 reply; 3+ messages in thread
From: Marek Vasut @ 2014-05-01 5:21 UTC (permalink / raw)
To: u-boot
On Wednesday, April 30, 2014 at 11:10:35 PM, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> Not all boards support usb_cable_connected(). CONFIG_USB_CABLE_CHECK is
> used elsewhere to indicate whether a board does support that function.
> Enhance cmd_usb_mass_storage.c to honor that config variable.
>
> Cc: Przemyslaw Marczak <p.marczak@samsung.com>
> Cc: Lukasz Majewski <l.majewski@samsung.com>
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
> common/cmd_usb_mass_storage.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/common/cmd_usb_mass_storage.c b/common/cmd_usb_mass_storage.c
> index 5f557d5f857d..2f69a53acc67 100644
> --- a/common/cmd_usb_mass_storage.c
> +++ b/common/cmd_usb_mass_storage.c
> @@ -42,6 +42,7 @@ int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
>
> g_dnl_register("ums");
>
> +#ifdef CONFIG_USB_CABLE_CHECK
> /* Timeout unit: seconds */
> int cable_ready_timeout = UMS_CABLE_READY_TIMEOUT;
>
> @@ -65,6 +66,7 @@ int do_usb_mass_storage(cmd_tbl_t *cmdtp, int flag,
> }
> puts("\r\n");
> }
> +#endif
>
> while (1) {
> usb_gadget_handle_interrupts();
Please look at:
[PATCH v5 03/12] usb: dfu: fix boards wo USB cable detection
Does this work for you instead ?
Best regards,
Marek Vasut
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot] [PATCH] ums: respect CONFIG_USB_CABLE_CHECK
2014-05-01 5:21 ` Marek Vasut
@ 2014-05-01 17:09 ` Stephen Warren
0 siblings, 0 replies; 3+ messages in thread
From: Stephen Warren @ 2014-05-01 17:09 UTC (permalink / raw)
To: u-boot
On 04/30/2014 11:21 PM, Marek Vasut wrote:
> On Wednesday, April 30, 2014 at 11:10:35 PM, Stephen Warren wrote:
>> From: Stephen Warren <swarren@nvidia.com>
>>
>> Not all boards support usb_cable_connected(). CONFIG_USB_CABLE_CHECK is
>> used elsewhere to indicate whether a board does support that function.
>> Enhance cmd_usb_mass_storage.c to honor that config variable.
...
> Please look at:
> [PATCH v5 03/12] usb: dfu: fix boards wo USB cable detection
>
> Does this work for you instead ?
Yes, it does. Please consider that patch,
Tested-by: Stephen Warren <swarren@nvidia.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-01 17:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-30 21:10 [U-Boot] [PATCH] ums: respect CONFIG_USB_CABLE_CHECK Stephen Warren
2014-05-01 5:21 ` Marek Vasut
2014-05-01 17:09 ` Stephen Warren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox