Re: USB warning on cdc-acm device close

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

 



On Tue, Jul 28, 2009 at 8:57 PM, Alan Stern<stern@xxxxxxxxxxxxxxxxxxx> wrote:
> On Tue, 28 Jul 2009, Manuel Lauss wrote:
>
>> > Did you disable only the I/O watchdog, or did you also disable the IAA
>> > watchdog?
>>
>> I/O Watchdog. With this:
>> diff --git a/drivers/usb/host/ehci-hcd.c b/drivers/usb/host/ehci-hcd.c
>> index 7d03549..047b7c0 100644
>> --- a/drivers/usb/host/ehci-hcd.c
>> +++ b/drivers/usb/host/ehci-hcd.c
>> @@ -140,7 +139,9 @@ timer_action(struct ehci_hcd *ehci, enum
>> ehci_timer_action action)
>>                       t = DIV_ROUND_UP(EHCI_SHRINK_FRAMES * HZ, 1000) + 1;
>>                       break;
>>               }
>> +#ifndef CONFIG_USB_EHCI_NO_IO_WATCHDOG
>>               mod_timer(&ehci->watchdog, t + jiffies);
>> +#endif
>>       }
>>  }
>
> Ooh, that doesn't disable just the I/O watchdog!  It also disables the
> Async-Off and Async-Shrink watchdogs (they share the same timer).

Okay, I changed this to return immediately in "case TIMER_IO_WATCHDOG:"

I did the test as you asked, but disconnecting the device proved a bit
difficult since it doesn't have a physical connector (it's soldered on).

The "async" debug file is empty in all cases: after detection of the device,
after closing minicom, even after disconnecting it from the bus; removing
ehci-hcd still produces the dma pool busy messages.

khubd is waiting for something at drivers/usb/core/hub.c:3273

Thanks!
      Manuel Lauss
--
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