dwc3: gadget: Use sysdev device instead of gadget->dev.parent
Currently usb_gadget_unmap_request() is using usb controller device
node (i.e. example a600000.dwc3) instead of using sysdev which is
parent of usb controller device node (i.e. example a800000.ssusb).
IOMMU based page table is being created with sysdev device. Due to
passing wrong device node, dma_unmap_page() goes through default
architecture specific dma_ops() instead of IOMMU based dma_ops() and
cause page fault related crash. Fix this issue by passing correct usb
device information with unmap API.
Change-Id: Ifadc29d1f52e924c3d2b49fc34039748739caebc
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Loading
Please register or sign in to comment