Title: [9755] trunk/drivers/usb/host: [#5346] usb: sl811: turn iso option into a kconfig
Revision
9755
Author
vapier
Date
2011-03-22 16:00:04 -0400 (Tue, 22 Mar 2011)

Log Message

[#5346] usb: sl811: turn iso option into a kconfig

Modified Paths

Diff

Modified: trunk/drivers/usb/host/Kconfig (9754 => 9755)


--- trunk/drivers/usb/host/Kconfig	2011-03-22 19:58:53 UTC (rev 9754)
+++ trunk/drivers/usb/host/Kconfig	2011-03-22 20:00:04 UTC (rev 9755)
@@ -411,6 +411,16 @@
 	  To compile this driver as a module, choose M here: the
 	  module will be called sl811-hcd.
 
+config USB_SL811_HCD_ISO
+	bool "partial ISO support"
+	depends on USB_SL811_HCD
+	help
+	  The driver doesn't support iso_frame_desc (yet), but for some simple
+	  devices that just queue one ISO frame per URB, then ISO transfers
+	  "should" work using the normal urb status fields.
+
+	  If unsure, say N.
+
 choice
 	prompt "Dummy Delay ASYNC Memory Bank"
 	depends on (BLACKFIN && USB_SL811_HCD)

Modified: trunk/drivers/usb/host/sl811-hcd.c (9754 => 9755)


--- trunk/drivers/usb/host/sl811-hcd.c	2011-03-22 19:58:53 UTC (rev 9754)
+++ trunk/drivers/usb/host/sl811-hcd.c	2011-03-22 20:00:04 UTC (rev 9755)
@@ -71,12 +71,6 @@
 /* for now, use only one transfer register bank */
 #undef	USE_B
 
-/* this doesn't understand urb->iso_frame_desc[], but if you had a driver
- * that just queued one ISO frame per URB then iso transfers "should" work
- * using the normal urb status fields.
- */
-/* #define	DISABLE_ISO */
-
 // #define	QUIRK2
 #define	QUIRK3
 
@@ -807,7 +801,7 @@
 	int			retval;
 	struct usb_host_endpoint	*hep = urb->ep;
 
-#ifdef	DISABLE_ISO
+#ifndef CONFIG_USB_SL811_HCD_ISO
 	if (type == PIPE_ISOCHRONOUS)
 		return -ENOSPC;
 #endif
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to