usb: convert USB_QUIRK_RESET_MORPHS to USB_QUIRK_RESET
Since the attribute avoid_reset_quirk is work for all devices including those devices that can't morph, convert USB_QUIRK_RESET_MORPHS to USB_QUIRK_RESET. Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

zatwierdzone przez
Greg Kroah-Hartman

rodzic
2d36684659
commit
7fda953ffe
@@ -1331,7 +1331,7 @@ int usb_stor_port_reset(struct us_data *us)
|
||||
int result;
|
||||
|
||||
/*for these devices we must use the class specific method */
|
||||
if (us->pusb_dev->quirks & USB_QUIRK_RESET_MORPHS)
|
||||
if (us->pusb_dev->quirks & USB_QUIRK_RESET)
|
||||
return -EPERM;
|
||||
|
||||
result = usb_lock_device_for_reset(us->pusb_dev, us->pusb_intf);
|
||||
|
Reference in New Issue
Block a user