Loading drivers/usb/gadget/function/f_accessory.c +2 −2 Original line number Diff line number Diff line Loading @@ -625,8 +625,6 @@ static ssize_t acc_read(struct file *fp, char __user *buf, if (count > BULK_BUFFER_SIZE) count = BULK_BUFFER_SIZE; len = ALIGN(count, dev->ep_out->maxpacket); /* we will block until we're online */ pr_debug("acc_read: waiting for online\n"); ret = wait_event_interruptible(dev->read_wq, dev->online); Loading @@ -635,6 +633,8 @@ static ssize_t acc_read(struct file *fp, char __user *buf, goto done; } len = ALIGN(count, dev->ep_out->maxpacket); if (dev->rx_done) { // last req cancelled. try to get it. req = dev->rx_req[0]; Loading Loading
drivers/usb/gadget/function/f_accessory.c +2 −2 Original line number Diff line number Diff line Loading @@ -625,8 +625,6 @@ static ssize_t acc_read(struct file *fp, char __user *buf, if (count > BULK_BUFFER_SIZE) count = BULK_BUFFER_SIZE; len = ALIGN(count, dev->ep_out->maxpacket); /* we will block until we're online */ pr_debug("acc_read: waiting for online\n"); ret = wait_event_interruptible(dev->read_wq, dev->online); Loading @@ -635,6 +633,8 @@ static ssize_t acc_read(struct file *fp, char __user *buf, goto done; } len = ALIGN(count, dev->ep_out->maxpacket); if (dev->rx_done) { // last req cancelled. try to get it. req = dev->rx_req[0]; Loading