mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
Merge "usb: composite: Return status zero if remote wakeup is not supported"
This commit is contained in:
commit
52c083f29f
1 changed files with 5 additions and 1 deletions
|
|
@ -1899,7 +1899,11 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
|
|||
f = cdev->config->interface[intf];
|
||||
if (!f)
|
||||
break;
|
||||
status = f->get_status ? f->get_status(f) : 0;
|
||||
|
||||
if (USB_CONFIG_ATT_WAKEUP & cdev->config->bmAttributes)
|
||||
status = f->get_status ? f->get_status(f) : 0;
|
||||
else
|
||||
status = 0;
|
||||
if (status < 0)
|
||||
break;
|
||||
put_unaligned_le16(status & 0x0000ffff, req->buf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue