usb: renesas_usbhs: add support for USB-DMAC
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 12 Mar 2015 06:35:20 +0000 (15:35 +0900)
committerFelipe Balbi <balbi@ti.com>
Fri, 13 Mar 2015 15:41:19 +0000 (10:41 -0500)
commitab330cf3888d8e0779fa05a243d53ba9f53a7ba9
tree9e27ed02aeb8be7dd617004d03baabe821e398bf
parent9b53d9af7aac09cf249d72bfbf15f08e47c4f7fe
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>
drivers/usb/renesas_usbhs/common.c
drivers/usb/renesas_usbhs/common.h
drivers/usb/renesas_usbhs/fifo.c
drivers/usb/renesas_usbhs/fifo.h
drivers/usb/renesas_usbhs/pipe.c
drivers/usb/renesas_usbhs/pipe.h
include/linux/usb/renesas_usbhs.h