Re: [RFC PATCH 5/6] xhci: align the last trb before link if it is easily splittable.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Mathias Nyman <mathias.nyman@xxxxxxxxxxxxxxx> writes:
> diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
> index d86da81..c7c9521 100644
> --- a/drivers/usb/host/xhci-ring.c
> +++ b/drivers/usb/host/xhci-ring.c
> @@ -3098,6 +3098,27 @@ static u32 xhci_td_remainder(struct xhci_hcd *xhci, int transferred,
>  	return (total_packet_count - ((transferred + trb_buff_len) / maxp));
>  }
>  
> +static int xhci_align_td(struct xhci_hcd *xhci, struct urb *urb, u32 enqd_len,
> +			 u32 *trb_buff_len)
> +{
> +	unsigned int unalign;
> +	unsigned int max_pkt;
> +
> +	max_pkt = usb_endpoint_maxp(&urb->ep->desc); /*FIXME MATTU GET_MAX..? */
                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     huh?

-- 
balbi

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux