1
0
Fork 0
alistair23-linux/drivers
Li Jun d3c02ae356 MLK-23342-2 usb: host: xhci-plat: keep runtime active when remove host
While remove host(e.g. for USB role switch from host to device), if
runtime pm is enabled, a runtime suspend may happen which cause
below kernel dump:
[  121.438091] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000240
[  121.446913] Mem abort info:
[  121.449707]   ESR = 0x96000004
[  121.452960] xhci-hcd xhci-hcd.1.auto: // Halt the HC
[  121.457935] xhci-hcd xhci-hcd.1.auto: // Reset the HC
[  121.463262] xhci-hcd xhci-hcd.1.auto: Wait for controller to be ready for doorbell rings
[  121.471410]   EC = 0x25: DABT (current EL), IL = 32 bits
[  121.476769]   SET = 0, FnV = 0
[  121.479865]   EA = 0, S1PTW = 0
[  121.483036] Data abort info:
[  121.485921]   ISV = 0, ISS = 0x00000004
[  121.489913] xhci-hcd xhci-hcd.1.auto: // Disabling event ring interrupts
[  121.496740]   CM = 0, WnR = 0
[  121.499773] user pgtable: 4k pages, 48-bit VAs, pgdp=00000001b7b18000
[  121.506342] xhci-hcd xhci-hcd.1.auto: cleaning up memory
[  121.511824] xhci-hcd xhci-hcd.1.auto: Freed event ring
[  121.517028] xhci-hcd xhci-hcd.1.auto: Freed command ring
[  121.522391] [0000000000000240] pgd=0000000000000000
[  121.527314] Internal error: Oops: 96000004 [#1] PREEMPT SMP
[  121.532890] Modules linked in:
[  121.535951] CPU: 0 PID: 5 Comm: kworker/0:0 Not tainted 5.4.3-00107-g64d454a-dirty #1219
[  121.544039] Hardware name: FSL i.MX8MP EVK (DT)
[  121.548578] Workqueue: pm pm_runtime_work
[  121.552590] pstate: 60000005 (nZCv daif -PAN -UAO)
[  121.557385] pc : xhci_suspend+0x34/0x698
[  121.561311] lr : xhci_plat_runtime_suspend+0x2c/0x38
[  121.566275] sp : ffff800011ddbbc0
[  121.569588] x29: ffff800011ddbbc0 x28: 0000000000000000
[  121.574900] x27: 0000000000000008 x26: ffff800011b28000
[  121.580212] x25: ffff80001012b328 x24: ffff800011ddbd48
[  121.585523] x23: 0000000000000000 x22: ffff80001076ed78
[  121.590837] x21: ffff000177896000 x20: ffff0001714ebce4
[  121.596152] x19: ffff000177896000 x18: ffffffffffffffff
[  121.601464] x17: 0000000000000000 x16: 0000000000000000
[  121.606777] x15: ffff800011b288c8 x14: 0000000000000261
[  121.612089] x13: 0000000000000001 x12: 0000000000000001
[  121.617401] x11: 0000000000000000 x10: 00000000000009c0
[  121.622714] x9 : ffff800011ddbd40 x8 : fefefefefefefeff
[  121.628028] x7 : 0000000000000000 x6 : 000000003ca92688
[  121.633338] x5 : 00ffffffffffffff x4 : 001b6b0b00000000
[  121.638651] x3 : ffff0001714ebc10 x2 : 0000000000000000
[  121.643962] x1 : 0000000000000001 x0 : ffff000177896250
[  121.649277] Call trace:
[  121.651726]  xhci_suspend+0x34/0x698
[  121.655304]  xhci_plat_runtime_suspend+0x2c/0x38
[  121.659924]  pm_generic_runtime_suspend+0x28/0x40
[  121.664628]  __rpm_callback+0xd8/0x138
[  121.668376]  rpm_callback+0x24/0x98
[  121.671868]  rpm_suspend+0xe0/0x448
[  121.675358]  rpm_idle+0x124/0x140
[  121.678675]  pm_runtime_work+0xa0/0xf8
[  121.682426]  process_one_work+0x1dc/0x370
[  121.686434]  worker_thread+0x48/0x468
[  121.690100]  kthread+0xf0/0x120
[  121.693244]  ret_from_fork+0x10/0x1c

So keep the xhci-plat device active during remove host.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
2020-02-22 17:08:53 +08:00
..
accessibility
acpi Power management fix for 5.4-rc6 2019-11-01 09:30:48 -07:00
amba ARM updates for 5.4-rc: 2019-10-23 06:26:33 -04:00
android binder: Handle start==NULL in binder_update_page_range() 2019-12-13 08:43:25 +01:00
ata LF-58: sata: imx8: fix the calibration failure of phy 2019-11-28 09:38:53 +08:00
atm atm: he: clean up an indentation issue 2019-09-25 13:54:45 +02:00
auxdisplay It's a somewhat calmer cycle for docs this time, as the churn of the mass 2019-09-17 16:22:26 -07:00
base MLK-21865 Revert "regmap: use debugfs even when no device" 2019-12-17 17:24:34 +08:00
bcma bcma: make arrays pwr_info_offset and sprom_sizes static const, shrinks object size 2019-09-13 16:44:49 +03:00
block nbd: prevent memory leak 2019-11-29 10:09:47 +01:00
bluetooth Revert "Bluetooth: hci_ll: set operational frequency earlier" 2019-11-29 10:09:43 +01:00
bus bus: fsl-mc: add the dpdbg device type 2019-12-20 15:02:19 +02:00
cdrom
char This is the 5.4.3 stable release 2019-12-16 14:38:10 +08:00
clk MLK-23314-7: clk: imx: clk-audiomix: refine some muxes flags 2020-02-20 12:58:29 +02:00
clocksource - Fix scary messages in sh_mtu2 by using platform_irq_count() helper 2019-11-04 18:43:23 +01:00
connector
counter
cpufreq MLK-23159-8 cpufreq: cpufreq-dt-platdev: Add i.MX8MP to platdev's blacklist 2019-12-26 10:28:09 +08:00
cpuidle cpuidle: haltpoll: Take 'idle=' override into account 2019-10-22 11:43:17 +02:00
crypto LF-292-2 crypto: caam - add power management 2020-02-21 13:42:22 +02:00
dax
dca
devfreq PM / devfreq: passive: fix compiler warning 2019-08-26 21:37:37 +09:00
dio
dma LF-251-2: dma: mxs-dma: switch from dma_coherent to dma_pool 2019-12-04 23:54:06 -06:00
dma-buf MA-11994 Add get phys address ioctl to dma-buf. 2019-11-25 15:43:48 +08:00
edac MLK-23333-3 EDAC: synopsys: enable interrupt again for imx8mpevk 2020-02-18 22:18:44 +08:00
eisa
extcon chrome platform changes for v5.4 2019-09-19 14:14:28 -07:00
firewire
firmware MLK-23346-1: DXL Add second USB PHY power domain 2020-02-21 13:58:06 -06:00
fpga Char/Misc driver patches for 5.4-rc1 2019-09-18 11:14:31 -07:00
fsi fsi: scom: Don't abort operations for minor errors 2019-08-28 22:59:18 +02:00
gnss
gpio gpio : mpc8xxx : ls1088a/ls1028a edge detection mode bug fixs. 2019-11-25 15:46:33 +08:00
gpu MLK-23328: drm: bridge: hdmi: Fix no vendor infoframe after resume 2020-02-18 14:28:16 +08:00
greybus staging: greybus: move es2 to drivers/greybus/ 2019-08-27 19:03:08 +02:00
hid HID: core: check whether Usage Page item is after Usage ID items 2019-12-04 22:31:07 +01:00
hsi HSI changes for the 5.4 series 2019-09-22 12:02:21 -07:00
hv Drivers: hv: vmbus: Fix harmless building warnings without CONFIG_PM_SLEEP 2019-10-01 14:49:45 -04:00
hwmon Merge branch 'sensor/next' into next 2019-12-02 18:05:28 +08:00
hwspinlock
hwtracing coresight: etm4x: Fix input validation for sysfs. 2019-12-13 08:42:43 +01:00
i2c LF-633-1 i2c: lpi2c: add bus recovery feature 2019-12-27 18:11:07 +08:00
i3c i3c: master: Use dev_to_i3cmaster() 2019-08-27 09:43:59 +02:00
ide ide: remove the sgiioc4 driver 2019-08-16 11:33:56 -07:00
idle x86/intel: Aggregate microserver naming 2019-08-28 11:29:32 +02:00
iio iio: adc: Add imx8qxp adc driver support 2019-11-25 15:44:10 +08:00
infiniband RDMA/qib: Validate ->show()/store() callbacks before calling them 2019-12-13 08:43:16 +01:00
input This is the 5.4.3 stable release 2019-12-16 14:38:10 +08:00
interconnect interconnect: Add locking in icc_set_tag() 2019-10-20 12:14:41 +03:00
iommu iommu/vt-d: Fix panic after kexec -p for kdump 2019-10-30 10:30:22 +01:00
ipack
irqchip MLK-23354 irqchip: gpcv2: Add wait mode workaround on imx8mp 2020-02-21 13:40:30 +08:00
isdn net: use skb_queue_empty_lockless() in poll() handlers 2019-10-28 13:33:41 -07:00
leds leds: lm3532: Fix optional led-max-microamp prop error handling 2019-09-12 20:45:52 +02:00
lightnvm lightnvm: print error when target is not found 2019-09-05 13:17:01 -06:00
macintosh cpufreq: Use per-policy frequency QoS 2019-10-21 02:05:21 +02:00
mailbox This is the 5.4.3 stable release 2019-12-16 14:38:10 +08:00
mcb
md md/raid0: Fix an error message in raid0_make_request() 2019-12-13 08:43:29 +01:00
media LF-482 media: mipi csi: fix build warning 2019-12-16 17:47:31 +08:00
memory drivers/mtd: Add deep sleep support for IFC 2019-11-25 15:44:05 +08:00
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2019-10-09 11:08:03 +02:00
message
mfd mfd: Add audiomix support 2020-01-18 22:01:33 +08:00
misc This is the 5.4.3 stable release 2019-12-16 14:38:10 +08:00
mmc LF-605 mmc: sdhci-of-esdhc: update tuning erratum A-008171 2019-12-25 12:52:20 +08:00
mtd MLK-11747: mtd: nand: raw: gpmi-nand: add the debugfs files for gpmi-nand for kobs-ng 2019-12-11 16:53:48 -06:00
mux
mxc LF-984:[8QM_MEK/8QXP_MEK]mxc:vpu_malone:report error event when the resolution beyond limit 2020-02-21 15:03:18 +08:00
net MLK-23254: net: stmmac: fix fpe always enable issue 2020-02-20 11:22:48 +08:00
nfc nfc: port100: handle command failure cleanly 2019-11-21 11:48:17 -08:00
ntb NTB: fix IDT Kconfig typos/spellos 2019-09-23 17:20:40 -04:00
nubus
nvdimm libnvdimm fixes v5.4-rc1 2019-09-29 10:33:41 -07:00
nvme for-linus-2019-11-08 2019-11-08 18:15:55 -08:00
nvmem MLK-23285-3 nvmem: imx: ocotp: add i.MX8MP support 2020-02-10 10:24:00 +08:00
of Merge branch 'sdhc/next' into next 2019-12-02 18:05:27 +08:00
opp opp: Reinitialize the list_kref before adding the static OPPs again 2019-10-23 10:58:44 +05:30
oprofile
parisc parisc: Remove 32-bit DMA enforcement from sba_iommu 2019-10-14 21:44:26 +02:00
parport Char/Misc driver patches for 5.4-rc1 2019-09-18 11:14:31 -07:00
pci LF-970 PCI: imx: make sure that the msi_en is set 2020-02-21 15:57:14 +08:00
pcmcia Merge branch 'next-lockdown' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2019-09-28 08:14:15 -07:00
perf MLK-23195-3 perf/imx_ddr: speed up overflow frequency of cycle counter 2020-01-07 10:32:56 +08:00
phy MLK-23252-6 phy: freescale: Add i.MX8mp LVDS PHY support 2020-02-13 12:11:58 +08:00
pinctrl MLK-23273-2 pinctrl: imx: add imx8dxl driver 2020-02-13 07:51:10 +08:00
platform platform/x86: hp-wmi: Fix ACPI errors caused by passing 0 as input size 2019-12-04 22:31:08 +01:00
pnp
power MLK-14473-2: power: supply: sabresd_battery: check max11801_read_adc() 2019-11-25 16:29:42 +08:00
powercap Power management updates for 5.4-rc1 2019-09-17 19:15:14 -07:00
pps
ps3
ptp ptp: support ptp_qoriq for sdk dpaa 2019-12-02 18:03:37 +08:00
pwm LF-637 pwm: imx27: Eliminate error message for defer probe 2019-12-30 11:09:06 +08:00
rapidio
ras RAS: Build debugfs.o only when enabled in Kconfig 2019-08-08 17:44:02 +02:00
regulator MLK-11550-1: regulator: pfuze100: restore some registers after LPSR for pfuze3000 2019-12-24 19:13:48 +08:00
remoteproc remoteproc updates for v5.4 2019-09-22 10:55:08 -07:00
reset reset: imx: Add audiomix reset controller support 2020-01-20 10:43:16 +02:00
rpmsg LF-44 rpmsg: imx: add the rpmsg tty demo 2019-11-25 15:46:03 +08:00
rtc rtc: imx-rpmsg: Add i.MX RPMSG RTC support 2019-11-25 15:45:10 +08:00
s390 s390/qeth: return proper errno on IO error 2019-11-20 12:29:47 -08:00
sbus
scsi MLK-11444 ata: imx: cmd buf corruption errata bug fix 2019-11-25 15:45:46 +08:00
sfi
sh
siox
slimbus slimbus: fix slim_tid_txn() 2019-08-18 12:56:10 +02:00
soc MLK-23273-3 soc: imx: add imx8dxl soc id 2020-02-13 07:51:20 +08:00
soundwire soundwire: slave: fix scanf format 2019-10-24 16:55:45 +05:30
spi This is the 5.4.3 stable release 2019-12-16 14:38:10 +08:00
spmi
ssb ssb: make array pwr_info_offset static const, makes object smaller 2019-09-13 17:23:18 +03:00
staging MLK-23227-11: media: imx: set panic threshold in ISI 2020-01-17 22:51:08 +08:00
target SCSI fixes on 20191101 2019-11-02 11:15:52 -07:00
tc
tee tee: optee: fix device enumeration error handling 2020-02-03 20:43:31 +01:00
thermal MLK-23183-01 thermal: imx8mm: Update the driver for multiple sensor support 2020-01-21 17:01:08 +08:00
thunderbolt thunderbolt: Power cycle the router if NVM authentication fails 2019-12-04 22:30:50 +01:00
tty tty: serial: imx: setup the correct sg entry for tx dma 2020-02-13 15:55:47 +08:00
uio Char/Misc driver patches for 5.4-rc1 2019-09-18 11:14:31 -07:00
usb MLK-23342-2 usb: host: xhci-plat: keep runtime active when remove host 2020-02-22 17:08:53 +08:00
vfio vfio/fsl-mc: Map the VFIO region according to the flags received from mc firmware 2019-11-26 11:42:23 +02:00
vhost vringh: fix copy direction of vringh_iov_push_kern() 2019-10-28 04:25:04 -04:00
video LF-603-2 video: fbdev: imx: mipi_dsi_samsung: remove mipi phy supply 2019-12-26 18:25:03 +08:00
virt jailhouse: Add simple debug console via the hypervisor 2019-11-25 15:43:39 +08:00
virtio virtio_balloon: fix shrinker count 2019-11-20 02:15:57 -05:00
visorbus
vlynq
vme
w1 w1: ds250x: Fix build error without CRC16 2019-10-10 15:35:41 +02:00
watchdog watchdog: aspeed: Fix clock behaviour for ast2600 2019-12-13 08:43:30 +01:00
xen Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2019-10-19 17:09:11 -04:00
zorro
Kconfig mxc: IPU3: Forward IPUv3 common driver from imx_4.19.y kernel 2019-11-25 15:48:14 +08:00
Makefile mxc: IPU3: Forward IPUv3 common driver from imx_4.19.y kernel 2019-11-25 15:48:14 +08:00