u-boot-brain/drivers/usb
Marek Vasut 31232de07e usb: Keep async schedule running only across mass storage xfers
Rather than keeping the asynchronous schedule running always, keep it
running only across USB mass storage transfers for now, as it seems
that keeping it running all the time interferes with certain control
transfers during device enumeration.

Note that running the async schedule all the time should not be an
issue, especially on EHCI HCD, as that one implements most of the
transfers using async schedule.

Note that we have usb_disable_asynch(), which however is utterly broken.
The usb_disable_asynch() blocks the USB core from doing async transfers
by setting a global flag. The async schedule should however be disabled
per USB controller. Moreover, setting a global flag does not prevent the
controller from using the async schedule, which e.g. the EHCI HCD does.

This patch implements additional callback to the controller, which
permits it to lock the async schedule and keep it running across
multiple transfers. Once the schedule is unlocked, it must also be
disabled. This thus prevents the async schedule from running outside
of the USB mass storage transfers.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Tested-by: Tom Rini <trini@konsulko.com> [omap3_beagle, previously failing]
2020-04-09 15:26:59 -04:00
..
cdns3 dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
common usb: Introduce CONFIG_SPL_DM_USB 2018-11-26 21:19:03 +01:00
dwc3 dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
emul dm: test: usb: rework keyboard test 2019-11-25 13:28:53 +01:00
eth usb: composite: Move bitmap related operations to ./include/linux/bitmap.h 2018-12-14 17:59:08 +01:00
gadget gadget: f_thor: add missing line breaks for pr_err() 2020-03-01 21:58:54 +01:00
host usb: Keep async schedule running only across mass storage xfers 2020-04-09 15:26:59 -04:00
musb common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
musb-new dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
phy dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
ulpi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig sunxi: Move common defconfig options to Kconfig 2020-03-18 18:25:00 +05:30