[U-Boot] [PATCH v4 04/13] usb: dfu: fix boards wo USB cable detection

Marek Vasut marex at denx.de
Tue Apr 15 15:38:21 CEST 2014


On Tuesday, April 15, 2014 at 03:06:52 PM, Mateusz Zalega wrote:
> 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>

I suggest we go for the weak default implementation of usb_cable_connected() 
which would return -ENOTSUP in the default case. Override with board-specific 
stuff if needed.

Best regards,
Marek Vasut


More information about the U-Boot mailing list