Skip to content
Commit 75504e95 authored by Mateusz Zalega's avatar Mateusz Zalega Committed by Lukasz Majewski
Browse files

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: default avatarMateusz Zalega <m.zalega@samsung.com>
Acked-by: default avatarMarek Vasut <marex@denx.de>
Acked-by: default avatarLukasz Majewski <l.majewski@samsung.com>
parent 6b423b75
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment