]> git.karo-electronics.de Git - linux-beck.git/commit
usb: renesas_usbhs: use usb_gadget_{un}map_request_by_dev() for IPMMU
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 18 Apr 2016 07:53:42 +0000 (16:53 +0900)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 19 Apr 2016 08:11:55 +0000 (11:11 +0300)
commitb41d8a6a014fba420a428244e04699b9c77a44f1
tree3d72759810cf7c9600192a8899ebab063aa9f478
parentc3cdcac786ae8ce9221a05609952d14aa57c27f7
usb: renesas_usbhs: use usb_gadget_{un}map_request_by_dev() for IPMMU

The previous code could use the first USB-DMAC with IPMMU if iommus
property was set into this device node. However, in this case, it
could not control the second USB-DMAC with IPMMU because a parameter
of IPMMU (micro-TLB id) is different with each USB-DMAC.

So, this patch uses the usb_gadget_{un}map_request_by_dev() APIs for
IPMMU. (Then, iommus property should be set into USB-DMAC node(s).)

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/renesas_usbhs/mod_gadget.c