2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-01 10:13:58 +08:00
linux-next/drivers/usb/chipidea
Stephen Boyd b90a17c5ba usb: chipidea: Notify events when switching host mode
The chipidea/udc.c file sends a CI_HDRC_CONTROLLER_RESET_EVENT to
the wrapper drivers when it calls hw_device_reset(), but that
function is not called from chipidea/host.c. And the udc.c file
sends the CI_HDRC_CONTROLLER_STOPPED_EVENT but the host.c file
doesn't do anything.

The intent of the reset event is to allow the wrapper driver to
do any wrapper specific things after the reset bit has been set
in the usb command register. Therefore, add this event hook in
the host role after we toggle that bit.

Similarly, the intent of the stopped event is to allow the
wrapper driver to do any wrapper specific things after the device
is stopped. So when we stop the host role, send the stopped
event.

Acked-by: Peter Chen <peter.chen@nxp.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2017-01-20 11:25:06 +08:00
..
bits.h usb: chipidea: add tx/rx burst size configuration interface 2015-08-14 10:03:58 +08:00
ci_hdrc_imx.c usb: chipidea: imx: configure imx for ULPI phy 2016-11-14 10:03:40 +08:00
ci_hdrc_imx.h usb: chipidea: imx: configure imx for ULPI phy 2016-11-14 10:03:40 +08:00
ci_hdrc_msm.c usb: chipidea: msm: Use posted data writes on AHB 2015-12-01 14:57:12 -08:00
ci_hdrc_pci.c usb: chipidea: fix return value check in ci_hdrc_pci_probe() 2016-02-19 14:13:44 +08:00
ci_hdrc_usb2.c usb: chipidea: add xilinx zynq platform data 2015-09-15 16:08:49 +08:00
ci_hdrc_zevio.c Chipidea: TI-NSPIRE USB OTG hardware does not support high speed and must connect at full speed 2015-03-18 16:19:11 +01:00
ci.h usb: chipidea: Only read/write OTGSC from one place 2017-01-20 11:24:15 +08:00
core.c usb: chipidea: Add platform flag for wrapper phy management 2017-01-20 11:25:02 +08:00
debug.c chipidea: error on overflow for port_test_write 2016-02-20 20:15:57 -08:00
host.c usb: chipidea: Notify events when switching host mode 2017-01-20 11:25:06 +08:00
host.h usb: chipidea: ehci_init_driver is intended to call one time 2015-07-22 08:03:41 +08:00
Kconfig usb: chipidea: Kconfig: improve Kconfig help text 2016-06-21 10:48:30 +08:00
Makefile usb: chipidea: delete static debug support 2015-12-24 14:15:26 +08:00
otg_fsm.c ktime: Get rid of the union 2016-12-25 17:21:22 +01:00
otg_fsm.h usb: chipidea: otg: add A idle to B disconnect timer 2016-03-04 15:14:38 +02:00
otg.c usb: chipidea: Handle extcon events properly 2017-01-20 11:24:35 +08:00
otg.h usb: chipidea: using one inline function to cover queue work operations 2014-05-23 11:35:02 +09:00
udc.c - Adding ULPI PHY support for imx53 2016-11-28 08:47:56 +01:00
udc.h usb: chipidea: Properly mark little endian descriptors 2016-11-14 10:03:40 +08:00
usbmisc_imx.c usb: chipidea: imx: Disable internal 60Mhz clock with ULPI PHY 2016-11-14 10:03:40 +08:00