[PATCH v2 15/15] usb: musb: core: decrease delayed_work time

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



When babble IRQ happens, we need to wait only
5.3us (320 cycles of 60MHz clock), we will give
it some slack and schedule our work a 10 usecs into
the future.

Signed-off-by: Felipe Balbi <balbi@xxxxxx>
---
 drivers/usb/musb/musb_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c
index 8d016ba30c5f..e77dfab8205a 100644
--- a/drivers/usb/musb/musb_core.c
+++ b/drivers/usb/musb/musb_core.c
@@ -886,7 +886,7 @@ b_host:
 				if (is_host_active(musb)) {
 					musb_disable_interrupts(musb);
 					schedule_delayed_work(&musb->recover_work,
-							msecs_to_jiffies(100));
+							usecs_to_jiffies(10));
 				}
 			}
 		} else {
-- 
2.3.0

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux