linux/drivers/usb/dwc2
Artur Petrosyan 9ce9e5ad17 usb: dwc2: Add host partial power down functions
For host mode Partial Power Down entering and exiting
separate functions are needed to implement the logic.
Earlier the logic was implemented in one function. Which was
confusing the readability. Also both host and device implementations
were in the same function.

- Added host partial power down functions which must be called
by dwc2_enter_partial_power_down()/dwc2_exit_partial_power_down()
functions.

Added function names:
dwc2_host_enter_partial_power_down()
dwc2_host_exit_partial_power_down()

NOTE: There is a checkpatch "CHECK" warning on "udelay(100)".
The delay is needed to properly exit gadget Partial Power Down
A delay less than 100 doesn't work.

Acked-by: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Signed-off-by: Artur Petrosyan <Arthur.Petrosyan@synopsys.com>
Link: https://lore.kernel.org/r/20210408094438.56CFBA022E@mailhost.synopsys.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-04-09 15:16:38 +02:00
..
core.c
core.h usb: dwc2: Add host partial power down functions 2021-04-09 15:16:38 +02:00
core_intr.c
debug.h
debugfs.c usb: dwc2: Add STM32 related debugfs entries 2021-03-10 09:37:15 +01:00
drd.c
gadget.c usb: dwc2: Add device partial power down functions 2021-04-09 15:16:38 +02:00
hcd.c usb: dwc2: Add host partial power down functions 2021-04-09 15:16:38 +02:00
hcd.h
hcd_ddma.c
hcd_intr.c usb: dwc2: Make "trimming xfer length" a debug message 2021-01-26 18:42:15 +01:00
hcd_queue.c usb: dwc2: add parenthess and space around * 2021-04-02 15:39:59 +02:00
hw.h
Kconfig
Makefile
params.c usb: dwc2: disable Link Power Management on STM32MP15 HS OTG 2021-01-12 12:54:42 +01:00
pci.c usb: dwc2: pci: Drop the empty quirk function 2021-02-04 15:40:19 +01:00
platform.c usb: dwc2: Avoid leaving the error_debugfs label unused 2020-10-27 11:33:53 +02:00