From patchwork Wed Mar 8 21:40:14 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 66476 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp602473wrd; Wed, 8 Mar 2023 14:17:40 -0800 (PST) X-Google-Smtp-Source: AK7set+OpKO7mae+XXaapDUrtqL93Yn7zmizh/yiP2FgH1Vbd0Vvxkkucqpf0ouIdZ/s43cHfJxH X-Received: by 2002:a62:3851:0:b0:5a8:bd67:156d with SMTP id f78-20020a623851000000b005a8bd67156dmr15657780pfa.6.1678313860352; Wed, 08 Mar 2023 14:17:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678313860; cv=none; d=google.com; s=arc-20160816; b=woNMIifel2sgLXB/vIdJZ7uN35a41gX+lCwRFVamvohq/om4Ts9rMeR8Lgwsfvn1Jv 3HPVCAURUGJ8zx/9Wz+HQOM8YF0VkAn5j+1h6fpO15MkAUL7CudB9k2nHwjorifoaE5Q BvDz+WCusQ9OE4LoCnRue8f6wl+kjT+Px0L28QEGmSGi5mmkBnHI2SOZpWh/l8tdYO8R pgJkpLR3VDfcvqzfA2DDjkSFWj44fAueiEHtG1deiVY9epUdH+9ySq0N9HdQ0LVdhb3n cF3xC9bXCmV5poxxzcHefmplkklNaevFC9pBmsONVmX6Ryc+LpkDvwm0X++y12O+z9I/ pmqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=N+0l9w3j86TvfIl4Ozy94cjTNyYvl1DohyAW75aJMRQ=; b=RAqlvCJbI8yPRca38u8j46SsF1z7OrWPQETvnDROsr2oLF9P00ekcz9AgHrpaXlSDp 3PWJ6CM9ITghk9BDuEujhfqYxdKXRg5+C8woK5dMJcI1XMKJGcaMhfQitYD6Agn+ttF/ wq2vOmuL6iDeOLhAmVY30tPjZoIYj8DNPJrFGSAF7nz79UGEy+YIlm+vh283kfIVK5KI 83iNwm4i3ltZphAt6LQiCIPxHYu1EZg2aWmQJVdV8lt54nK3+m9qnj/dkR2MydYeGm2G msCcAuNYqSIKpKJwf+4zftuu7exeecstXwz+CDlslTK3mwv6suYPx2oiFmkDSxvhKhhU 7n1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PfQ9mpSt; 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 r130-20020a632b88000000b004fb7e7ef77dsi15215183pgr.693.2023.03.08.14.17.22; Wed, 08 Mar 2023 14:17:40 -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=PfQ9mpSt; 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 S230191AbjCHVl6 (ORCPT + 99 others); Wed, 8 Mar 2023 16:41:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229817AbjCHVlc (ORCPT ); Wed, 8 Mar 2023 16:41:32 -0500 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F404D13C1 for ; Wed, 8 Mar 2023 13:41:06 -0800 (PST) Received: by mail-lf1-x133.google.com with SMTP id i9so23120812lfc.6 for ; Wed, 08 Mar 2023 13:41:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678311635; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=N+0l9w3j86TvfIl4Ozy94cjTNyYvl1DohyAW75aJMRQ=; b=PfQ9mpStKIDHEzLVFXHNNDTNw3fcw3/xsXjM9ed47kqn1PH4IJFCVf9N+E47RLWIzM XSY+9d/LZWz6h4L+dXwOi6cEHsmy/7xGvOciZbhv/GCY5e9Qd2tmUwxaOct4daheHbP8 bov+HMGBECRPtzxheE1+s14NV1Nhds8fNKKysMmJhTJBxliIPHsByR4ZBmsp+7gJKeMh /X0HM/eVgF/fwz93kKpIKyqG/yz1nHPi9JPyIg4oi6Ab2vfvnJF9tRLFxWLwulceFViD kOSecZT5+iex461tdmhTrffONTtuC6ytgSWJkjLKC/IS0GVP7NIvpeIgd62w3udLqCJD dFrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678311635; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=N+0l9w3j86TvfIl4Ozy94cjTNyYvl1DohyAW75aJMRQ=; b=UWdAPrQzCeHz2anJOlWkB/6fuKt2T0ZtJCQfE+uFFZgpE+88Q1YEiqvFQZ39hqhMsu NBeKZMYZ4JdoUYkXOVWUye//Ho3Gc11Lr4BZzaAUw7COekkjBVV3M4wdkF5f7nDX1Mbz eqm+OSE02iLCnf/NMbrHg7avl/5uinLKkGll+DeSW24xZ5dxvXLdJUEBs3rH4VBL/Q4R e+oscG2q5xpTppjOPIQpq/8zZZYlyV/rbhKLZ4z9KloemiYmCWoChSi3tzaJ66JVgUnD EMXEPo54yN5IpGmISwq2ufemNAuADXe+oL63tP+rVf0WJsMDasgPgZ4h24HDwTm5PmXv E+RQ== X-Gm-Message-State: AO0yUKUkS5+MNSmuOUXVAAsqrhoe4ZiEukGBku/4vyoT2MVxV7G5DxG8 xdFVE8uB0exefvAfNxL9Ix+lH+am5ECiydx8Yn8= X-Received: by 2002:a05:6512:3d90:b0:4db:25bb:ff0b with SMTP id k16-20020a0565123d9000b004db25bbff0bmr6147627lfv.2.1678311635647; Wed, 08 Mar 2023 13:40:35 -0800 (PST) Received: from [192.168.1.101] (abyj16.neoplus.adsl.tpnet.pl. [83.9.29.16]) by smtp.gmail.com with ESMTPSA id a6-20020a2e8606000000b00295a2a608e9sm2688844lji.111.2023.03.08.13.40.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Mar 2023 13:40:35 -0800 (PST) From: Konrad Dybcio Date: Wed, 08 Mar 2023 22:40:14 +0100 Subject: [PATCH v7 8/9] interconnect: qcom: rpm: Don't use clk_get_optional for bus clocks anymore MIME-Version: 1.0 Message-Id: <20230228-topic-qos-v7-8-815606092fff@linaro.org> References: <20230228-topic-qos-v7-0-815606092fff@linaro.org> In-Reply-To: <20230228-topic-qos-v7-0-815606092fff@linaro.org> To: Andy Gross , Bjorn Andersson , Georgi Djakov , Dmitry Baryshkov Cc: Bryan O'Donoghue , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.1 X-Developer-Signature: v=1; a=ed25519-sha256; t=1678311609; l=1105; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=OSAfkyJvvvDXJf5AHSbe23m5GiOxqbkKHaYbUhLD+NM=; b=WcebsguplvEedMiICVRR6tw9G2J6b6JAwcRKpsP4b34niNN0zXH9BVKa/397gk1X23wuzK2glT2l VdbLkx8IDYVGrujDys55r/L6UPn7hO/t8shQhzvNMx60x2tjXSve X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-0.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_HTTP,RCVD_IN_SORBS_SOCKS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no 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?1759839634408912232?= X-GMAIL-MSGID: =?utf-8?q?1759839634408912232?= 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 31d069433343..554fb27de4be 100644 --- a/drivers/interconnect/qcom/icc-rpm.c +++ b/drivers/interconnect/qcom/icc-rpm.c @@ -517,7 +517,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;