Skip to content

Commit ad7c56f

Browse files
vapiergregkh
authored andcommitted
USB: sl811: add Kconfig option for ISOCHRONOUS mode
Some bluetooth dongles want ISO mode, and the limited support that the sl811 offers today is sufficient. So add a Kconfig option for people to optionally get access to the partial functionality. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent ee81b3e commit ad7c56f

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

‎drivers/usb/host/Kconfig‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,16 @@ config USB_SL811_HCD
444444
To compile this driver as a module, choose M here: the
445445
module will be called sl811-hcd.
446446

447+
config USB_SL811_HCD_ISO
448+
bool "partial ISO support"
449+
depends on USB_SL811_HCD
450+
help
451+
The driver doesn't support iso_frame_desc (yet), but for some simple
452+
devices that just queue one ISO frame per URB, then ISO transfers
453+
"should" work using the normal urb status fields.
454+
455+
If unsure, say N.
456+
447457
config USB_SL811_CS
448458
tristate "CF/PCMCIA support for SL811HS HCD"
449459
depends on USB_SL811_HCD && PCMCIA

‎drivers/usb/host/sl811-hcd.c‎

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,6 @@ MODULE_ALIAS("platform:sl811-hcd");
7171
/* for now, use only one transfer register bank */
7272
#undef USE_B
7373

74-
/* this doesn't understand urb->iso_frame_desc[], but if you had a driver
75-
* that just queued one ISO frame per URB then iso transfers "should" work
76-
* using the normal urb status fields.
77-
*/
78-
#define DISABLE_ISO
79-
8074
// #define QUIRK2
8175
#define QUIRK3
8276

@@ -807,7 +801,7 @@ static int sl811h_urb_enqueue(
807801
int retval;
808802
struct usb_host_endpoint *hep = urb->ep;
809803

810-
#ifdef DISABLE_ISO
804+
#ifndef CONFIG_USB_SL811_HCD_ISO
811805
if (type == PIPE_ISOCHRONOUS)
812806
return -ENOSPC;
813807
#endif

0 commit comments

Comments
 (0)