@@ -1404,12 +1404,9 @@ static void xhci_unmap_temp_buf(struct usb_hcd *hcd, struct urb *urb)
1404
1404
static int xhci_map_urb_for_dma (struct usb_hcd * hcd , struct urb * urb ,
1405
1405
gfp_t mem_flags )
1406
1406
{
1407
- unsigned int i , maxpacket ;
1408
- struct scatterlist * sg ;
1409
1407
struct xhci_hcd * xhci ;
1410
1408
1411
1409
xhci = hcd_to_xhci (hcd );
1412
- maxpacket = usb_endpoint_maxp (& urb -> ep -> desc );
1413
1410
1414
1411
if (xhci_urb_suitable_for_idt (urb ))
1415
1412
return 0 ;
@@ -1418,16 +1415,6 @@ static int xhci_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb,
1418
1415
if (xhci_urb_temp_buffer_required (hcd , urb ))
1419
1416
return xhci_map_temp_buffer (hcd , urb );
1420
1417
}
1421
-
1422
- if (xhci -> quirks & XHCI_VLI_SS_BULK_OUT_BUG &&
1423
- usb_endpoint_is_bulk_out (& urb -> ep -> desc ) &&
1424
- urb -> dev -> speed >= USB_SPEED_SUPER &&
1425
- urb -> transfer_buffer_length != 0 ) {
1426
- for_each_sg (urb -> sg , sg , urb -> num_sgs , i ) {
1427
- if (sg -> length % maxpacket )
1428
- return xhci_map_temp_buffer (hcd , urb );
1429
- }
1430
- }
1431
1418
return usb_hcd_map_urb_for_dma (hcd , urb , mem_flags );
1432
1419
}
1433
1420
@@ -1441,8 +1428,7 @@ static void xhci_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb)
1441
1428
if (urb -> num_sgs && (urb -> transfer_flags & URB_DMA_MAP_SINGLE ))
1442
1429
unmap_temp_buf = true;
1443
1430
1444
- if ((xhci -> quirks & (XHCI_SG_TRB_CACHE_SIZE_QUIRK | XHCI_VLI_SS_BULK_OUT_BUG ))
1445
- && unmap_temp_buf )
1431
+ if ((xhci -> quirks & XHCI_SG_TRB_CACHE_SIZE_QUIRK ) && unmap_temp_buf )
1446
1432
xhci_unmap_temp_buf (hcd , urb );
1447
1433
else
1448
1434
usb_hcd_unmap_urb_for_dma (hcd , urb );
0 commit comments