/openbmc/u-boot/drivers/usb/musb-new/ |
H A D | am35x.c | diff 15837236386191f2a26706b5ee56cdb4ab28e6d5 Wed Jun 17 14:33:54 CDT 2015 Hans de Goede <hdegoede@redhat.com> 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>
|
H A D | musb_dsps.c | diff 15837236386191f2a26706b5ee56cdb4ab28e6d5 Wed Jun 17 14:33:54 CDT 2015 Hans de Goede <hdegoede@redhat.com> 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>
|
H A D | musb_core.h | diff 15837236386191f2a26706b5ee56cdb4ab28e6d5 Wed Jun 17 14:33:54 CDT 2015 Hans de Goede <hdegoede@redhat.com> 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>
|
H A D | omap2430.c | diff 15837236386191f2a26706b5ee56cdb4ab28e6d5 Wed Jun 17 14:33:54 CDT 2015 Hans de Goede <hdegoede@redhat.com> 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>
|
H A D | musb_core.c | diff 15837236386191f2a26706b5ee56cdb4ab28e6d5 Wed Jun 17 14:33:54 CDT 2015 Hans de Goede <hdegoede@redhat.com> 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>
|
H A D | musb_uboot.c | diff 15837236386191f2a26706b5ee56cdb4ab28e6d5 Wed Jun 17 14:33:54 CDT 2015 Hans de Goede <hdegoede@redhat.com> 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>
|
H A D | sunxi.c | diff 15837236386191f2a26706b5ee56cdb4ab28e6d5 Wed Jun 17 14:33:54 CDT 2015 Hans de Goede <hdegoede@redhat.com> 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>
|