]> 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)
commitf5b2de76bd8dc1d44f5f62d7d3881b16dede18eb
tree58e33564d7ef41e42bc8d9ea4c0fb49edb88d7ee
parentdd936fc2d55b08f1e20095b91d47595bccd03448
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