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>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
b787f68c36
commit
a5011d44f0
@@ -51,7 +51,8 @@ static int uas_find_endpoints(struct usb_host_interface *alt,
|
||||
}
|
||||
|
||||
static int uas_use_uas_driver(struct usb_interface *intf,
|
||||
const struct usb_device_id *id)
|
||||
const struct usb_device_id *id,
|
||||
unsigned long *flags_ret)
|
||||
{
|
||||
struct usb_host_endpoint *eps[4] = { };
|
||||
struct usb_device *udev = interface_to_usbdev(intf);
|
||||
@@ -132,5 +133,8 @@ static int uas_use_uas_driver(struct usb_interface *intf,
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (flags_ret)
|
||||
*flags_ret = flags;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user