USB: ehci-platform: Display a DMA configuration error message

If the ehci driver fails to configure the dma settings then display
a dev error instead of simply failing. This is triggered in an
ACPI world if the user fails to set the _CCA on the device.

Tested-by: Huang Shijie <[email protected]>
Reviewed-by: Graeme Gregory <[email protected]>
Reviewed-by: Hanjun Guo <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Jeremy Linton <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
Jeremy Linton 2015-08-19 16:36:31 -05:00 • committed by Greg Kroah-Hartman
commit 17f69b5fa6

View file

@ -162,8 +162,10 @@ static int ehci_platform_probe(struct platform_device *dev)
err = dma_coerce_mask_and_coherent(&dev->dev,
pdata->dma_mask_64 ? DMA_BIT_MASK(64) : DMA_BIT_MASK(32));
if (err)
if (err) {
dev_err(&dev->dev, "Error: DMA mask configuration failed\n");
return err;
}
irq = platform_get_irq(dev, 0);
if (irq < 0) {