u-boot-brain/drivers/usb/musb-new
Hans de Goede 1583723638 musb: Allow musb_platform_enable to return an error code
Allow musb_platform_enable to return an error code and propagate it up to
usb_lowlevel_init().

This allows moving the checks for an external vbus being present to be
moved from platform_init to platform_enable, so that the user can unplug a
charger, plug in a host adapter with a usb-device, do a "usb reset" and
have things working.

This also allows adding a check for the id-pin to platform_enable, so that
it can short circuit the 1s delay in usb_lowlevel_init() when no host cable
is plugged in and thus waiting for a device to show up is useless.

Note that all the changes to code shared with the kernel are wrapped in
the kernel.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Simon Glass <sjg@chromium.org>
2015-07-21 17:39:37 -06:00
..
am35x.c musb: Allow musb_platform_enable to return an error code 2015-07-21 17:39:37 -06:00
linux-compat.h lib, linux: move linux specific defines to linux/compat.h 2014-08-25 19:25:03 -04:00
Makefile musb-new: Add sunxi musb controller support 2015-01-18 12:31:36 +01:00
musb_core.c musb: Allow musb_platform_enable to return an error code 2015-07-21 17:39:37 -06:00
musb_core.h musb: Allow musb_platform_enable to return an error code 2015-07-21 17:39:37 -06:00
musb_debug.h musb-new: port of Linux musb driver 2012-11-20 00:16:06 +01:00
musb_dma.h musb-new: port of Linux musb driver 2012-11-20 00:16:06 +01:00
musb_dsps.c musb: Allow musb_platform_enable to return an error code 2015-07-21 17:39:37 -06:00
musb_gadget_ep0.c kbuild: force to define __UBOOT__ in all the C sources 2014-09-16 12:23:56 -04:00
musb_gadget.c kbuild: force to define __UBOOT__ in all the C sources 2014-09-16 12:23:56 -04:00
musb_gadget.h musb-new: port of Linux musb driver 2012-11-20 00:16:06 +01:00
musb_host.c musb-new: Properly remove a transfer from the schedule on timeout 2015-01-18 12:31:36 +01:00
musb_host.h musb-new: Properly remove a transfer from the schedule on timeout 2015-01-18 12:31:36 +01:00
musb_io.h musb-new: port of Linux musb driver 2012-11-20 00:16:06 +01:00
musb_regs.h sunxi: Add basic A33 basic support 2015-05-04 16:51:51 +02:00
musb_uboot.c musb: Allow musb_platform_enable to return an error code 2015-07-21 17:39:37 -06:00
omap2430.c musb: Allow musb_platform_enable to return an error code 2015-07-21 17:39:37 -06:00
omap2430.h musb-new: omap2plus backend driver 2012-11-20 00:16:08 +01:00
sunxi.c musb: Allow musb_platform_enable to return an error code 2015-07-21 17:39:37 -06:00
usb-compat.h musb-new: Properly remove a transfer from the schedule on timeout 2015-01-18 12:31:36 +01:00