Re: [PATCH 1/5] usb: gadget: introduce support for sg lists

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

 



On Wed, 14 Dec 2011, Felipe Balbi wrote:

> Some controllers support scatter/gather transfers
> and that might be very useful for some gadget drivers.
> 
> Signed-off-by: Felipe Balbi <balbi@xxxxxx>

> @@ -88,6 +91,9 @@ struct usb_request {
>  	unsigned		length;
>  	dma_addr_t		dma;
>  
> +	struct scatterlist	*sg;
> +	unsigned		num_sgs;
> +

You may also need a num_mapped_sgs field.  See commit
bc677d5b64644c399cd3db6a905453e611f402ab (usb: fix number of mapped SG
DMA entries) in Greg's usb-next branch.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


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

  Powered by Linux