Skip to content

Commit 35df62b

Browse files
Prashanth Ksmb49
authored andcommitted
usb: host: xhci-plat: Add support for XHCI_SG_TRB_CACHE_SIZE_QUIRK
BugLink: https://bugs.launchpad.net/bugs/2059991 commit 520b391 upstream. Upstream commit bac1ec5 ("usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK") introduced a new quirk in XHCI which fixes XHC timeout, which was seen on synopsys XHCs while using SG buffers. Currently this quirk can only be set using xhci private data. But there are some drivers like dwc3/host.c which adds adds quirks using software node for xhci device. Hence set this xhci quirk by iterating over device properties. Cc: stable@vger.kernel.org # 5.11 Fixes: bac1ec5 ("usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK") Signed-off-by: Prashanth K <quic_prashk@quicinc.com> Link: https://lore.kernel.org/r/20240116055816.1169821-3-quic_prashk@quicinc.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Portia Stephens <portia.stephens@canonical.com> Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
1 parent 61f5791 commit 35df62b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/usb/host/xhci-plat.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ int xhci_plat_probe(struct platform_device *pdev, struct device *sysdev, const s
250250
if (device_property_read_bool(tmpdev, "quirk-broken-port-ped"))
251251
xhci->quirks |= XHCI_BROKEN_PORT_PED;
252252

253+
if (device_property_read_bool(tmpdev, "xhci-sg-trb-cache-size-quirk"))
254+
xhci->quirks |= XHCI_SG_TRB_CACHE_SIZE_QUIRK;
255+
253256
device_property_read_u32(tmpdev, "imod-interval-ns",
254257
&xhci->imod_interval);
255258
}

0 commit comments

Comments
 (0)