Commit 17f69b5f authored by Jeremy Linton's avatar Jeremy Linton Committed by Greg Kroah-Hartman

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: default avatarHuang Shijie <shijie.huang@arm.com>
Reviewed-by: default avatarGraeme Gregory <graeme.gregory@linaro.org>
Reviewed-by: default avatarHanjun Guo <hanjun.guo@linaro.org>
Acked-by: default avatarAlan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarJeremy Linton <jeremy.linton@arm.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 39047e07
...@@ -162,8 +162,10 @@ static int ehci_platform_probe(struct platform_device *dev) ...@@ -162,8 +162,10 @@ static int ehci_platform_probe(struct platform_device *dev)
err = dma_coerce_mask_and_coherent(&dev->dev, err = dma_coerce_mask_and_coherent(&dev->dev,
pdata->dma_mask_64 ? DMA_BIT_MASK(64) : DMA_BIT_MASK(32)); 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; return err;
}
irq = platform_get_irq(dev, 0); irq = platform_get_irq(dev, 0);
if (irq < 0) { if (irq < 0) {
......
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