android_kernel_xiaomi_sm8350/drivers/usb/cdns3
Pawel Laszczak 0b2a56fe46 usb: cdns3: Fix issue with using incorrect PCI device function
commit 1272fd652a226ccb34e9f47371b6121948048438 upstream.

PCI based platform can have more than two PCI functions.
USBSS PCI Glue driver during initialization should
consider only DRD/HOST/DEVICE PCI functions and
all other should be ignored. This patch adds additional
condition which causes that only DRD and HOST/DEVICE
function will be accepted.

cc: <stable@vger.kernel.org>
Fixes: 7733f6c32e ("usb: cdns3: Add Cadence USB3 DRD Driver")
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20230308124427.311245-1-pawell@cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-04-05 11:16:40 +02:00
..
cdns3-pci-wrap.c usb: cdns3: Fix issue with using incorrect PCI device function 2023-04-05 11:16:40 +02:00
core.c
core.h
debug.h
drd.c
drd.h
ep0.c
gadget-export.h
gadget.c usb: cdns3: fix issue with rearming ISO OUT endpoint 2022-09-28 11:04:02 +02:00
gadget.h
host-export.h
host.c
Kconfig
Makefile
trace.c
trace.h