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>
Wed, 9 Dec 2020 13:32:00 +0000 (14:32 +0100)
commitbac1ec551434697ca3c5bb5d258811ba5446866a
treed82666872b1becc3b3766329d2091e0fcff57c1a
parentb175d273d4e4100b66e68f0675fef7a3c07a7957
usb: xhci: Set quirk for XHCI_SG_TRB_CACHE_SIZE_QUIRK

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