LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: icxcnika@mar.tar.cc
To: linux-kernel@vger.kernel.org
Subject: Re: [linux-usb-devel] 2.6.20-rc4: usb somehow broken
Date: Sun, 14 Jan 2007 19:47:12 +0000 (GMT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0701141945010.14767@server.willdawg> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0701141418290.24969-100000@netrider.rowland.org>


On Sun, 14 Jan 2007, Alan Stern wrote:

> On Sun, 14 Jan 2007, Prakash Punnoor wrote:
>
>> Am Sonntag 14 Januar 2007 10:28 schrieb Oliver Neukum:
>>> Am Sonntag, 14. Januar 2007 10:08 schrieb Prakash Punnoor:
>>>> Am Donnerstag 11 Januar 2007 18:28 schrieb Oliver Neukum:
>>>>> Am Donnerstag, 11. Januar 2007 18:20 schrieb Prakash Punnoor:
>>>>>> Hi,
>>>>>>
>>>>>> I can't scan anymore. :-( I don't know which rc kernel introduced it,
>>>>>> but this are the messages I get (w/o touching the device/usb cable
>>>>>> except pluggin it in for the first time):
>>>>>>
>>>>>> usb 1-1.2: new full speed USB device using ehci_hcd and address 4
>>>>>> ehci_hcd 0000:00:0b.1: qh ffff81007bc6c280 (#00) state 4
>>>>>> usb 1-1.2: configuration #1 chosen from 1 choice
>>>>>> usb 1-1.2: USB disconnect, address 4
>>>>>> usb 1-1.2: new full speed USB device using ehci_hcd and address 5
>>>>>> usb 1-1.2: configuration #1 chosen from 1 choice
>>>>>> usb 1-1.2: USB disconnect, address 5
>>>>>> usb 1-1.2: new full speed USB device using ehci_hcd and address 6
>>>>>> usb 1-1.2: configuration #1 chosen from 1 choice
>>>>>> usb 1-1.2: USB disconnect, address 6
>>>>>> usb 1-1.2: new full speed USB device using ehci_hcd and address 7
>>>>>> usb 1-1.2: configuration #1 chosen from 1 choice
>>>>>> usb 1-1.2: USB disconnect, address 7
>>>>>> usb 1-1.2: new full speed USB device using ehci_hcd and address 8
>>>>>> usb 1-1.2: configuration #1 chosen from 1 choice
>>>
>>> [..]
>>>
>>>> Hi, I did more tests and I was wrong about "broken". It seems more a
>>>> time-out problem, ie if I try to use sane again in short intervalls, I
>>>> will get my device working. The cause seems CONFIG_USB_SUSPEND=y. With
>>>> 2.6.20-rc5 the
>>>
>>> Have you confirmed that by using a kernel without  CONFIG_USB_SUSPEND ?
>>
>> Yes. I compiled the modules with various settings, reloaded the modules and
>> above option made the difference. I also don't get the disconnect mesages, as
>> well, w/o USB_SUSPEND.
>
> Judging from the log, it looks like the scanner cannot handle being
> suspended.  (BTW this is in violation of the USB specification -- all
> devices must be able to suspend and resume.)
>
> When the scanner is not in use, the system automatically suspends it after
> two seconds.  When you use sane the scanner is resumed, but it then
> disconnects itself and reconnects.  Sane is left trying to control the
> disconnected device instance, so of course it fails.
>
> I'm beginning to think that we need some way to deal with devices that
> cannot recover from a suspend.  Several examples have cropped up.
> Unfortunately, I can't think of anything better than a blacklist, which is
> not very satisfactory.
>
> Can anyone suggest another approach?
>
> Alan Stern

Just a thought, you could use both a blacklist approach, and a module 
paramater, or something in sysfs, to allow specifying devices that won't 
be suspend and resume compatible.

William Heimbigner
icxcnika@mar.tar.cc

  reply	other threads:[~2007-01-14 19:47 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-11 17:20 Prakash Punnoor
2007-01-11 17:28 ` Oliver Neukum
2007-01-14  9:08   ` Prakash Punnoor
2007-01-14  9:28     ` Oliver Neukum
2007-01-14  9:44       ` Prakash Punnoor
2007-01-14 19:23         ` [linux-usb-devel] " Alan Stern
2007-01-14 19:47           ` icxcnika [this message]
2007-01-14 21:03             ` Oliver Neukum
2007-01-15 11:10             ` Oliver Neukum
2007-01-15 16:03               ` Alan Stern
2007-01-15 16:24                 ` Oliver Neukum
2007-01-15 16:36                   ` Alan Stern
2007-01-15 17:56                 ` Greg KH
2007-01-14  9:48       ` Prakash Punnoor
2007-01-14  9:58     ` Adrian Bunk
2007-01-19 11:29 ` [linux-usb-devel] " Oliver Neukum
2007-01-19 13:38   ` Prakash Punnoor
2007-01-19 14:00     ` Prakash Punnoor

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.64.0701141945010.14767@server.willdawg \
    --to=icxcnika@mar.tar.cc \
    --cc=linux-kernel@vger.kernel.org \
    --subject='Re: [linux-usb-devel] 2.6.20-rc4: usb somehow broken' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).