On Wed, Sep 12, 2007 at 06:14:04PM -0400, Mark Lord wrote:Oliver Neukum wrote:Am Dienstag 14 August 2007 schrieb Paolo Ornati:I believe the offending commit needs to be reverted.On Tue, 14 Aug 2007 17:46:16 +0200Exactly. This is not reliable. It needs to be done in kernel. This patch
Oliver Neukum <oliver@xxxxxxxxxx> wrote:
Am Dienstag 14 August 2007 schrieb Paolo Ornati:Tried on -rc3 but it doesn't work, dmesg attached.Hewlett-Packard PhotoSmart 720 / PhotoSmart 935 (storage)Please try this patch.
However I've found that if "hald" is running the problems doesn't
happen (I think it's just hidden by the fact that hald do some polling
on it preventing autosuspend to trigger).
should do it.
Regards
Oliver
---
--- a/drivers/usb/core/quirks.c 2007-08-14 17:42:22.000000000 +0200
+++ b/drivers/usb/core/quirks.c 2007-08-14 20:30:28.000000000 +0200
@@ -30,6 +30,8 @@
static const struct usb_device_id usb_quirk_list[] = {
/* HP 5300/5370C scanner */
{ USB_DEVICE(0x03f0, 0x0701), .driver_info = USB_QUIRK_STRING_FETCH_255 },
+ /* Hewlett-Packard PhotoSmart 720 / PhotoSmart 935 (storage) */
+ { USB_DEVICE(0x03f0, 0x4002), .driver_info = USB_QUIRK_NO_AUTOSUSPEND },
/* Acer Peripherals Inc. (now BenQ Corp.) Prisa 640BU */
{ USB_DEVICE(0x04a5, 0x207e), .driver_info = USB_QUIRK_NO_AUTOSUSPEND },
/* Benq S2W 3300U */
-
It just breaks too much stuff, including my Sandisk USB sticks.
with "CONFIG_USB_SUSPEND=y", since commit:Ditto for several other devices that are being slowly special-cased,
8dfe4b14869fd185ca25ee88b02ada58a3005eaf
usb-storage: implement autosuspend
This patch (as930) implements autosuspend for usb-storage. It is
adapted from a patch by Oliver Neukum. Autosuspend is allowed except
during LUN scanning, resets, and command execution.
my USB photo-camera gets automagically disconnected before I can do
anything with it ;)
and many that have yet to be tested. This commit is (unfortunately)
a disaster with many regressions.
There are many regressions right now, _ONLY_ if you enable
CONFIG_USB_SUSPEND. If you disable that, your problems will go away,
right?
This option is a new option, and we have found out the hard way that
a very large class of hardware really does not like working with usb
suspend at all.