]> www.infradead.org Git - users/dwmw2/linux.git/commit
usb: host: xhci-plat: Iterate over parent nodes for finding quirks
authorAnurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Fri, 31 Aug 2018 14:24:42 +0000 (17:24 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:56:00 +0000 (08:56 +0200)
commite6ecfa261ae6f4bdfe5a431c7ca8d623335827d2
tree63e7b69c5b760771871a9e4da9b138f284afc112
parent3f97eca3c822dad2c47e98812db39a98cfee25bd
usb: host: xhci-plat: Iterate over parent nodes for finding quirks

[ Upstream commit 222471f7640d9771a993218d825d84825adc805d ]

In xhci_plat_probe() both sysdev and pdev->dev are being used
for finding quirks. There are some drivers(like dwc3 host.c)
which adds quirks(like usb3-lpm-capable) into pdev and the logic
present in xhci_plat_probe() checks for quirks in either sysdev
or pdev for finding the quirks. Because of this logic, some of
the quirks are getting missed(usb3-lpm-capable quirk added by dwc3
host.c driver is getting missed).This patch fixes this by iterating
over all the available parents for finding the quirks. In this way
all the quirks which are present in child or parent are correctly
updated.

Signed-off-by: Anurag Kumar Vulisha <anurag.kumar.vulisha@xilinx.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c