summaryrefslogtreecommitdiffstats
path: root/drivers/usb/renesas_usbhs/fifo.h
diff options
context:
space:
mode:
authorYoshihiro Shimoda2015-03-12 07:35:20 +0100
committerFelipe Balbi2015-03-13 16:41:19 +0100
commitab330cf3888d8e0779fa05a243d53ba9f53a7ba9 (patch)
tree9e27ed02aeb8be7dd617004d03baabe821e398bf /drivers/usb/renesas_usbhs/fifo.h
parentusb: renesas_usbhs: fix the sequence in xfer_work() (diff)
downloadkernel-qcow2-linux-ab330cf3888d8e0779fa05a243d53ba9f53a7ba9.tar.gz
kernel-qcow2-linux-ab330cf3888d8e0779fa05a243d53ba9f53a7ba9.tar.xz
kernel-qcow2-linux-ab330cf3888d8e0779fa05a243d53ba9f53a7ba9.zip
usb: renesas_usbhs: add support for USB-DMAC
Some Renesas SoCs have the USB-DMAC. It is able to terminate transfers when a short packet is received, even if less bytes than the transfer counter size have been received. Also, it is able to send a short packet even if the packet size is not multiples of 8bytes. Since the previous code has used the interruption of USBHS controller when receiving packets even if this driver has used a dmac, a lot of interruptions has happened. This patch will reduce such interruptions. This patch allows to use the USB-DMAC on R-Car H2 and M2. Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/renesas_usbhs/fifo.h')
-rw-r--r--drivers/usb/renesas_usbhs/fifo.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/renesas_usbhs/fifo.h b/drivers/usb/renesas_usbhs/fifo.h
index f07037c1185f..04d3f8abad9e 100644
--- a/drivers/usb/renesas_usbhs/fifo.h
+++ b/drivers/usb/renesas_usbhs/fifo.h
@@ -58,6 +58,7 @@ struct usbhs_pkt {
struct usbhs_pkt *pkt);
struct work_struct work;
dma_addr_t dma;
+ dma_cookie_t cookie;
void *buf;
int length;
int trans;