Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5339522rwl; Tue, 11 Apr 2023 04:09:22 -0700 (PDT) X-Google-Smtp-Source: AKy350acOY+9XCkAgQPGid4fF3W49MdhPNqSXk7dXSFf4enGZF/OIUGAsrJhLLxYRrPof9mqsfai X-Received: by 2002:a62:1757:0:b0:634:657e:546e with SMTP id 84-20020a621757000000b00634657e546emr10159604pfx.5.1681211362474; Tue, 11 Apr 2023 04:09:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681211362; cv=none; d=google.com; s=arc-20160816; b=yoJmpu9Xa9PvM0kOtMi9W/2xGyKyfO84y5y/QYabuc13xt0DxsJgthG1Ck0Gjd6JB2 j4MPePZNLTe7O5fMeRL3KX5azTu/bbMcQFJ3rp7NBVgXLLM5HSW/eRk2/z1VM3RTxtVO FZIvdzZ4q83raoNAJzpUTDe+ymORQXlrsgbV1rrnXO73eUuui+QKh0AOMuAOjmgNSnhh uGl95oH5wbhjFkEBRohYU8X8L8NEt+K4e5zsOSyUeJ5pQoI23cjGoka5zKZUZtwHy7nC h2p4u7vwhUVyfnqJK5uwgJhIwk04V5UPeh6HxEwUf45tY/3P8gw+3sKMyIZodNKkZwWz cdNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jo6fILbA0nBPbnJ67sQdpRNR+O+VicyEIM4g1muSLtA=; b=PUDvkIF4d7XJVnzp8ciPDbnJvXLwLnIaq1DyXWVmRyNqhqmjZfHFZvRY3xvNwIxJHf AE2be/OSJnaKa0leHBqqnvyIelqvew0pfF+22psAkizkSEFzpS2Bq9cR9h5iVzavjj0t 2fXhTy8msWPwjlXu6d4uu3THIHE5ouEoYcbwqryRy8V9/6gVsz2OG0c19G5GZ3CtiIU/ /TMCAP68S+U373xCwK/KkczKxc8hijEA4Mp7BZ5MKfpwPITSB4Hw/JXkEO8MDHEUeoOr gRkGXVqVNL0DXd4yWkp7q2JcslnjujmyRdvZLhtFf4fvvWMgc1dcEteJ0PVNZLSPQVMb /mow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N3YlAx+R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b00513a2e4d889si13433669pgk.475.2023.04.11.04.09.11; Tue, 11 Apr 2023 04:09:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N3YlAx+R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230115AbjDKLHZ (ORCPT + 99 others); Tue, 11 Apr 2023 07:07:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230079AbjDKLHR (ORCPT ); Tue, 11 Apr 2023 07:07:17 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE4003AAB for ; Tue, 11 Apr 2023 04:06:52 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id c3so8560637pjg.1 for ; Tue, 11 Apr 2023 04:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681211211; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=jo6fILbA0nBPbnJ67sQdpRNR+O+VicyEIM4g1muSLtA=; b=N3YlAx+R+ynKun1E9btqLANZMdHSQQGT4PcRmgXCMxyebjSmYY7jXTzqsw9FQeigQx EGVNibo/FwKYLvlQHjK5L2x2DV7Se25l1M2FN7mV4G4v7rhfVRiARs5nm8O2Xm0TbqEW lCKHQ1C6Z8M68aNVsUgh43iPN518tEAuSVVVQ4RjI9R2DgesLtIOIrfaEu4WcgcvBFxJ gDoG09TH1u5w2UoydleeK9VD7UkpCoNRYkQAUavQAQXrBXKeIgELO/Br6mELHxnslaGk Xbzi2nwcO3rJS8l76OqBCpy55NibJ+kt1LIszbYOceLAzKKHi6ZJ9w4daGRzJbkUciug isSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681211211; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jo6fILbA0nBPbnJ67sQdpRNR+O+VicyEIM4g1muSLtA=; b=QiTFAYdPc0jkaIIWGaBKibn22zsKzjX4wbcep2nrRPlLOcGBHcNgthpEvz7p07KaMf ja0yDBkGMhGrsrSgA2vIXO38P+0jKBmWiGW+++eqo/d8XvzNgHG9aFr8pA2Jl077H2yW 8RrfFMKSe9T7L+i8AS+3O/xeu7LBc5ljL7uvpHpkGJ8VR+qxselio40W4ZAlcwcs/E9X 9LO5sxVcxLzxZgzSf0qkD2L27o1jl2+odQOVFUPMoJGoRU6JsdWMp97lJLs6XTbFnB7T /HPzifVL/h0hFxiQEOFYuM4A5sn0btmw7R0nWGdSGHi1y19YuxkZ1NkwkXrPzT3vEqTp unOA== X-Gm-Message-State: AAQBX9cmWCwYzmXemVNzqZdg9us0LesKYm4dTIcrC9uVbWowMRlk1UgP 5w78JPIES3ohjDsDfOh92n4d X-Received: by 2002:a05:6a20:2a22:b0:d9:b0b5:fdaf with SMTP id e34-20020a056a202a2200b000d9b0b5fdafmr14340899pzh.48.1681211211536; Tue, 11 Apr 2023 04:06:51 -0700 (PDT) Received: from thinkpad ([117.216.120.128]) by smtp.gmail.com with ESMTPSA id a22-20020a62e216000000b00627ee6dcb84sm9531260pfi.203.2023.04.11.04.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Apr 2023 04:06:51 -0700 (PDT) Date: Tue, 11 Apr 2023 16:36:43 +0530 From: Manivannan Sadhasivam To: Serge Semin Cc: Bjorn Helgaas , Lorenzo Pieralisi , Cai Huoqing , Jingoo Han , Gustavo Pimentel , Vinod Koul , Yoshihiro Shimoda , Rob Herring , Lorenzo Pieralisi , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Serge Semin , Alexey Malahov , Pavel Parkhomenko , linux-pci@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RESEND v3 04/10] PCI: bt1: Fix printing false error message Message-ID: <20230411110643.GF5333@thinkpad> References: <20230411033928.30397-1-Sergey.Semin@baikalelectronics.ru> <20230411033928.30397-5-Sergey.Semin@baikalelectronics.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230411033928.30397-5-Sergey.Semin@baikalelectronics.ru> X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 11, 2023 at 06:39:22AM +0300, Serge Semin wrote: > The dev_err_probe() method is supposed to be invoked only if any error is > happened. It was definitely wrong to call it unconditionally. Due to that > the DWC PCIe host initialization error-message is printed all the time the > Baikal-T1 PCIe controller is probed even if no error actually happened. > > Fixes: ba6ed462dcf4 ("PCI: dwc: Add Baikal-T1 PCIe controller support") > Signed-off-by: Serge Semin Reviewed-by: Manivannan Sadhasivam - Mani > --- > drivers/pci/controller/dwc/pcie-bt1.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/dwc/pcie-bt1.c b/drivers/pci/controller/dwc/pcie-bt1.c > index e36a20bf82cf..6557141873ad 100644 > --- a/drivers/pci/controller/dwc/pcie-bt1.c > +++ b/drivers/pci/controller/dwc/pcie-bt1.c > @@ -597,8 +597,10 @@ static int bt1_pcie_add_port(struct bt1_pcie *btpci) > dw_pcie_cap_set(&btpci->dw, REQ_RES); > > ret = dw_pcie_host_init(&btpci->dw.pp); > + if (ret) > + dev_err_probe(dev, ret, "Failed to initialize DWC PCIe host\n"); > > - return dev_err_probe(dev, ret, "Failed to initialize DWC PCIe host\n"); > + return ret; > } > > static void bt1_pcie_del_port(struct bt1_pcie *btpci) > -- > 2.40.0 > > -- மணிவண்ணன் சதாசிவம்