Skip to content

Commit

Permalink
[PATCH] USBATM: -EILSEQ workaround
Browse files Browse the repository at this point in the history
Don't throttle on -EILSEQ urb status if requested by a minidriver.
It seems the ueagle modems are buggy, giving -EILSEQ when they
have no data to send.  The ueagle change will be sent separately
by the ueagle guys.  Patch by Matthieu Castet.

Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Duncan Sands authored and Greg Kroah-Hartman committed Feb 1, 2006
1 parent 9b0e54a commit a3673d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/usb/atm/usbatm.c
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,10 @@ static void usbatm_complete(struct urb *urb, struct pt_regs *regs)

spin_unlock_irqrestore(&channel->lock, flags);

if (unlikely(urb->status)) {
if (unlikely(urb->status) &&
(!(channel->usbatm->flags & UDSL_IGNORE_EILSEQ) ||
urb->status != -EILSEQ ))
{
if (printk_ratelimit())
atm_warn(channel->usbatm, "%s: urb 0x%p failed (%d)!\n",
__func__, urb, urb->status);
Expand Down
1 change: 1 addition & 0 deletions drivers/usb/atm/usbatm.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@

#define UDSL_SKIP_HEAVY_INIT (1<<0)
#define UDSL_USE_ISOC (1<<1)
#define UDSL_IGNORE_EILSEQ (1<<2)


/* mini driver */
Expand Down

0 comments on commit a3673d3

Please sign in to comment.