usb: gadget: udc: core: add usb_gadget_{un}map_request_by_dev()
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 18 Apr 2016 07:53:39 +0000 (16:53 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 19 Apr 2016 08:11:54 +0000 (11:11 +0300)
commit679ca39fc670a5a95c2b40d2cc8cf2cee2486f7a
treee9b2958d9594cb81ea9df6d6bd945771ad872bcc
parent5096c4d3bfa75bdd23c78f799aabd08598afb48f
usb: gadget: udc: core: add usb_gadget_{un}map_request_by_dev()

If the following environment, the first argument of DMA API should
be set to a DMAC's device structure, not a udc controller's one.
 - A udc controller needs an external DMAC device (like a DMA Engine).
 - The external DMAC enables IOMMU.

So, this patch add usb_gadget_{un}map_request_by_dev() API to set
a DMAC's device structure by a udc controller driver.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/udc-core.c
include/linux/usb/gadget.h