dwc3-msm: Use dma mask related APIs after attaching IOMMU
When dwc3-msm driver's probe encounters -EPROBE_DEFER condition
(e.g. extcon phandle access failure case), it detaches IOMMU using
arm_iommu_detach_device() API. This detach API clears device's
dma_ops() when DOMAIN_ATTR_S1_BYPASS is not set. Hence next time
driver's probe is failing as dma_set_mask() API returns -EIO. Fix
this issue by using dma mask related APIs after attaching IOMMU
with USB device.
Change-Id: I7f9e13ed950bcbad27a27bc5ed8ccaa664ca19d7
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
Loading
Please register or sign in to comment