projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
425c1ce
)
MTP: solve one cancel problem
author
hwg
<hwg@rock-chips.com>
Fri, 8 Jun 2012 07:16:45 +0000
(15:16 +0800)
committer
hwg
<hwg@rock-chips.com>
Fri, 8 Jun 2012 07:16:45 +0000
(15:16 +0800)
drivers/usb/gadget/f_mtp.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/f_mtp.c
b/drivers/usb/gadget/f_mtp.c
index 4ac7c8394983c976f4d9905611e1bcb2d43fb8be..034cdf68f9f6462219509c28af0a1d45ec7f564b 100755
(executable)
--- a/
drivers/usb/gadget/f_mtp.c
+++ b/
drivers/usb/gadget/f_mtp.c
@@
-1037,7
+1037,7
@@
static int mtp_ctrlrequest(struct usb_composite_dev *cdev,
DBG(cdev, "MTP_REQ_CANCEL %d\n", dev->state);
spin_lock_irqsave(&dev->lock, flags);
-
if (dev->state == STATE_BUSY)
{
+
/*if (dev->state == STATE_BUSY)*/
{
dev->state = STATE_CANCELED;
wake_up(&dev->read_wq);
wake_up(&dev->write_wq);