usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK
authorTejas Joglekar <Tejas.Joglekar@synopsys.com>
Tue, 8 Dec 2020 09:29:08 +0000 (11:29 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2020 12:30:07 +0000 (13:30 +0100)
commit1bee58e891f26a4246ad10fcc9c8c7e173a898f4
tree8bc12c914ab8a18020d8e774de1d92a4135b3b64
parent2bd9751e6790c45377628c09b92afbc4f1bfe4ed
usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK

commit bac1ec551434697ca3c5bb5d258811ba5446866a upstream.

This commit uses the private data passed by parent device
to set the quirk for Synopsys xHC. This patch fixes the
SNPS xHC hang issue when the data is scattered across
small buffers which does not make atleast MPS size for
given TRB cache size of SNPS xHC.

Signed-off-by: Tejas Joglekar <joglekar@synopsys.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20201208092912.1773650-2-mathias.nyman@linux.intel.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-plat.c
drivers/usb/host/xhci.h