android_kernel_xiaomi_sm8450/drivers
Wesley Cheng 9527907814 UPSTREAM: usb: dwc3: gadget: Avoid duplicate requests to enable Run/Stop
Relocate the pullups_connected check until after it is ensured that there
are no runtime PM transitions.  If another context triggered the DWC3
core's runtime resume, it may have already enabled the Run/Stop.  Do not
re-run the entire pullup sequence again, as it may issue a core soft
reset while Run/Stop is already set.

This patch depends on
  commit 69e131d1ac4e ("usb: dwc3: gadget: Prevent repeat pullup()")

Fixes: 77adb8bdf422 ("usb: dwc3: gadget: Allow runtime suspend if UDC unbinded")
Cc: stable <stable@kernel.org>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20220728020647.9377-1-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 245440430
Change-Id: I8b819b4773420fbca3bd7a284d715401dcdd00c3
(cherry picked from commit 040f2dbd2010c43f33ad27249e6dac48456f4d99)
Signed-off-by: Prashanth K <quic_prashk@quicinc.com>
2022-09-09 08:59:20 +00:00
..
accessibility speakup-dectlk: Restore pitch setting 2022-02-16 12:54:30 +01:00
acpi This is the 5.10.112 stable release 2022-04-29 09:15:09 +02:00
amba amba: Make the remove callback return void 2022-04-08 14:40:02 +02:00
android ANDROID: vendor_hooks:vendor hook for __alloc_pages_slowpath. 2022-08-26 21:58:44 +00:00
ata ata: pata_marvell: Check the 'bmdma_addr' beforing reading 2022-04-27 13:53:54 +02: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 'android12-5.10.117_r00' into 'android12-5.10' 2022-07-27 11:21:05 +02:00
bcma
block Merge tag 'android12-5.10.110_r01' into android12-5.10 2022-05-27 09:24:14 -07:00
bluetooth This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
bus bus: sunxi-rsb: Fix the return value of sunxi_rsb_device_create() 2022-05-09 09:05:04 +02:00
cdrom
char This is the 5.10.111 stable release 2022-04-21 14:27:41 +02:00
clk This is the 5.10.114 stable release 2022-05-12 17:48:27 +02:00
clocksource This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
connector
counter counter: stm32-lptimer-cnt: remove iio counter abi 2022-01-27 10:54:08 +01:00
cpufreq This is the 5.10.114 stable release 2022-05-12 17:48:27 +02:00
cpuidle This is the 5.10.80 stable release 2021-11-19 11:50:41 +01:00
crypto This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
dax dax: make sure inodes are flushed before destroy cache 2022-04-08 14:40:16 +02:00
dca
devfreq
dio
dma dma: at_xdmac: fix a missing check on list iterator 2022-04-27 13:53:55 +02:00
dma-buf This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
edac EDAC/synopsys: Read the error count from the correct register 2022-04-27 13:53:54 +02:00
eisa
extcon
firewire firewire: core: extend card->lock in fw_core_handle_bus_reset 2022-05-12 12:25:32 +02:00
firmware This is the 5.10.112 stable release 2022-04-29 09:15:09 +02:00
fpga
fsi fsi: Aspeed: Fix a potential double free 2022-04-08 14:40:23 +02:00
gnss
gpio This is the 5.10.115 stable release 2022-05-16 08:45:26 +02:00
gpu This is the 5.10.117 stable release 2022-05-18 13:09:42 +02:00
greybus greybus: svc: fix an error handling bug in gb_svc_hello() 2022-04-08 14:39:50 +02:00
hid This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
hsi HSI: core: Fix return freed object in hsi_new_client 2022-01-27 10:54:12 +01:00
hv Drivers: hv: vmbus: Prevent load re-ordering when reading ring buffer 2022-04-20 09:23:20 +02:00
hwmon This is the 5.10.117 stable release 2022-05-18 13:09:42 +02:00
hwspinlock
hwtracing This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
i2c This is the 5.10.112 stable release 2022-04-29 09:15:09 +02:00
i3c
ide
idle
iio iio:imu:bmi160: disable regulator in error path 2022-05-09 09:05:00 +02:00
infiniband This is the 5.10.115 stable release 2022-05-16 08:45:26 +02:00
input amba: Make the remove callback return void 2022-04-08 14:40:02 +02:00
interconnect
iommu Merge tag 'android12-5.10.117_r00' into 'android12-5.10' 2022-07-27 11:21:05 +02:00
ipack
irqchip This is the 5.10.111 stable release 2022-04-21 14:27:41 +02:00
isdn isdn: hfcpci: check the return value of dma_set_mask() in setup_hw() 2022-03-16 14:15:57 +01:00
leds
lightnvm lightnvm: disable the subsystem 2022-05-09 09:04:56 +02:00
macintosh
mailbox mailbox: imx: fix wakeup failure from freeze mode 2022-04-08 14:40:41 +02:00
mcb
md Merge tag 'android12-5.10.110_r01' into android12-5.10 2022-05-27 09:24:14 -07:00
media This is the 5.10.112 stable release 2022-04-29 09:15:09 +02:00
memory This is the 5.10.114 stable release 2022-05-12 17:48:27 +02:00
memstick
message
mfd mfd: asic3: Add missing iounmap() on error asic3_mfd_probe 2022-04-08 14:40:23 +02:00
misc This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
mmc This is the 5.10.115 stable release 2022-05-16 08:45:26 +02:00
most
mtd This is the 5.10.114 stable release 2022-05-12 17:48:27 +02:00
mux
net This is the 5.10.117 stable release 2022-05-18 13:09:42 +02: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.113 stable release 2022-05-12 11:23:35 +02:00
nvmem nvmem: core: set size for sysfs bin file 2022-01-27 10:54:22 +01:00
of ANDROID: mm: memblock: avoid to create memmap for memblock nomap regions 2022-08-23 22:09:33 +00:00
opp This is the 5.10.80 stable release 2021-11-19 11:50:41 +01:00
oprofile
parisc parisc: Fix CPU affinity for Lasi, WAX and Dino chips 2022-04-13 21:01:03 +02:00
parport
pci Merge tag 'android12-5.10.117_r00' into 'android12-5.10' 2022-07-27 11:21:05 +02:00
pcmcia pcmcia: fix setting of kthread task states 2022-01-27 10:54:03 +01:00
perf arm_pmu: Validate single/group leader events 2022-04-27 13:53:55 +02:00
phy phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe 2022-05-09 09:05:01 +02:00
pinctrl This is the 5.10.114 stable release 2022-05-12 17:48:27 +02:00
platform This is the 5.10.113 stable release 2022-05-12 11:23:35 +02:00
pnp
power This is the 5.10.111 stable release 2022-04-21 14:27:41 +02:00
powercap
pps
ps3
ptp ptp: replace snprintf with sysfs_emit 2022-04-13 21:00:55 +02:00
pwm This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
rapidio
ras
regulator This is the 5.10.112 stable release 2022-04-29 09:15:09 +02: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.113 stable release 2022-05-12 11:23:35 +02:00
rpmsg This is the 5.10.96 stable release 2022-02-07 11:17:58 +01:00
rtc rtc: wm8350: Handle error for wm8350_register_irq 2022-04-13 21:00:54 +02:00
s390 This is the 5.10.117 stable release 2022-05-18 13:09:42 +02:00
sbus
scsi BACKPORT: scsi: ufs: core: Increase fDeviceInit poll frequency 2022-09-07 04:52:58 +00:00
sfi
sh maple: fix wrong return value of maple_bus_init(). 2021-11-26 10:39:12 +01:00
siox
slimbus slimbus: qcom: Fix IRQ check in qcom_slim_probe 2022-05-18 10:23:47 +02:00
soc This is the 5.10.110 stable release 2022-04-18 17:41:18 +02:00
soundwire soundwire: intel: fix wrong register name in intel_shim_wake 2022-04-08 14:40:24 +02:00
spi This is the 5.10.113 stable release 2022-05-12 11:23:35 +02:00
spmi
ssb
staging Merge tag 'android12-5.10.110_r01' into android12-5.10 2022-05-27 09:24:14 -07:00
target This is the 5.10.112 stable release 2022-04-29 09:15:09 +02:00
tc
tee optee: use driver internal tee_context for some rpc 2022-03-02 11:42:47 +01:00
thermal ANDROID: thermal: vendor hook to disable thermal cooling stats 2022-08-23 15:03:59 +00:00
thunderbolt thunderbolt: Runtime PM activate both ends of the device link 2022-01-27 10:54:14 +01:00
tty This is the 5.10.117 stable release 2022-05-18 13:09:42 +02:00
uio
usb UPSTREAM: usb: dwc3: gadget: Avoid duplicate requests to enable Run/Stop 2022-09-09 08:59:20 +00: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 This is the 5.10.111 stable release 2022-04-21 14:27:41 +02:00
video video: fbdev: udlfb: properly check endpoint type 2022-05-09 09:05:00 +02:00
virt
virtio This is the 5.10.106 stable release 2022-03-18 15:02:31 +01:00
visorbus
vlynq
vme
w1 w1: w1_therm: fixes w1_seq for ds28ea00 sensors 2022-04-13 21:01:01 +02: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
Makefile