]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: dfu: fix boards wo USB cable detection
authorMateusz Zalega <m.zalega@samsung.com>
Wed, 30 Apr 2014 11:07:48 +0000 (13:07 +0200)
committerLukasz Majewski <l.majewski@samsung.com>
Mon, 5 May 2014 06:00:28 +0000 (08:00 +0200)
commit75504e9592745021006cb8905b5ff5a51d9d1cb3
treed3f70f43a6eb464de67b84664d068f819fb01d9a
parent6b423b752b24bf69962821754314418621fc71cc
usb: dfu: fix boards wo USB cable detection

Former usb_cable_connected() patch broke compilation of boards which do
not support this feature.

I've renamed usb_cable_connected() to g_dnl_usb_cable_connected() and added
its default implementation to gadget downloader driver code. There's
only one driver of this kind and it's unlikely there'll be another, so
there's no point in keeping it in /common.

Previously this function was declared in usb.h. I've moved it, since
it's more appropriate to keep it in g_dnl.h - usb.h seems to be intended
for USB host implementation.

Existing code, confronted with default -EOPNOTSUPP return value,
continues as if the cable was connected.

CONFIG_USB_CABLE_CHECK was removed.

Change-Id: Ib9198621adee2811b391c64512f14646cefd0369
Signed-off-by: Mateusz Zalega <m.zalega@samsung.com>
Acked-by: Marek Vasut <marex@denx.de>
Acked-by: Lukasz Majewski <l.majewski@samsung.com>
README
board/samsung/origen/origen.c
board/samsung/trats/trats.c
board/samsung/trats2/trats2.c
board/samsung/universal_c210/universal.c
common/cmd_usb_mass_storage.c
drivers/usb/gadget/f_mass_storage.c
drivers/usb/gadget/g_dnl.c
include/configs/exynos4-dt.h
include/g_dnl.h
include/usb.h