From patchwork Thu Sep 26 10:43:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cristian Ciocaltea X-Patchwork-Id: 13813238 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E0CA1CCFA13 for ; Thu, 26 Sep 2024 10:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To:In-Reply-To:References :Message-Id:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=LDd82lYZMBzEpcTJryU/hdvz59ihseHW5vNn+9J8J7s=; b=SEDXjuJZO6CaCZ6PTDmAB7ubUX dbpiuzdQ3cymPqbGbM+bZJ3hCln2nuasRyYqZHMdZsPjdxQObT3TCjVu9cW2y81siiWMgwDcQzQsn 6QF2azRd0MuMRJ6NbUxXlQyOuHbnXGlT8Y5WX4GE3yhDnG3mzDUyxJdGmjquF7Ml+Wd1ygHZMBp7h 9DzJTCQcFrQItSdB+UVRxLe4WJLxVWcifLAoWrSMn4jEETSrSYX9LHT/NLsgBx0SLRv/EeyXepAZg 5pbYq3MTcOnbZgSJ1ojhJIeiXUWYhEy0tuwTDcPe4pR0M9k+czMjuIf5eF5WX47zIIDigkep/VEzw 4KsLmnDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stm2G-000000087ZB-36jw; Thu, 26 Sep 2024 10:47:48 +0000 Received: from bali.collaboradmins.com ([148.251.105.195]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stlyW-000000086Ws-1Wwi; Thu, 26 Sep 2024 10:43:59 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1727347434; bh=xbWr63GUqIkW4QEHfjfUDRFC0AedDaU/7IV6PGpwPYE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=frPqTZgGgeUYSij564lhm5k7kqEp1TJxP+KkKMuTXDNfG2ey2hIJvaD/RXCo/S6Uu BhqzVIYeTyucwO7V2FAv6U0iWlqQCSEZuTIo73ADVwHiQnyUWwJMgtZvXltavauC95 z7+0a/5kTH+TmCKiFoY51QD9/47ue1SVlDB9yeRKmGXMZhGpaatqMQjhRZWDLTRHZW PLBtJf5Y77OfgSq9Xl6pxh3OCm9GNp4cVGCxMpxMJH/jFGP5VY5sATqlcWWzubKOV4 r7PwVYRyr/nMFmwPlzYgR3IbiU7ZwXJmmN1gnrxF9jzs7lsW1kH8TdPNeLa39VXq9g sIfTnbPfsAgjg== Received: from localhost (unknown [IPv6:2a01:e0a:d1a:1250:792b:136f:2a18:fd70]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: cristicc) by bali.collaboradmins.com (Postfix) with ESMTPSA id D15BB17E121B; Thu, 26 Sep 2024 12:43:54 +0200 (CEST) From: Cristian Ciocaltea Date: Thu, 26 Sep 2024 13:43:22 +0300 Subject: [PATCH v2 3/4] PCI: exynos: Switch to devm_clk_bulk_get_all_enabled() MIME-Version: 1.0 Message-Id: <20240926-clk_bulk_ena_fix-v2-3-9c767510fbb5@collabora.com> References: <20240926-clk_bulk_ena_fix-v2-0-9c767510fbb5@collabora.com> In-Reply-To: <20240926-clk_bulk_ena_fix-v2-0-9c767510fbb5@collabora.com> To: Michael Turquette , Stephen Boyd , Russell King , Matthias Brugger , AngeloGioacchino Del Regno , Jingoo Han , Lorenzo Pieralisi , =?utf-8?q?Krzysztof_Wilczy?= =?utf-8?q?=C5=84ski?= , Manivannan Sadhasivam , Rob Herring , Bjorn Helgaas , Krzysztof Kozlowski , Alim Akhtar Cc: kernel@collabora.com, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-pci@vger.kernel.org, linux-samsung-soc@vger.kernel.org X-Mailer: b4 0.14.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240926_034356_732404_0CB8128A X-CRM114-Status: GOOD ( 13.28 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The helper devm_clk_bulk_get_all_enable() missed to return the number of clocks stored in the clk_bulk_data table referenced by the clks argument and, therefore, will be dropped. Use the newly introduced devm_clk_bulk_get_all_enabled() variant instead, which is consistent with devm_clk_bulk_get_all() in terms of the returned value: > 0 if one or more clocks have been stored = 0 if there are no clocks < 0 if an error occurred Reviewed-by: Manivannan Sadhasivam Signed-off-by: Cristian Ciocaltea --- drivers/pci/controller/dwc/pci-exynos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pci/controller/dwc/pci-exynos.c b/drivers/pci/controller/dwc/pci-exynos.c index fa45da28a218..056cebd4e0ba 100644 --- a/drivers/pci/controller/dwc/pci-exynos.c +++ b/drivers/pci/controller/dwc/pci-exynos.c @@ -300,7 +300,7 @@ static int exynos_pcie_probe(struct platform_device *pdev) if (IS_ERR(ep->elbi_base)) return PTR_ERR(ep->elbi_base); - ret = devm_clk_bulk_get_all_enable(dev, &ep->clks); + ret = devm_clk_bulk_get_all_enabled(dev, &ep->clks); if (ret < 0) return ret;