usb: renesas_usbhs: Use dmac only if the pipe type is bulk
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 8 Aug 2016 12:50:53 +0000 (21:50 +0900)
committerSasha Levin <alexander.levin@verizon.com>
Wed, 31 Aug 2016 23:21:09 +0000 (19:21 -0400)
commit79e3a23fe5a319e5799f12585f6a74d1214c66c7
tree5df953be1aaa30f9066b327a48732946e4c6d826
parent80a979e8212300af4464fa0872a025ac303a50d5
usb: renesas_usbhs: Use dmac only if the pipe type is bulk

[ Upstream commit 700aa7ff8d2c2b9cc669c99375e2ccd06d3cd38d ]

This patch fixes an issue that isochronous transfer's data is possible to
be lost as a workaround. Since this driver uses a workqueue to start
the dmac, the transfer is possible to be delayed when system load is high.

Fixes: 6e4b74e4690d ("usb: renesas: fix scheduling in atomic context bug")
Cc: <stable@vger.kernel.org> # v3.4+
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/usb/renesas_usbhs/fifo.c