Commit 488dc164 authored by Mathias Nyman's avatar Mathias Nyman Committed by Greg Kroah-Hartman

xhci: remove WARN_ON if dma mask is not set for platform devices

The warn on is a bit too much, we will anyway set the dma mask if not set
previously.

The main reason for this fix is that 4.10-rc1  has a dwc3 change that
pass a parent sysdev dev pointer instead of setting the dma mask of
its xhci platform device. xhci platform driver can then get more
attributes from the sysdev than just the dma mask.

The usb core and xhci changes are not yet in 4.10, and a fix like
this was preferred instead of taking those big changes this late in
the rc-cycle.
Signed-off-by: default avatarMathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 833674a4
...@@ -165,7 +165,7 @@ static int xhci_plat_probe(struct platform_device *pdev) ...@@ -165,7 +165,7 @@ static int xhci_plat_probe(struct platform_device *pdev)
return -ENODEV; return -ENODEV;
/* Try to set 64-bit DMA first */ /* Try to set 64-bit DMA first */
if (WARN_ON(!pdev->dev.dma_mask)) if (!pdev->dev.dma_mask)
/* Platform did not initialize dma_mask */ /* Platform did not initialize dma_mask */
ret = dma_coerce_mask_and_coherent(&pdev->dev, ret = dma_coerce_mask_and_coherent(&pdev->dev,
DMA_BIT_MASK(64)); DMA_BIT_MASK(64));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment