Re: [RFC/PATCH 0/2] SG support on gadget framework

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

 



On 11/22/2011 05:14 PM, Alan Stern wrote:
In addition to what Sebastian pointed out, the API is missing a piece.
A gadget driver needs to know whether or not the UDC driver supports SG
operations and how large an SG list may become.  There should be a
"sg_max_tablesize" field (or some name like that) added to struct
usb_gadget; if the field is 0 then SG operations aren't supported.


He added that and named it sg_tablesize:

@@ -519,6 +588,7 @@ struct usb_gadget {
 	struct list_head		ep_list;	/* of usb_ep */
 	enum usb_device_speed		speed;
 	enum usb_device_speed		max_speed;
+	unsigned			sg_tablesize;


> Alan Stern
>


Sebastian
--
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