From patchwork Tue Feb 14 14:37:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 57054 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3011665wrn; Tue, 14 Feb 2023 06:39:08 -0800 (PST) X-Google-Smtp-Source: AK7set/3WFqJNLu8zIQmoJz4C7JqnBWFul4UK3aMpp9Gw49JnHCZ4boV3qnyI60dQ3WvBTKcT4z5 X-Received: by 2002:a62:1647:0:b0:5a8:b4a5:bf98 with SMTP id 68-20020a621647000000b005a8b4a5bf98mr2283616pfw.3.1676385548333; Tue, 14 Feb 2023 06:39:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676385548; cv=none; d=google.com; s=arc-20160816; b=MfdFxSCzDtgXDzzdvmVdcnoHYkG7Iam7GfDZf+HeuwQgflF7RHchHeaMgYLrqWvQ9+ Gfaa1HNkbvpt3TrFSis2+FP+BdtPsCdCzwyawCdWReKfMA4hJVtZzOGmGTTAOuNA5lTT 7lDK18DwoqdX9zLEUB7dYkTACWq8tf26r2u3f/XpKaP2000W+QvWafL54uSO5mzIvdxf G7RYaEji7B4BG6Em9y6bT+3OY8Xd3N8HK7L5L1YGKrz0oFk+pdAMEaC+VrCAjd43a3f4 ObZjDm6lcm9EL+9nBPKHmw56noEWeoicZ54UA3MVbb2Yg/4R7rxM/zppak+VHqUlHNSz 4Ptw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0uFe9M4kMsn6GMCEHF0NJYhKab6cG07IqakVpkwLnQk=; b=MHjyb5n9njPRYx3lnaolsj2E2g1lZZYLCT/eQCOvgTw54Su4Ud4xraaEW9Vbxn+JbX qaaNBTFoa8BhAruXIro89l1TeGwiW3pvY2cXPpJUjhiSL4U1ShokCt8jfgnxfQ49f6WO guNjcyFw/eXS1CAkm1YzOSI3XOsd6h7nouZHrljeu5B7mutyb3+4/hJQ7BAEYwymtc1/ pgXNUNKwYk+F5nS0iyqoQEtQQs9aHuXBj8XLr4K4mHUXfYOWPedmTPvOC9tihqZkJDMh 8uW742cYk8zmITRIxOle5wg37LYmSFI7cOPxlYP9a3GABBGUsdaa6YJ4+igJbMZZjqnZ Z48w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Ky1AnQ0S; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e5-20020a056a0000c500b00574b46d3b26si2311660pfj.334.2023.02.14.06.38.55; Tue, 14 Feb 2023 06:39:08 -0800 (PST) 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=Ky1AnQ0S; 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 S233441AbjBNOiZ (ORCPT + 99 others); Tue, 14 Feb 2023 09:38:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233140AbjBNOiO (ORCPT ); Tue, 14 Feb 2023 09:38:14 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 353522A6E4 for ; Tue, 14 Feb 2023 06:38:11 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id u21so17726519edv.3 for ; Tue, 14 Feb 2023 06:38:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=0uFe9M4kMsn6GMCEHF0NJYhKab6cG07IqakVpkwLnQk=; b=Ky1AnQ0Su3H7eZkw1IYQgEuEk+ur0WLa84qyoDIo43MqM0raRl3k4PUyr5qLdzNNXU M10Duc8jX+ghK36YwMXXARCjBvN7BkdUsLHnQAvCZOi8LurTxKksEcde1rBWpO5jAJ/b UuRzUr6IYGobscaHvHZd6z0gFFVD+rufOXBBWvGsT4vs7F79Q987cbm4bgdyWS7L4ptj VmePqMvYRItjJVTW6tayPjvcu/Ta+RVeupX0JxTEOi6dAV9weeFKg0o03Sfzm4HtvRiV LTaol+ag59KgPpCxOFZJQr8M5FoSgDU8OY1pImBUK3URxgHSWCv/xKR9i8IGCj5n7OXr syLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0uFe9M4kMsn6GMCEHF0NJYhKab6cG07IqakVpkwLnQk=; b=A+r5EkEaylY8vfG7DHaGmxVXYEqedKkC/4JEMgNULB2nOhJzehzydiNQM+bxz6tLDc n3Pkl09t3yB5oXgR1l9F7JL1GCohV224EUvT/xeACdTaGYGvlgjq+TR/ZgHFTJd1lo1i x2cadkCkykmVtNBRdKMFz4W/0XSaFsLZETtP2Zd9Ji59F+Riww7AiNmKQDPY0R/Pu3WC XpIgmLTIIFFxqJHpRRTP8zqX65vXSnlKeMD9I3jURNlRNHfWFHIwjnpLKiDirxVxyny/ Hj5ly/yZJ2MYvmgvoA3Gj6OBj2KqJ6Di3CGGAcCeCueDp6545tEGbfH84pcv104qyM1O Gn5Q== X-Gm-Message-State: AO0yUKUU9hMe1ZUuHv2DnIPfDFKAszrUWupQ+S7UYIcl6TNeFlakOnA6 GQsr13QFBJLGbMkYLgtQ0wMiTQ== X-Received: by 2002:a50:ab54:0:b0:4ac:bf55:7d61 with SMTP id t20-20020a50ab54000000b004acbf557d61mr2763935edc.9.1676385490545; Tue, 14 Feb 2023 06:38:10 -0800 (PST) Received: from localhost.localdomain (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id eg21-20020a056402289500b004acb6189693sm5378052edb.83.2023.02.14.06.38.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Feb 2023 06:38:10 -0800 (PST) From: Konrad Dybcio To: linux-arm-msm@vger.kernel.org, andersson@kernel.org, agross@kernel.org Cc: marijn.suijten@somainline.org, Konrad Dybcio , Georgi Djakov , Dmitry Baryshkov , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 09/12] interconnect: qcom: rpm: Don't use clk_get_optional for bus clocks anymore Date: Tue, 14 Feb 2023 15:37:17 +0100 Message-Id: <20230214143720.2416762-10-konrad.dybcio@linaro.org> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230214143720.2416762-1-konrad.dybcio@linaro.org> References: <20230214143720.2416762-1-konrad.dybcio@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757817653069471526?= X-GMAIL-MSGID: =?utf-8?q?1757817653069471526?= Commit dd42ec8ea5b9 ("interconnect: qcom: rpm: Use _optional func for provider clocks") relaxed the requirements around probing bus clocks. This was a decent solution for making sure MSM8996 would still boot with old DTs, but now that there's a proper fix in place that both old and new DTs will be happy about, revert back to the safer variant of the function. Fixes: dd42ec8ea5b9 ("interconnect: qcom: rpm: Use _optional func for provider clocks") Signed-off-by: Konrad Dybcio --- drivers/interconnect/qcom/icc-rpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/interconnect/qcom/icc-rpm.c b/drivers/interconnect/qcom/icc-rpm.c index df907ef01d6a..c1954584d6f0 100644 --- a/drivers/interconnect/qcom/icc-rpm.c +++ b/drivers/interconnect/qcom/icc-rpm.c @@ -510,7 +510,7 @@ int qnoc_probe(struct platform_device *pdev) } regmap_done: - ret = devm_clk_bulk_get_optional(dev, qp->num_bus_clks, qp->bus_clks); + ret = devm_clk_bulk_get(dev, qp->num_bus_clks, qp->bus_clks); if (ret) return ret;