LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Alan Stern <stern@rowland.harvard.edu>
To: Oliver Neukum <oneukum@suse.de>
Cc: linux-usb-devel@lists.sourceforge.net,
	Oliver Neukum <oliver@neukum.org>, <icxcnika@mar.tar.cc>,
	<linux-kernel@vger.kernel.org>
Subject: Re: [linux-usb-devel] 2.6.20-rc4: usb somehow broken
Date: Mon, 15 Jan 2007 11:36:38 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.44L0.0701151129070.15327-100000@netrider.rowland.org> (raw)
In-Reply-To: <200701151724.42831.oneukum@suse.de>

On Mon, 15 Jan 2007, Oliver Neukum wrote:

> Am Montag, 15. Januar 2007 17:03 schrieb Alan Stern:
> > On Mon, 15 Jan 2007, Oliver Neukum wrote:
> 
> > > Upon further thought, a module parameter won't do as the problem
> > > will arise without a driver loaded. A sysfs parameter turns the whole
> > > affair into a race condition. Will you set the guard parameter before the
> > > autosuspend logic strikes?
> > > Unfortunately this leaves only the least attractive solution.
> > 
> > There could be a mixed approach: a builtin blacklist that is extensible 
> > via a procfs- or sysfs-based interface.
> 
> If you want to ask with a lot of bug reports which blacklist was loaded,
> then we could.

This is a "damned-if-you-do, damned-if-you-don't" situation.  Anyway, I've 
never liked the idea of loading up the kernel with a bunch of preset 
blacklist entries.  For most users that are a waste of space, and unneeded 
entries almost never get removed.

> > Note that we actually have two problems to contend with.  Some devices
> > must never be autosuspended at all (they disconnect when resuming), and
> > others need a reset after resuming.
> 
> Do those who can be brought back with a reset need to be listed at all?
> Error handling is not a bad idea.

The problem is that the system can't always tell that a reset is needed.  
There might be no symptoms at all.  For example, I've got a USB keypad 
which doesn't work right after a resume -- key presses never get sent to 
the computer.  As far as the system can tell the device is fine, though.

Alan Stern


  reply	other threads:[~2007-01-15 16:36 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
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 [this message]
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.44L0.0701151129070.15327-100000@netrider.rowland.org \
    --to=stern@rowland.harvard.edu \
    --cc=icxcnika@mar.tar.cc \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=oliver@neukum.org \
    --cc=oneukum@suse.de \
    --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).