Commit dcd82cd1 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

USB: serial: fix up reset_resume callback

If the usb-serial driver doesn't have a reset_resume callback, then we
need to tell the USB core that it doesn't, and it needs to rebind the
device.

Thanks to Alan for pointing out my mistake, and providing the fix.
Reported-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1c1eaba8
...@@ -1176,8 +1176,10 @@ static int usb_serial_reset_resume(struct usb_interface *intf) ...@@ -1176,8 +1176,10 @@ static int usb_serial_reset_resume(struct usb_interface *intf)
serial->suspending = 0; serial->suspending = 0;
if (serial->type->reset_resume) if (serial->type->reset_resume)
rv = serial->type->reset_resume(serial); rv = serial->type->reset_resume(serial);
else else {
rv = usb_serial_generic_resume(serial); rv = -EOPNOTSUPP;
intf->needs_binding = 1;
}
return rv; return rv;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment