mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 10:29:37 +00:00
xHCI: update sg tablesize
Update sg tablesize as we can expand the ring now. Signed-off-by: Andiry Xu <andiry.xu@amd.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Tested-by: Paul Zimmerman <Paul.Zimmerman@synopsys.com>
This commit is contained in:
parent
085deb1684
commit
fdaf8b3183
1 changed files with 2 additions and 1 deletions
|
@ -3968,7 +3968,8 @@ int xhci_gen_setup(struct usb_hcd *hcd, xhci_get_quirks_t get_quirks)
|
||||||
int retval;
|
int retval;
|
||||||
u32 temp;
|
u32 temp;
|
||||||
|
|
||||||
hcd->self.sg_tablesize = TRBS_PER_SEGMENT - 2;
|
/* Accept arbitrarily long scatter-gather lists */
|
||||||
|
hcd->self.sg_tablesize = ~0;
|
||||||
|
|
||||||
if (usb_hcd_is_primary_hcd(hcd)) {
|
if (usb_hcd_is_primary_hcd(hcd)) {
|
||||||
xhci = kzalloc(sizeof(struct xhci_hcd), GFP_KERNEL);
|
xhci = kzalloc(sizeof(struct xhci_hcd), GFP_KERNEL);
|
||||||
|
|
Loading…
Reference in a new issue