Move handling of CPort-reset exceptions to the reset handler.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
struct usb_device *udev = es2->usb_dev;
int retval;
+ switch (cport_id) {
+ case GB_SVC_CPORT_ID:
+ return 0;
+ }
+
retval = usb_control_msg(udev, usb_sndctrlpipe(udev, 0),
GB_APB_REQUEST_RESET_CPORT,
USB_DIR_OUT | USB_TYPE_VENDOR |
{
int retval;
- if (cport_id != GB_SVC_CPORT_ID) {
- retval = cport_reset(hd, cport_id);
- if (retval)
- return retval;
- }
+ retval = cport_reset(hd, cport_id);
+ if (retval)
+ return retval;
return 0;
}