On Tue, 22 Nov 2011, Sebastian Andrzej Siewior wrote: > 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; Ah, yes. I didn't see it originally but you're right. Good, Felipe was way ahead of me all along. :-) 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