linux/drivers
William Wu b9b76d08b5 phy: rockchip: inno-usb2: add phy reset during resume
On most of rockchip platforms, the usb2 phy lost power
during deep sleep. So we need to reset phy during pm
resume to recovery clock to usb controller.

When do sleeptest on rk3588 evb1, without this patch,
it may fail in ehci_resume or ohci_resume, because
the ehci/ohci controller can't get clock from usb2 phy.

Note that the phy reset is optional in devicetree, so
it needs to check the reset_control of phy before phy
reset operation to avoid unnecessary delay.

Fixes: ba8a6e65a7 ("phy: rockchip: inno_usb2: only reset phy if deassert iddq for rk3588")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I31dee9baea472d9e314eca6cb9f78b2aab0e5353
2022-08-04 16:21:02 +08:00
..
accessibility speakup-dectlk: Restore pitch setting 2022-02-16 12:54:30 +01:00
acpi PCI: rockchip: Add ACPI support 2022-07-22 16:14:12 +08:00
amba amba: Make the remove callback return void 2022-04-08 14:40:02 +02:00
android Merge tag 'ASB-2022-07-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 18:11:10 +08:00
ata Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
atm atm: eni: Add check for dma_map_single 2022-03-23 09:13:27 +01:00
auxdisplay auxdisplay: ht16k33: Fix frame buffer device blanking 2021-11-18 14:04:24 +01:00
base Merge tag 'ASB-2022-07-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 18:11:10 +08:00
bcma
block Merge tag 'android12-5.10.110_r01' into android12-5.10 2022-05-27 09:24:14 -07:00
bluetooth Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
bus mips: cdmm: Fix refcount leak in mips_cdmm_phys_base 2022-04-08 14:40:20 +02:00
cdrom
char Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
clk clk: rockchip: px30: mark clk_rtc32k_pmu as critical 2022-07-25 09:09:07 +08:00
clocksource Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
connector
counter counter: stm32-lptimer-cnt: remove iio counter abi 2022-01-27 10:54:08 +01:00
cpufreq RFC: FROMLIST: cpufreq: Add android's 'interactive' governor 2022-07-27 15:02:09 +08:00
cpuidle This is the 5.10.80 stable release 2021-11-19 11:50:41 +01:00
crypto Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
dax dax: make sure inodes are flushed before destroy cache 2022-04-08 14:40:16 +02:00
dca
devfreq PM / devfreq: rockchip_dmc: Add SYS_STATUS_HDMIRX 2022-07-04 14:55:08 +08:00
dio
dma Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
dma-buf dma-buf: cma_heap: Fix compile warning when !CONFIG_NO_GKI 2022-07-25 14:19:04 +08:00
edac EDAC: Fix calculation of returned address and next offset in edac_align_ptr() 2022-02-23 12:01:07 +01:00
eisa
extcon Merge tag 'ASB-2021-12-05_12-5.10' of https://android.googlesource.com/kernel/common 2021-12-14 17:09:02 +08:00
firewire
firmware firmware: rockchip_sip: support hdcp controller load key 2022-07-25 20:13:56 +08:00
fpga
fsi fsi: Aspeed: Fix a potential double free 2022-04-08 14:40:23 +02:00
gnss
gpio gpio: support gpio expand chip aw9110 2022-07-29 16:13:11 +08:00
gpu drm/rockchip: dsi2: encoder->crtc maybe NULL 2022-08-04 16:15:33 +08:00
greybus greybus: svc: fix an error handling bug in gb_svc_hello() 2022-04-08 14:39:50 +02:00
headset_observe rk_headset: enable rk_headset and fix complie error 2021-10-29 18:06:44 +08:00
hid Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
hsi HSI: core: Fix return freed object in hsi_new_client 2022-01-27 10:54:12 +01:00
hv hv_balloon: rate-limit "Unhandled message" warning 2022-04-08 14:40:19 +02:00
hwmon This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
hwspinlock
hwtracing This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
i2c Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
i3c
ide
idle
iio Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
infiniband This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
input Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
interconnect
iommu Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
ipack
irqchip Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
isdn isdn: hfcpci: check the return value of dma_set_mask() in setup_hw() 2022-03-16 14:15:57 +01:00
leds leds: leds-rgb13h: fix compile error 2022-05-21 17:43:58 +08:00
lightnvm
macintosh
mailbox mailbox: rockchip: make ROCKCHIP_MBOX tristate 2022-08-03 15:27:55 +08:00
mcb
md Merge tag 'android12-5.10.110_r01' into android12-5.10 2022-05-27 09:24:14 -07:00
media media: rockchip: vicap fixed dvp segfault 2022-08-04 16:14:04 +08:00
memory This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
memstick memstick: jmb38x_ms: use appropriate free function in jmb38x_ms_alloc_host() 2021-11-18 14:04:07 +01:00
message
mfd mfd: max96752f: Add support for enable GPIO 2022-07-25 10:27:30 +08:00
misc Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
mmc mmc: sdhci-of-dwcmshc: Support ACPI 2022-07-28 16:52:07 +08:00
most most: fix control-message timeouts 2021-11-18 14:03:51 +01:00
mtd mtd: spi-nor: boya: Add code 2022-07-20 19:11:49 +08:00
mux
net net: wireless: rockchip_wlan: bcmdhd: Call kernel_read/write() only when CONFIG_NO_GKI 2022-07-27 19:51:33 +08:00
nfc BACKPORT: nfc: nfcmrvl: main: reorder destructive operations in nfcmrvl_nci_unregister_dev to avoid bugs 2022-06-30 11:50:02 +01:00
ntb ntb: intel: fix port config status offset for SPR 2022-03-08 19:09:32 +01:00
nubus
nvdimm nvdimm/region: Fix default alignment for small regions 2022-04-08 14:40:26 +02:00
nvme This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
nvmem Merge tag 'ASB-2022-04-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:40:39 +08:00
of Merge tag 'ASB-2022-04-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:40:39 +08:00
opp Merge tag 'ASB-2022-04-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:40:39 +08:00
oprofile
parisc parisc: Fix sglist access in ccio-dma.c 2022-02-23 12:00:57 +01:00
parport
pci PCI: rockchip: rename PCIE_ATU_REGION_INDEX1 to DWC_ATU_REGION_INDEX1 2022-07-25 15:36:04 +08:00
pcmcia pcmcia: fix setting of kthread task states 2022-01-27 10:54:03 +01:00
perf
phy phy: rockchip: inno-usb2: add phy reset during resume 2022-08-04 16:21:02 +08:00
pinctrl Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
platform This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
pnp
power Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
powercap
pps
ps3
ptp
pwm Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
rapidio
ras
regulator regulator: wl2868c: add suspend/resume functions 2022-08-01 15:10:21 +08:00
remoteproc FROMLIST: remoteproc: Fix dma_mem leak after rproc_shutdown 2022-05-31 17:47:14 +00:00
reset This is the 5.10.80 stable release 2021-11-19 11:50:41 +01:00
rk_nand drivers: rk_nand: fix compile warning 2022-06-06 18:19:20 +08:00
rkflash drivers: rkflash: Config erase operation as SFC write direction 2022-05-27 10:54:42 +08:00
rknpu driver: rknpu: Update rknpu driver, version: 0.8.0 2022-08-03 17:54:01 +08:00
rpmsg This is the 5.10.96 stable release 2022-02-07 11:17:58 +01:00
rtc Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
s390 This is the 5.10.96 stable release 2022-02-07 11:17:58 +01:00
sbus
scsi Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
sfi
sh maple: fix wrong return value of maple_bus_init(). 2021-11-26 10:39:12 +01:00
siox
slimbus
soc soc: rockchip: rk3308b: grf: support switching between sdmmc and uart2 2022-08-04 15:55:33 +08:00
soundwire soundwire: intel: fix wrong register name in intel_shim_wake 2022-04-08 14:40:24 +02:00
spi spi: rockchip-sfc: Support ACPI 2022-07-28 14:06:22 +08:00
spmi
ssb
staging fiq_debugger: Do not call get_irq_regs() when !CONFIG_NO_GKI 2022-07-22 15:04:38 +08:00
switch
target This is the 5.10.101 stable release 2022-02-16 15:16:06 +01:00
tc
tee optee: use driver internal tee_context for some rpc 2022-03-02 11:42:47 +01:00
thermal Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
thunderbolt thunderbolt: Runtime PM activate both ends of the device link 2022-01-27 10:54:14 +01:00
tty Merge tag 'ASB-2022-06-05_12-5.10' of https://android.googlesource.com/kernel/common 2022-07-15 17:58:38 +08:00
uio
usb usb: dwc2: Fix dwc2 OTG-HOST resume fails to recognize peripherals 2022-07-28 11:05:54 +08:00
vdpa vdpa/mlx5: should verify CTRL_VQ feature exists for MQ 2022-04-08 14:39:47 +02:00
vfio amba: Make the remove callback return void 2022-04-08 14:40:02 +02:00
vhost Revert "vsock: each transport cycles only on its own sockets" 2022-03-23 14:30:38 +01:00
video video: rockchip: mpp: rkvenc2: Add disable_work 2022-08-04 16:07:39 +08:00
virt
virtio This is the 5.10.106 stable release 2022-03-18 15:02:31 +01:00
visorbus
vlynq
vme
w1 w1: Misuse of get_user()/put_user() reported by sparse 2022-01-27 10:54:22 +01:00
watchdog watchdog: rti-wdt: Add missing pm_runtime_disable() in probe function 2022-04-08 14:40:41 +02:00
xen xen/gnttab: fix gnttab_end_foreign_access() without page specified 2022-03-11 12:11:54 +01:00
zorro
Kconfig rk_headset: enable rk_headset and fix complie error 2021-10-29 18:06:44 +08:00
Makefile rk_headset: enable rk_headset and fix complie error 2021-10-29 18:06:44 +08:00