diff options
author | Oliver Neukum <oliver@neukum.org> | 2009-12-18 06:14:21 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 17:53:23 -0500 |
commit | 5d3987796c7a747e5ed3ded1eb64a9632d52a1a4 (patch) | |
tree | f677d4014bd5e25d1f4ccac1862fd95655baedec /drivers/usb/core | |
parent | d1b5b5c0a8a8204f0c51d5eb99736ecfb2fd5b4e (diff) |
USB: storage: Never reset devices that will morph to an old mode
Some devices must be switched to a new mode to fully use them.
A reset would make them revert to the old mode. Therefore a reset
must not be used for error handling with such devices.
Signed-off-by: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r-- | drivers/usb/core/quirks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/core/quirks.c b/drivers/usb/core/quirks.c index ab93918d920..0b689224394 100644 --- a/drivers/usb/core/quirks.c +++ b/drivers/usb/core/quirks.c | |||
@@ -120,6 +120,7 @@ void usb_detect_quirks(struct usb_device *udev) | |||
120 | * for all devices. It will affect things like hub resets | 120 | * for all devices. It will affect things like hub resets |
121 | * and EMF-related port disables. | 121 | * and EMF-related port disables. |
122 | */ | 122 | */ |
123 | udev->persist_enabled = 1; | 123 | if (!(udev->quirks & USB_QUIRK_RESET_MORPHS)) |
124 | udev->persist_enabled = 1; | ||
124 | #endif /* CONFIG_PM */ | 125 | #endif /* CONFIG_PM */ |
125 | } | 126 | } |