usb: host: xhci: purge GET_MAX_PACKET()
usb_endpoint_maxp() is now returning maxpacket correctly - iow only bits 10:0. We can finaly remove XHCI's private GET_MAX_PACKET macro. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
This commit is contained in:
@@ -1415,7 +1415,7 @@ static u32 xhci_get_max_esit_payload(struct usb_device *udev,
|
||||
else if (udev->speed >= USB_SPEED_SUPER)
|
||||
return le16_to_cpu(ep->ss_ep_comp.wBytesPerInterval);
|
||||
|
||||
max_packet = GET_MAX_PACKET(usb_endpoint_maxp(&ep->desc));
|
||||
max_packet = usb_endpoint_maxp(&ep->desc);
|
||||
max_burst = usb_endpoint_maxp_mult(&ep->desc);
|
||||
/* A 0 in max burst means 1 transfer per ESIT */
|
||||
return max_packet * max_burst;
|
||||
@@ -1461,7 +1461,7 @@ int xhci_endpoint_init(struct xhci_hcd *xhci,
|
||||
max_esit_payload = xhci_get_max_esit_payload(udev, ep);
|
||||
interval = xhci_get_endpoint_interval(udev, ep);
|
||||
mult = xhci_get_endpoint_mult(udev, ep);
|
||||
max_packet = GET_MAX_PACKET(usb_endpoint_maxp(&ep->desc));
|
||||
max_packet = usb_endpoint_maxp(&ep->desc);
|
||||
max_burst = xhci_get_endpoint_max_burst(udev, ep);
|
||||
avg_trb_len = max_esit_payload;
|
||||
|
||||
|
Reference in New Issue
Block a user