aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb/quirks.h
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2009-12-18 12:14:21 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 14:53:23 -0800
commit5d3987796c7a747e5ed3ded1eb64a9632d52a1a4 (patch)
treef677d4014bd5e25d1f4ccac1862fd95655baedec /include/linux/usb/quirks.h
parentUSB: otg: twl4030: add support for notifier (diff)
downloadlinux-dev-5d3987796c7a747e5ed3ded1eb64a9632d52a1a4.tar.xz
linux-dev-5d3987796c7a747e5ed3ded1eb64a9632d52a1a4.zip
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 'include/linux/usb/quirks.h')
-rw-r--r--include/linux/usb/quirks.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb/quirks.h b/include/linux/usb/quirks.h
index 2526f3bbd273..0a555dd131fc 100644
--- a/include/linux/usb/quirks.h
+++ b/include/linux/usb/quirks.h
@@ -19,4 +19,7 @@
/* device can't handle its Configuration or Interface strings */
#define USB_QUIRK_CONFIG_INTF_STRINGS 0x00000008
+/*device will morph if reset, don't use reset for handling errors */
+#define USB_QUIRK_RESET_MORPHS 0x00000010
+
#endif /* __LINUX_USB_QUIRKS_H */