public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dmaengine: idma64: print error message on platform_get_irq failure
@ 2017-06-30  7:34 Gustavo A. R. Silva
  2017-06-30  8:09 ` Vladimir Zapolskiy
  0 siblings, 1 reply; 2+ messages in thread
From: Gustavo A. R. Silva @ 2017-06-30  7:34 UTC (permalink / raw)
  To: Vinod Koul, Dan Williams; +Cc: dmaengine, linux-kernel, Gustavo A. R. Silva

Print error message on platform_get_irq failure before return.

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
---
 drivers/dma/idma64.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/dma/idma64.c b/drivers/dma/idma64.c
index 1953e57..08ade66 100644
--- a/drivers/dma/idma64.c
+++ b/drivers/dma/idma64.c
@@ -637,8 +637,10 @@ static int idma64_platform_probe(struct platform_device *pdev)
 		return -ENOMEM;
 
 	chip->irq = platform_get_irq(pdev, 0);
-	if (chip->irq < 0)
+	if (chip->irq < 0) {
+		dev_err(dev, "failed to get IRQ: %d\n", chip->irq);
 		return chip->irq;
+	}
 
 	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	chip->regs = devm_ioremap_resource(dev, mem);
-- 
2.5.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] dmaengine: idma64: print error message on platform_get_irq failure
  2017-06-30  7:34 [PATCH] dmaengine: idma64: print error message on platform_get_irq failure Gustavo A. R. Silva
@ 2017-06-30  8:09 ` Vladimir Zapolskiy
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir Zapolskiy @ 2017-06-30  8:09 UTC (permalink / raw)
  To: Gustavo A. R. Silva, Vinod Koul, Dan Williams; +Cc: dmaengine, linux-kernel

Hello Gustavo,

On 06/30/2017 10:34 AM, Gustavo A. R. Silva wrote:
> Print error message on platform_get_irq failure before return.
> 
> Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
> ---
>  drivers/dma/idma64.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/dma/idma64.c b/drivers/dma/idma64.c
> index 1953e57..08ade66 100644
> --- a/drivers/dma/idma64.c
> +++ b/drivers/dma/idma64.c
> @@ -637,8 +637,10 @@ static int idma64_platform_probe(struct platform_device *pdev)
>  		return -ENOMEM;
>  
>  	chip->irq = platform_get_irq(pdev, 0);
> -	if (chip->irq < 0)
> +	if (chip->irq < 0) {
> +		dev_err(dev, "failed to get IRQ: %d\n", chip->irq);
>  		return chip->irq;
> +	}
>  
>  	mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>  	chip->regs = devm_ioremap_resource(dev, mem);
> 

you do it wrong, please *immedately* stop sending this kind of patches
and revoke all the ones which you have sent so far, one revoke message
for each sent patch is expected.

1) there must be no error level message printed out, if the returned
   by platform_get_irq() value is -EPROBE_DEFER, this notice makes
   all your patches *invalid*,

2) if you wish it, add the error message directly into platform_get_irq(),
   then *remove* any similar error messages from the individual drivers.

--
With best wishes,
Vladimir

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-30  8:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-30  7:34 [PATCH] dmaengine: idma64: print error message on platform_get_irq failure Gustavo A. R. Silva
2017-06-30  8:09 ` Vladimir Zapolskiy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox