* [PATCH] usb: dwc2: Print error if unable to set DMA coherent mask
@ 2018-02-12 20:20 ` Stefan Wahren
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Wahren @ 2018-02-12 20:20 UTC (permalink / raw)
To: John Youn, Felipe Balbi
Cc: Gevorg Sahakyan, Minas Harutyunyan, Greg Kroah-Hartman,
linux-usb, linux-kernel, Stefan Wahren
We better print an error in case probing of dwc2 fails on
setting the DMA coherent mask.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
drivers/usb/dwc2/platform.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index 4703478..4ddbdbd 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -382,8 +382,10 @@ static int dwc2_driver_probe(struct platform_device *dev)
if (!dev->dev.dma_mask)
dev->dev.dma_mask = &dev->dev.coherent_dma_mask;
retval = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(32));
- if (retval)
+ if (retval) {
+ dev_err(&dev->dev, "can't set coherent DMA mask: %d\n", retval);
return retval;
+ }
res = platform_get_resource(dev, IORESOURCE_MEM, 0);
hsotg->regs = devm_ioremap_resource(&dev->dev, res);
--
2.7.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* usb: dwc2: Print error if unable to set DMA coherent mask
@ 2018-02-12 20:20 ` Stefan Wahren
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Wahren @ 2018-02-12 20:20 UTC (permalink / raw)
To: John Youn, Felipe Balbi
Cc: Gevorg Sahakyan, Minas Harutyunyan, Greg Kroah-Hartman,
linux-usb, linux-kernel, Stefan Wahren
We better print an error in case probing of dwc2 fails on
setting the DMA coherent mask.
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
---
drivers/usb/dwc2/platform.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
index 4703478..4ddbdbd 100644
--- a/drivers/usb/dwc2/platform.c
+++ b/drivers/usb/dwc2/platform.c
@@ -382,8 +382,10 @@ static int dwc2_driver_probe(struct platform_device *dev)
if (!dev->dev.dma_mask)
dev->dev.dma_mask = &dev->dev.coherent_dma_mask;
retval = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(32));
- if (retval)
+ if (retval) {
+ dev_err(&dev->dev, "can't set coherent DMA mask: %d\n", retval);
return retval;
+ }
res = platform_get_resource(dev, IORESOURCE_MEM, 0);
hsotg->regs = devm_ioremap_resource(&dev->dev, res);
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] usb: dwc2: Print error if unable to set DMA coherent mask
@ 2018-03-08 17:31 ` Stefan Wahren
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Wahren @ 2018-03-08 17:31 UTC (permalink / raw)
To: John Youn, Felipe Balbi
Cc: Gevorg Sahakyan, Greg Kroah-Hartman, Minas Harutyunyan,
linux-usb, linux-kernel
> Stefan Wahren <stefan.wahren@i2se.com> hat am 12. Februar 2018 um 21:20 geschrieben:
>
>
> We better print an error in case probing of dwc2 fails on
> setting the DMA coherent mask.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
> ---
> drivers/usb/dwc2/platform.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
> index 4703478..4ddbdbd 100644
> --- a/drivers/usb/dwc2/platform.c
> +++ b/drivers/usb/dwc2/platform.c
> @@ -382,8 +382,10 @@ static int dwc2_driver_probe(struct platform_device *dev)
> if (!dev->dev.dma_mask)
> dev->dev.dma_mask = &dev->dev.coherent_dma_mask;
> retval = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(32));
> - if (retval)
> + if (retval) {
> + dev_err(&dev->dev, "can't set coherent DMA mask: %d\n", retval);
> return retval;
> + }
>
> res = platform_get_resource(dev, IORESOURCE_MEM, 0);
> hsotg->regs = devm_ioremap_resource(&dev->dev, res);
> --
> 2.7.4
>
ping ...
^ permalink raw reply [flat|nested] 6+ messages in thread
* usb: dwc2: Print error if unable to set DMA coherent mask
@ 2018-03-08 17:31 ` Stefan Wahren
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Wahren @ 2018-03-08 17:31 UTC (permalink / raw)
To: John Youn, Felipe Balbi
Cc: Gevorg Sahakyan, Greg Kroah-Hartman, Minas Harutyunyan,
linux-usb, linux-kernel
> Stefan Wahren <stefan.wahren@i2se.com> hat am 12. Februar 2018 um 21:20 geschrieben:
>
>
> We better print an error in case probing of dwc2 fails on
> setting the DMA coherent mask.
>
> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
> ---
> drivers/usb/dwc2/platform.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
> index 4703478..4ddbdbd 100644
> --- a/drivers/usb/dwc2/platform.c
> +++ b/drivers/usb/dwc2/platform.c
> @@ -382,8 +382,10 @@ static int dwc2_driver_probe(struct platform_device *dev)
> if (!dev->dev.dma_mask)
> dev->dev.dma_mask = &dev->dev.coherent_dma_mask;
> retval = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(32));
> - if (retval)
> + if (retval) {
> + dev_err(&dev->dev, "can't set coherent DMA mask: %d\n", retval);
> return retval;
> + }
>
> res = platform_get_resource(dev, IORESOURCE_MEM, 0);
> hsotg->regs = devm_ioremap_resource(&dev->dev, res);
> --
> 2.7.4
>
ping ...
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] usb: dwc2: Print error if unable to set DMA coherent mask
@ 2018-03-09 9:10 ` Felipe Balbi
0 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2018-03-09 9:10 UTC (permalink / raw)
To: Stefan Wahren, John Youn
Cc: Gevorg Sahakyan, Greg Kroah-Hartman, Minas Harutyunyan,
linux-usb, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1284 bytes --]
Stefan Wahren <stefan.wahren@i2se.com> writes:
>> Stefan Wahren <stefan.wahren@i2se.com> hat am 12. Februar 2018 um 21:20 geschrieben:
>>
>>
>> We better print an error in case probing of dwc2 fails on
>> setting the DMA coherent mask.
>>
>> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
>> ---
>> drivers/usb/dwc2/platform.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
>> index 4703478..4ddbdbd 100644
>> --- a/drivers/usb/dwc2/platform.c
>> +++ b/drivers/usb/dwc2/platform.c
>> @@ -382,8 +382,10 @@ static int dwc2_driver_probe(struct platform_device *dev)
>> if (!dev->dev.dma_mask)
>> dev->dev.dma_mask = &dev->dev.coherent_dma_mask;
>> retval = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(32));
>> - if (retval)
>> + if (retval) {
>> + dev_err(&dev->dev, "can't set coherent DMA mask: %d\n", retval);
>> return retval;
>> + }
>>
>> res = platform_get_resource(dev, IORESOURCE_MEM, 0);
>> hsotg->regs = devm_ioremap_resource(&dev->dev, res);
>> --
>> 2.7.4
>>
>
> ping ...
https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git/commit/?h=testing/next&id=57b1d49d4b9c6cde9fbe95c1a211b6bbea61c6fc
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* usb: dwc2: Print error if unable to set DMA coherent mask
@ 2018-03-09 9:10 ` Felipe Balbi
0 siblings, 0 replies; 6+ messages in thread
From: Felipe Balbi @ 2018-03-09 9:10 UTC (permalink / raw)
To: Stefan Wahren, John Youn
Cc: Gevorg Sahakyan, Greg Kroah-Hartman, Minas Harutyunyan,
linux-usb, linux-kernel
Stefan Wahren <stefan.wahren@i2se.com> writes:
>> Stefan Wahren <stefan.wahren@i2se.com> hat am 12. Februar 2018 um 21:20 geschrieben:
>>
>>
>> We better print an error in case probing of dwc2 fails on
>> setting the DMA coherent mask.
>>
>> Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
>> ---
>> drivers/usb/dwc2/platform.c | 4 +++-
>> 1 file changed, 3 insertions(+), 1 deletion(-)
>>
>> diff --git a/drivers/usb/dwc2/platform.c b/drivers/usb/dwc2/platform.c
>> index 4703478..4ddbdbd 100644
>> --- a/drivers/usb/dwc2/platform.c
>> +++ b/drivers/usb/dwc2/platform.c
>> @@ -382,8 +382,10 @@ static int dwc2_driver_probe(struct platform_device *dev)
>> if (!dev->dev.dma_mask)
>> dev->dev.dma_mask = &dev->dev.coherent_dma_mask;
>> retval = dma_set_coherent_mask(&dev->dev, DMA_BIT_MASK(32));
>> - if (retval)
>> + if (retval) {
>> + dev_err(&dev->dev, "can't set coherent DMA mask: %d\n", retval);
>> return retval;
>> + }
>>
>> res = platform_get_resource(dev, IORESOURCE_MEM, 0);
>> hsotg->regs = devm_ioremap_resource(&dev->dev, res);
>> --
>> 2.7.4
>>
>
> ping ...
https://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git/commit/?h=testing/next&id=57b1d49d4b9c6cde9fbe95c1a211b6bbea61c6fc
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2018-03-09 9:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-12 20:20 [PATCH] usb: dwc2: Print error if unable to set DMA coherent mask Stefan Wahren
2018-02-12 20:20 ` Stefan Wahren
2018-03-08 17:31 ` [PATCH] " Stefan Wahren
2018-03-08 17:31 ` Stefan Wahren
2018-03-09 9:10 ` [PATCH] " Felipe Balbi
2018-03-09 9:10 ` Felipe Balbi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.