Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp264063ybx; Wed, 30 Oct 2019 14:48:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzyJHaHoHiro7MyDOICL75F4vJ18CliD0JIsEDpK61JQn5MKTtzxu0orGIO02LKCKAloSnL X-Received: by 2002:a17:906:1cce:: with SMTP id i14mr469458ejh.296.1572472088798; Wed, 30 Oct 2019 14:48:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572472088; cv=none; d=google.com; s=arc-20160816; b=yrfKTPRxa9aYwx3VmDj2trpV2Eoeg/P8o9M5IdlENkQVbZfEOpI03NOxPSQleo446V SQ7UBJx5cTGxyWyqDUT88jf24AJBaybSCsmjMGJiBStkGxeYUXxw2BXH16+dxUYYOTvr BBrhxP0aQ4I7RZRbEbFvzZpe9akIK8cULj8XbUNuWTodtgeEAziTcRCcBMkLt/CdCWMj VdjmscnLv/MVOSsZGjXnTIJjR44nCgK8xG0qj+fROFpD6koZPO8eguxYTF8BkhDXhURi jRMTg7sCYvGXrWHe27lAiMS1p2xrfPRA8LxHp8b8w+4FDcsjvoMmhP1vZW39ZPJsRiVx 9pcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=RtVmaNerQy5wr4C9znRa0F5tRCQVe3PZ6u/+qfxjAGA=; b=0eV5dJciTqdJvVhlWvZGeY2DzgRKCEenjwZGHpTBObDqgEkXuFTe8HtnF1HuxxNgQy /FGXjhUU1Zn7uv7XJQj+RMX/aQkT6NaNWCea+raDpuCmY24DO7f4veJwK2nTEIm/AnUH 0pZSJj3m8hUCjwtjUUICG8FIvv3QwbEdPsqncuWz/XciO62Q2uNtLFiLBYFJ7HPPq/tY yWBkMsuFYL+nj8bQcp7kjZK/R3bf0LqaaWyG8S23DGxeqetlM7+qTu7bUyNmpiKFtRZ2 TBsUNsVVTB95dCghyCLRuUEELP76FGsmeb0aoM4JLY7wo/RtQmWKabfe4uT5RN3mVAmG kNQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jaRpvqIM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b47si2527809edb.286.2019.10.30.14.47.44; Wed, 30 Oct 2019 14:48:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=jaRpvqIM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727278AbfJ3Vq0 (ORCPT + 99 others); Wed, 30 Oct 2019 17:46:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:56688 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726171AbfJ3VqZ (ORCPT ); Wed, 30 Oct 2019 17:46:25 -0400 Received: from localhost (unknown [69.71.4.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 77F5F20862; Wed, 30 Oct 2019 21:46:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572471985; bh=tul9G/l7oEq7DjuuWrHdlkxE9hMNRejXgxOVts2mk8A=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=jaRpvqIMi991TIcZXEQyzF7YRHL9iXJUIgR3sM3Wo93AqZxd5xC3r55CtQFqbpcO4 ljRtlF7QFdO4ofQjimn9JySEf22M9jxbjlwDUmLusyGhPOCsA5Aoj9/y6gKesmeVlI tHdiVnTLOqREjxEDBMut5RR4croVQFCamjKmm0r4= Date: Wed, 30 Oct 2019 16:46:21 -0500 From: Bjorn Helgaas To: Saurav Girepunje Cc: jingoohan1@gmail.com, lorenzo.pieralisi@arm.com, andrew.murray@arm.com, kgene@kernel.org, krzk@kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, saurav.girepunje@hotmail.com Subject: Re: [PATCH] pci: controller: dwc: Remove dev_err use after platform_get_irq Message-ID: <20191030214621.GA256263@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191028202144.GA29158@saurav> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Please run "git log --oneline drivers/pci/controller/dwc/pci-exynos.c" and make your subject line match, e.g., PCI: exynos: Remove dev_err() usage after platform_get_irq() The body of that was copied from similar commits like: fb5a35dbee8d pwm: Remove dev_err() usage after platform_get_irq() 9a7957d0c955 mmc: Remove dev_err() usage after platform_get_irq() 1df217868178 tty: Remove dev_err() usage after platform_get_irq() It's nice when similar commits have similar subject lines. In fact, this whole thing has been approached before: https://lore.kernel.org/lkml/20190730181557.90391-32-swboyd@chromium.org/ That patch would have fixed many similar issues in PCI, but I don't know what happened to it. Would you mind resurrecting that and fixing the minor issues so we can do everything in PCI at once? On Tue, Oct 29, 2019 at 01:51:44AM +0530, Saurav Girepunje wrote: > Don't need dev_err() messages when platform_get_irq() fails now that > platform_get_irq() prints an error message itself when something goes > wrong. > > Signed-off-by: Saurav Girepunje > --- > drivers/pci/controller/dwc/pci-exynos.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/pci/controller/dwc/pci-exynos.c b/drivers/pci/controller/dwc/pci-exynos.c > index 14a6ba4067fb..2293b346d96a 100644 > --- a/drivers/pci/controller/dwc/pci-exynos.c > +++ b/drivers/pci/controller/dwc/pci-exynos.c > @@ -403,7 +403,6 @@ static int __init exynos_add_pcie_port(struct exynos_pcie *ep, > > pp->irq = platform_get_irq(pdev, 1); > if (pp->irq < 0) { > - dev_err(dev, "failed to get irq\n"); > return pp->irq; > } > ret = devm_request_irq(dev, pp->irq, exynos_pcie_irq_handler, > @@ -416,7 +415,6 @@ static int __init exynos_add_pcie_port(struct exynos_pcie *ep, > if (IS_ENABLED(CONFIG_PCI_MSI)) { > pp->msi_irq = platform_get_irq(pdev, 0); > if (pp->msi_irq < 0) { > - dev_err(dev, "failed to get msi irq\n"); > return pp->msi_irq; > } > } > -- > 2.20.1 >