Re: [PATCH 3/9] usb-core: Track if an endpoint has streams

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

 



Hi,

On 10/04/2013 05:35 PM, Alan Stern wrote:
On Fri, 4 Oct 2013, Hans de Goede wrote:

This is a preparation patch for adding support for bulk streams to usbfs.

+	for (i = 0; i < num_eps; i++)
+		eps[i]->has_streams = 1;

--- a/include/linux/usb.h
+++ b/include/linux/usb.h
@@ -71,6 +71,7 @@ struct usb_host_endpoint {
  	unsigned char *extra;   /* Extra descriptors */
  	int extralen;
  	int enabled;
+	int has_streams;

Instead of storing a 0/1 value, wouldn't it be more useful to store the
number of streams the endpoint has?

That might be useful in the future, yes, I'll upate this in my next version
of this patch set.

Regards,

Hans


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