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

Commit 45afad6e authored by Azhar Shaikh's avatar Azhar Shaikh
Browse files

usb: ehci-msm2: Set dma bit mask to 32



ChipIdea USB controller supports only 32 bit addressing. Some targets
support 64 bit or 32 bit addressing. In order to support ChipIdea
controller on 64 bit targets dma bit mask must be defined as 32.

Change-Id: I2fa0c9bb2efa9879520a3ca04c8950e34609a3f1
Signed-off-by: default avatarAzhar Shaikh <azhars@codeaurora.org>
parent c5564588
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -82,7 +82,7 @@ static const struct ehci_driver_overrides ehci_msm_overrides __initdata = {
	.reset = ehci_msm_reset,
};

static u64 msm_ehci_dma_mask = DMA_BIT_MASK(64);
static u64 msm_ehci_dma_mask = DMA_BIT_MASK(32);
static int ehci_msm_probe(struct platform_device *pdev)
{
	struct usb_hcd *hcd;
@@ -94,7 +94,7 @@ static int ehci_msm_probe(struct platform_device *pdev)
	if (!pdev->dev.dma_mask)
		pdev->dev.dma_mask = &msm_ehci_dma_mask;
	if (!pdev->dev.coherent_dma_mask)
		pdev->dev.coherent_dma_mask = DMA_BIT_MASK(64);
		pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);

	hcd = usb_create_hcd(&ehci_msm_hc_driver, &pdev->dev,
			     dev_name(&pdev->dev));
+1 −1
Original line number Diff line number Diff line
@@ -1309,7 +1309,7 @@ struct msm_usb_host_platform_data *ehci_msm2_dt_to_pdata(
	return pdata;
}

static u64 ehci_msm_dma_mask = DMA_BIT_MASK(64);
static u64 ehci_msm_dma_mask = DMA_BIT_MASK(32);
static int ehci_msm2_probe(struct platform_device *pdev)
{
	struct usb_hcd *hcd;