@@ -1393,12 +1393,9 @@ static void xhci_unmap_temp_buf(struct usb_hcd *hcd, struct urb *urb)
1393
1393
static int xhci_map_urb_for_dma (struct usb_hcd * hcd , struct urb * urb ,
1394
1394
gfp_t mem_flags )
1395
1395
{
1396
- unsigned int i , maxpacket ;
1397
- struct scatterlist * sg ;
1398
1396
struct xhci_hcd * xhci ;
1399
1397
1400
1398
xhci = hcd_to_xhci (hcd );
1401
- maxpacket = usb_endpoint_maxp (& urb -> ep -> desc );
1402
1399
1403
1400
if (xhci_urb_suitable_for_idt (urb ))
1404
1401
return 0 ;
@@ -1407,16 +1404,6 @@ static int xhci_map_urb_for_dma(struct usb_hcd *hcd, struct urb *urb,
1407
1404
if (xhci_urb_temp_buffer_required (hcd , urb ))
1408
1405
return xhci_map_temp_buffer (hcd , urb );
1409
1406
}
1410
-
1411
- if (xhci -> quirks & XHCI_VLI_SS_BULK_OUT_BUG &&
1412
- usb_endpoint_is_bulk_out (& urb -> ep -> desc ) &&
1413
- urb -> dev -> speed >= USB_SPEED_SUPER &&
1414
- urb -> transfer_buffer_length != 0 ) {
1415
- for_each_sg (urb -> sg , sg , urb -> num_sgs , i ) {
1416
- if (sg -> length % maxpacket )
1417
- return xhci_map_temp_buffer (hcd , urb );
1418
- }
1419
- }
1420
1407
return usb_hcd_map_urb_for_dma (hcd , urb , mem_flags );
1421
1408
}
1422
1409
@@ -1430,8 +1417,7 @@ static void xhci_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb)
1430
1417
if (urb -> num_sgs && (urb -> transfer_flags & URB_DMA_MAP_SINGLE ))
1431
1418
unmap_temp_buf = true;
1432
1419
1433
- if ((xhci -> quirks & (XHCI_SG_TRB_CACHE_SIZE_QUIRK | XHCI_VLI_SS_BULK_OUT_BUG ))
1434
- && unmap_temp_buf )
1420
+ if ((xhci -> quirks & XHCI_SG_TRB_CACHE_SIZE_QUIRK ) && unmap_temp_buf )
1435
1421
xhci_unmap_temp_buf (hcd , urb );
1436
1422
else
1437
1423
usb_hcd_unmap_urb_for_dma (hcd , urb );
0 commit comments