Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4446881pxb; Mon, 27 Sep 2021 17:56:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNXF6hiouRTYzt4aXc8OeK+AmSaCDfAlit+gcwFk+oDCMqkQucTttM/peEmzCwyFCEW5pD X-Received: by 2002:a17:902:ce83:b0:13b:67d5:2c4e with SMTP id f3-20020a170902ce8300b0013b67d52c4emr2458858plg.45.1632790594148; Mon, 27 Sep 2021 17:56:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632790594; cv=none; d=google.com; s=arc-20160816; b=pZr8j8J5haHEGVAoyvCJrPhP5zCrvo36EVTyOQsHtGp9XIhrGIrGu8mMhQYy+x/liB 2Xr70rv+3hYZu6UU1haOeptv2sC3PJYuSv8mafX2EZG0rO4iGum7mVzSzQfN8Z9MEj/z rsrYWQzwxczLhgEau64OPB1sAajN0VBTWfoy8v5V0lD4phGkW+cDDmSPzVZO+gHEZiCj g36HNlvvwcQqkhEzMTn1EWUkAQWrstx+a5FjdZHqJ4OI7adHKvSyQP2EnMho0NAg4t1Q NZwdwsqCA5ed86j3Qi8p4R36xm+D8sqdIue6tAPvRwH8Xq/8yHEDrI3TyUoooqfawPcJ L2Cw== 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; bh=n2sXzJg2SsfZ8S0g5MG0HaM4hrj/bpFvf9vFQzLvc0c=; b=EijhEUn8ku5f+Q4VIHup0yoqXJi8jpb5cRBzW03vLDHrMTYnXI5MRvebEX9aVdJr+1 QDdDAEqF8JBOTwizpVqcavJ/lFBBb5V5fAnpGm5EO503xCD0gz/onHXGKRQFHDxX1vVA tdUBw8hLyq9uNvMF8DDA5PXixkUkzGp2bgtps93s7ltDqkm5RoFkAVDC+TEMiz63Yl6F g2k935DqaptJKEVpjjZ3WpSb995g75BV6bhe3/EWkqUlCyqQRI2zwaxJ8UFx8n6jo/bY HN52Hw8ebQOcBODApA6PHn+rYDzWePKsXUY3gH/e89M49j5H7slqadJbGglsbDw4wmlh Ss/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d4si22317147pgc.161.2021.09.27.17.56.20; Mon, 27 Sep 2021 17:56:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238373AbhI1A4c (ORCPT + 99 others); Mon, 27 Sep 2021 20:56:32 -0400 Received: from mail-wr1-f51.google.com ([209.85.221.51]:41943 "EHLO mail-wr1-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229942AbhI1A4b (ORCPT ); Mon, 27 Sep 2021 20:56:31 -0400 Received: by mail-wr1-f51.google.com with SMTP id w29so54849231wra.8; Mon, 27 Sep 2021 17:54:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=n2sXzJg2SsfZ8S0g5MG0HaM4hrj/bpFvf9vFQzLvc0c=; b=l86AfC1ibMKeztbexCfDC77rPbyK2bLAvHzDXr+LGcAfQ6sqrC+gT2zoMCVoF/5WNW 0iO016vOQV9UBR9sopUKldg6W6Qx8ThJ1s00aj3s8m1NdfZsKhvDbDSboOC/yoXIxXRH LO1fPg7gNzU2Elnx96CRqCZzeJstKnblsixHSxTgZPfxLHqz9Eec6pJNMqHTaDPv0+sn LiJWpv5KtOqI4S4x9grapbl47/oPNwQsFgPXjBTTdytT8rgNQM8NXey3RuOdEQj8Lklx tQl3TKVlIQDaAZC1OP2LG+WkuwQJCdabJyrIl+LwtXDOKWcEVdRNsguOb/bnLSOt9U6n Otag== X-Gm-Message-State: AOAM530bGkmbRPCUjVWKm9+cFaTbQ6zYZ1ORXBZuyHJQ9MCp8eJngDJZ sQlZjiukZ1bxpJnTZlgdTRE0RHweLeSSY3s2 X-Received: by 2002:a05:6000:46:: with SMTP id k6mr3227667wrx.104.1632790491627; Mon, 27 Sep 2021 17:54:51 -0700 (PDT) Received: from rocinante ([95.155.85.46]) by smtp.gmail.com with ESMTPSA id l25sm988037wmi.29.2021.09.27.17.54.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 17:54:50 -0700 (PDT) Date: Tue, 28 Sep 2021 02:54:49 +0200 From: Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= To: Christophe JAILLET Cc: kishon@ti.com, tjoseph@cadence.com, lorenzo.pieralisi@arm.com, robh@kernel.org, bhelgaas@google.com, linux-omap@vger.kernel.org, linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH] PCI: j721e: Fix an error handling path in 'j721e_pcie_probe()' Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Christophe, Thank you for sending the patch over! Just a tiny nit-pick: there is no need to surround function names in single quotes in the subject and in the commit message. > If an error occurs after a successful 'cdns_pcie_init_phy()' call, it must > be undone by a 'cdns_pcie_disable_phy()' call, as already done above and > below. Here, in the above sentence, you could simply mention that this is needed for the device to be correctly powered down should there be an error, and reference to the "above" and "below" code. > Update the 'goto' to branch at the correct place of the error handling > path. > > Fixes: 49e0efdce791 ("PCI: j721e: Add support to provide refclk to PCIe connector") > Signed-off-by: Christophe JAILLET > --- > drivers/pci/controller/cadence/pci-j721e.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/pci/controller/cadence/pci-j721e.c b/drivers/pci/controller/cadence/pci-j721e.c > index 35e61048e133..8933db6ab1af 100644 > --- a/drivers/pci/controller/cadence/pci-j721e.c > +++ b/drivers/pci/controller/cadence/pci-j721e.c > @@ -424,7 +424,7 @@ static int j721e_pcie_probe(struct platform_device *pdev) > ret = clk_prepare_enable(clk); > if (ret) { > dev_err(dev, "failed to enable pcie_refclk\n"); > - goto err_get_sync; > + goto err_pcie_setup; > } > pcie->refclk = clk; Thank you! Reviewed-by: Krzysztof WilczyƄski Krzysztof