usb: msm_otg: Support LPAE systems
Targets having large physical address extension support
enabled (CONFIG_ARM_LPAE) have phys_addr_t and dma_addr_t
defined as 64-bit types. When printing messages with these
addresses the format string needs to use '%pa' instead of
'%x' and pass the physical address by reference. This patch
addresses these in the USB 2.0 OTG, host, and gadget controller
drivers.
Also extend coherent dma_mask from 32-bits to 64-bits to match
that of dma_mask. This fixes the following runtime error when
booting on LPAE systems:
msm_hsusb msm_hsusb: coherent DMA mask 0xffffffff is smaller
than system GFP_DMA mask 0xffffffffffffffff
Change-Id: I1a45b62dd51f6d3f54b43cf657f5b4e5c2a7620f
Signed-off-by:
Jack Pham <jackp@codeaurora.org>
Loading
Please register or sign in to comment