]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: udc: core: Fix argument of dma_map_single for IOMMU
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Mon, 13 Jul 2015 09:10:05 +0000 (18:10 +0900)
committerFelipe Balbi <balbi@ti.com>
Mon, 20 Jul 2015 17:57:46 +0000 (12:57 -0500)
commit09e483ef237251da705e6e56fd761ccac42f728d
tree58e33564d7ef41e42bc8d9ea4c0fb49edb88d7ee
parent71c4cee51d04bb0a9145bde671923421d3565110
usb: gadget: udc: core: Fix argument of dma_map_single for IOMMU

The dma_map_single and dma_unmap_single should set "gadget->dev.parent"
instead of "&gadget->dev" in the first argument because the parent has
a udc controller's device pointer.
Otherwise, iommu functions are not called in ARM environment.

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