Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 59aa5670 authored by Jack Pham's avatar Jack Pham
Browse files

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: default avatarJack Pham <jackp@codeaurora.org>
parent 1e6f19ab
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment