RE: [PATCH/RFC] usb: gadget: udc: core: Fix argument of dma_map_single for IOMMU

2015-07-13 Thread Yoshihiro Shimoda
Hi Geert-san, > Sent: Tuesday, July 14, 2015 1:52 AM > > Hi Greg, > > On Mon, Jul 13, 2015 at 6:19 PM, Greg KH wrote: > > On Mon, Jul 13, 2015 at 06:10:05PM +0900, Yoshihiro Shimoda wrote: > >> The dma_map_single and dma_unmap_single should set "gadget->dev.parent" > >> instead of "&gadget->dev

Re: [PATCH/RFC] usb: gadget: udc: core: Fix argument of dma_map_single for IOMMU

2015-07-13 Thread Geert Uytterhoeven
Hi Greg, On Mon, Jul 13, 2015 at 6:19 PM, Greg KH wrote: > On Mon, Jul 13, 2015 at 06:10:05PM +0900, Yoshihiro Shimoda wrote: >> 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

Re: [PATCH/RFC] usb: gadget: udc: core: Fix argument of dma_map_single for IOMMU

2015-07-13 Thread Greg KH
On Mon, Jul 13, 2015 at 06:10:05PM +0900, Yoshihiro Shimoda wrote: > 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 A