Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751931AbdF3IJv (ORCPT ); Fri, 30 Jun 2017 04:09:51 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:37652 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751545AbdF3IJt (ORCPT ); Fri, 30 Jun 2017 04:09:49 -0400 Subject: Re: [PATCH] dmaengine: idma64: print error message on platform_get_irq failure To: "Gustavo A. R. Silva" , Vinod Koul , Dan Williams References: <20170630073403.GA24756@embeddedgus> CC: , From: Vladimir Zapolskiy Message-ID: <23703e5b-e723-bac1-e973-bc29ccb241eb@mentor.com> Date: Fri, 30 Jun 2017 11:09:42 +0300 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.2.0 MIME-Version: 1.0 In-Reply-To: <20170630073403.GA24756@embeddedgus> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [137.202.0.87] X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1366 Lines: 42 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 > --- > 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