linux-uconsole/drivers
William Wu 73462a3bf9 phy: rockchip: rockchip-inno-usb2: fix lock warning
If the usb otg work as host mode or work as peripheral mode
with vbus always on, the otg_sm_work won't be initialized,
so flush the otg_sm_work in rockchip_usb2phy_exit() will
casuse the following lock warning:

[<ffffff800808b1e0>] dump_backtrace+0x0/0x1ec
[<ffffff800808b3e0>] show_stack+0x14/0x1c
[<ffffff8008403f3c>] dump_stack+0xb8/0xf4
[<ffffff8008107f40>] __lock_acquire+0x670/0x1984
[<ffffff8008109a60>] lock_acquire+0x1a4/0x264
[<ffffff8008129d2c>] del_timer_sync+0x48/0xb8
[<ffffff80080c3c94>] flush_delayed_work+0x20/0x50
[<ffffff80084344ac>] rockchip_usb2phy_exit+0x48/0x58
[<ffffff8008432bc4>] phy_exit+0x64/0xb4
[<ffffff80086733b8>] dwc3_core_exit+0x44/0x98
[<ffffff80086736c4>] dwc3_remove+0x90/0xe4
[<ffffff80085a5a5c>] platform_drv_remove+0x28/0x48
[<ffffff80085a3d14>] __device_release_driver+0xac/0x114
[<ffffff80085a3da4>] device_release_driver+0x28/0x3c
[<ffffff80085a2f38>] bus_remove_device+0x110/0x128
[<ffffff80085a0404>] device_del+0x160/0x1f8
[<ffffff80085a5954>] platform_device_del+0x20/0x88
[<ffffff80085a59d0>] platform_device_unregister+0x14/0x28
[<ffffff80088820f4>] of_platform_device_destroy+0x54/0xa8
[<ffffff800859f790>] device_for_each_child+0x68/0x98
[<ffffff8008882084>] of_platform_depopulate+0x30/0x4c
[<ffffff8008680030>] dwc3_rockchip_probe+0x4d4/0x574
[<ffffff80085a5ad4>] platform_drv_probe+0x58/0xa4
[<ffffff80085a396c>] driver_probe_device+0x118/0x2b0
[<ffffff80085a3b70>] __driver_attach+0x6c/0x98
[<ffffff80085a29d0>] bus_for_each_dev+0x80/0xb0
[<ffffff80085a34a0>] driver_attach+0x20/0x28
[<ffffff80085a3038>] bus_add_driver+0xe8/0x1e4
[<ffffff80085a4ad4>] driver_register+0x94/0xe0
[<ffffff80085a5a2c>] __platform_driver_register+0x48/0x50
[<ffffff8009222224>] dwc3_rockchip_driver_init+0x18/0x20
[<ffffff80080839f4>] do_one_initcall+0x17c/0x198
[<ffffff80091f0e48>] kernel_init_freeable+0x1f8/0x2b0
[<ffffff8008c61810>] kernel_init+0x10/0xf8
[<ffffff80080832c0>] ret_from_fork+0x10/0x50

This patch only allows to flush the otg_sm_work when the usb
bvalid irq is valid.

Fixes: f6fac8b68a ("phy: rockchip: rockchip-inno-usb2: flush otg work when exit")
Change-Id: I4dbe34fa9a330f22abb24ccd625da33425a9f753
Signed-off-by: William Wu <william.wu@rock-chips.com>
2018-07-09 11:06:14 +08:00
..
accessibility
acpi LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
adc rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
amba ARM: amba: Don't read past the end of sysfs "driver_override" buffer 2018-05-02 07:53:42 -07:00
android LSK 18.05 v4.4-android 2018-06-04 20:16:28 +08:00
ata LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
atm atm: zatm: Fix potential Spectre v1 2018-05-16 10:06:52 +02:00
auxdisplay
base PM / OPP: Rename dev_pm_opp_check_initial_rate to dev_pm_opp_check_rate_volt 2018-07-06 10:21:14 +08:00
bcma UPSTREAM: gpio: change member .dev to .parent 2018-02-28 14:55:00 +08:00
block cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:49:13 +02:00
bluetooth LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
bus bus: brcmstb_gisb: correct support for 64-bit address output 2018-04-13 19:50:05 +02:00
cdrom cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:49:13 +02:00
char x86/cpufeature: Remove unused and seldomly used cpu_has_xx macros 2018-06-16 09:54:24 +02:00
cir rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
clk LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
clocksource LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
cmmb rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
connector
cpufreq LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
cpuidle Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-06-11 16:48:21 +05:30
crypto LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
dca
devfreq PM / devfreq: rockchip_dmc: Add wide-temperature control 2018-07-06 19:40:25 +08:00
dio
dma LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
dma-buf
edac EDAC, mv64x60: Fix an error handling path 2018-04-13 19:50:23 +02:00
eisa
extcon
firewire firewire-ohci: work around oversized DMA reads on JMicron controllers 2018-05-30 07:48:52 +02:00
firmware LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
fmc
fpga
gpio LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
gpu drm/panel: simple-panel: no need to send off commands in panel_simple_shutdown 2018-07-09 09:47:18 +08:00
headset_observe rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
hid LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
hsi HSI: ssi_protocol: double free in ssip_pn_xmit() 2018-03-24 10:58:42 +01:00
hv Drivers: hv: vmbus: fix build warning 2018-02-25 11:03:46 +01:00
hwmon LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
hwspinlock
hwtracing This is the 4.4.136 stable release 2018-06-11 16:23:40 +01:00
i2c LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
ide cdrom: do not call check_disk_change() inside cdrom_open() 2018-05-30 07:49:13 +02:00
idle idle: i7300: add PCI dependency 2018-02-25 11:03:51 +01:00
iio LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
infiniband RDMA/ucma: Correct option size check using optlen 2018-05-30 07:49:05 +02:00
input LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
iommu LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
ipack
irqchip LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
isdn isdn: eicon: fix a missing-check bug 2018-06-13 16:15:28 +02:00
leds LSK 18.05 v4.4-android 2018-06-04 20:16:28 +08:00
lguest
lightnvm
macintosh
mailbox
mcb
md Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-06-11 16:48:21 +05:30
media LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
memory
memstick
message scsi: mptfusion: Add bounds check in mptctl_hp_targetinfo() 2018-05-30 07:48:58 +02:00
mfd mfd: fusb302: Don't ignore UFP_D 2018-06-19 08:51:10 +08:00
misc LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
mmc LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
mtd LSK 18.05 v4.4-android 2018-06-04 20:16:28 +08:00
net LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
nfc Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-04-08 18:28:30 +08:00
ntb ntb_transport: Fix bug with max_mw_size parameter 2018-05-30 07:48:55 +02:00
nubus
nvdimm
nvme LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
nvmem nvmem: rockchip-otp: Add support for rk3308-otp 2018-06-13 14:16:35 +08:00
of Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-04-08 18:28:30 +08:00
oprofile
parisc parisc/pci: Switch LBA PCI bus from Hard Fail to Soft Fail mode 2018-05-30 07:49:10 +02:00
parport parport_pc: Add support for WCH CH382L PCI-E single parallel port card. 2018-04-08 11:52:00 +02:00
pci LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
pcmcia
perf Merge branch 'linux-linaro-lsk-v4.4-android' of git://git.linaro.org/kernel/linux-linaro-stable.git 2018-04-08 18:28:30 +08:00
phy phy: rockchip: rockchip-inno-usb2: fix lock warning 2018-07-09 11:06:14 +08:00
pinctrl UPSTREAM: pinctrl: rockchip: Add iomux-route switching support for rk3288 2018-05-16 15:22:24 +08:00
platform LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
pnp
power power: rk817_charger: the system voltage can't be shutdown in bat_off mode 2018-06-21 18:14:51 +08:00
powercap PowerCap: Fix an error code in powercap_register_zone() 2018-04-13 19:50:05 +02:00
pps
ps3
ptp time: Change posix clocks ops interfaces to use timespec64 2018-03-24 10:58:40 +01:00
pwm pwm: pwm-rockchip-i2s: initialize the dma_slave_config to zero 2018-06-27 11:17:33 +08:00
rapidio
ras
regulator LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
remoteproc
reset
rk_nand drivers: rk_nand: fix 2cs 3d mlc nand gc fail issue 2018-07-06 15:28:57 +08:00
rkflash drivers: rkflash: update spi nand ECC strategy 2018-06-28 18:10:58 +08:00
rpmsg
rtc LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
s390 s390/cio: clear timer when terminating driver I/O 2018-05-30 07:49:00 +02:00
sbus
scsi Merge branch 'linux-linaro-lsk-v4.4' into linux-linaro-lsk-v4.4-android 2018-06-12 11:54:49 +01:00
sfi
sh
smc rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
sn
soc soc: rockchip: opp_select: Implement APIs for wide-temperature control 2018-07-06 19:38:51 +08:00
spi LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
spmi
ssb ssb: mark ssb_bus_register as __maybe_unused 2018-02-25 11:03:44 +01:00
staging LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
switch rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
target tcm_fileio: Prevent information leak for short reads 2018-03-24 10:58:45 +01:00
tc
tee BACKPORT: tee: shm: Potential NULL dereference calling tee_shm_register() 2018-03-05 21:58:40 +05:30
testcode rk: add SPDX license identifier to files with no license 2018-01-31 20:56:06 +08:00
thermal thermal: Add thermal_notifier_list for thermal zone 2018-07-06 19:36:38 +08:00
thunderbolt thunderbolt: Resume control channel after hibernation image is created 2018-04-24 09:32:07 +02:00
tty LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
uio
usb LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
uwb
vfio vfio/pci: Virtualize Maximum Read Request Size 2018-04-24 09:32:09 +02:00
vhost vhost: correctly remove wait queue during poll failure 2018-04-13 19:50:25 +02:00
video LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
virt
virtio virtio_balloon: prevent uninitialized variable use 2018-02-25 11:03:42 +01:00
vlynq
vme
w1
watchdog LSK 18.06 v4.4-android 2018-07-06 20:12:54 +08:00
xen xen/acpi: off by one in read_acpi_id() 2018-05-30 07:49:09 +02:00
zorro zorro: Set up z->dev.dma_mask for the DMA API 2018-05-30 07:49:11 +02:00
Kconfig drivers: rkflash: add rkflash drivers 2018-05-23 09:26:14 +08:00
Makefile drivers: rkflash: add rkflash drivers 2018-05-23 09:26:14 +08:00