[U-Boot] [PATCH v4 04/13] usb: dfu: fix boards wo USB cable detection
Lukasz Majewski
l.majewski at samsung.com
Tue Apr 15 16:23:34 CEST 2014
Hi Mateusz,
> Former usb_cable_connected() patch broke compilation of boards which
> do not support this feature.
>
> Signed-off-by: Mateusz Zalega <m.zalega at samsung.com>
> Cc: Lukasz Majewski <l.majewski at samsung.com>
> Cc: Marek Vasut <marex at denx.de>
> Cc: Minkyu Kang <mk7.kang at samsung.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 5f557d5..2f69a53 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();
Acked-by: Lukasz Majewski <l.majewski at samsung.com>
--
Best regards,
Lukasz Majewski
Samsung R&D Institute Poland (SRPOL) | Linux Platform Group
More information about the U-Boot
mailing list