]> git.baikalelectronics.ru Git - kernel.git/commit
uas: Allow uas_use_uas_driver to return usb-storage flags
authorHans de Goede <hdegoede@redhat.com>
Tue, 21 Apr 2015 09:20:30 +0000 (11:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Apr 2015 10:48:56 +0000 (12:48 +0200)
commitd250495dac30b280a372b533134aee41b1acfc6b
treea97c92848993a966d7e05a82af0174eeda1ba42c
parentce88222e1fb53c38d3b94c3b5ceebe1d2ab4956d
uas: Allow uas_use_uas_driver to return usb-storage flags

uas_use_uas_driver may set some US_FL_foo flags during detection, currently
these are stored in a local variable and then throw away, but these may be
of interest to the caller, so add an extra parameter to (optionally) return
the detected flags, and use this in the uas driver.

Cc: stable@vger.kernel.org # 3.16
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas-detect.h
drivers/usb/storage/uas.c
drivers/usb/storage/usb.c