From patchwork Mon Jan 23 20:18:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13112887 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFF85C05027 for ; Mon, 23 Jan 2023 20:18:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232173AbjAWUSW (ORCPT ); Mon, 23 Jan 2023 15:18:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231642AbjAWUSV (ORCPT ); Mon, 23 Jan 2023 15:18:21 -0500 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 84D6216AEE for ; Mon, 23 Jan 2023 12:18:18 -0800 (PST) Received: by mail-wr1-x431.google.com with SMTP id r2so11936114wrv.7 for ; Mon, 23 Jan 2023 12:18:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=jxbstFZC7Nau7sl6h71PdO0KZ48q5Fasv9ei6JkkHXs=; b=ZisB8u8tGC13xbc/eqG5/Tngo//mu6TIUml3Nt6C9cB2evXRVJ+IxQTmnqikUZ0RLt GHnmNQP4uDpav1cluREi9AU8LKx3Ee2iZMIkaF9gdTab8EYa+3bK7QYUlD3Z/Xi6Mvsw ZH2Wdvn/1vzFXMb1ILg2ewEz0OWaYVlRm6hRlK+ty7lsKtaLVaIDFGEB+jHQ1y3aMcAT L8KGw67uf6m6OhudZKprAwsgDuELiHVdnhW/7Fs/wHx5kvCIl7IOzFYWCnlDCMMY/eAG n6jYguiG9Vfnv2iHv/lfIl0339o0FeF5BEp1SbkBPQnRyFsZ3V9WarT4fu0lyFWg7MIO m4zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jxbstFZC7Nau7sl6h71PdO0KZ48q5Fasv9ei6JkkHXs=; b=U6KY2qB+GL+b+Kqd+3OmcTeQchqKiPlCi8Gq6reKkF7MhxfoCBqvZVLDmh4tBFfX7+ EF+r674UJW28AkcCkw+1iV09uo+f32pSxptpslQkDbyMVbS3o9BZEm6KzsvG74ajl0Qg UQTKJDrSYz9SfsaFwQlWSwLneei6CLDUQ93gxrjBz8T8oOD3eNfI9FdysGwSAsYk2CkH TKiswhho2eD0zg+tOPuMyZjw5bDbkI2T4dfQDfaolXLRe5k9GJoPMRREZoZHGtTcJl18 T3ikjZX/5MIgoxevnHYCm7hB94ABtUm4cv5PQDq13czFy+SyQrJcJfYhjfWvqoI01+ub 35uQ== X-Gm-Message-State: AFqh2kp1NInb66BZN80usH+Niz4UyqnGbE9YHg5OzauTb4qSWlasJty5 uQAUKA02a+88IyJ6GxoX3Ei9yQ== X-Google-Smtp-Source: AMrXdXu/XUJGntwDH96r4mOdKbs0k66y5pr8I6eTPUEA5aFlrYDfRN1eIYjkqJ04CGyaWMcyAcRdqA== X-Received: by 2002:adf:f0c8:0:b0:2bf:9656:d1a8 with SMTP id x8-20020adff0c8000000b002bf9656d1a8mr10492830wro.32.1674505097138; Mon, 23 Jan 2023 12:18:17 -0800 (PST) Received: from krzk-bin.. ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id v1-20020a5d4b01000000b002be53aa2260sm210078wrq.117.2023.01.23.12.18.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 12:18:16 -0800 (PST) From: Krzysztof Kozlowski To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/3] clk: qcom: cpu-8996: add missing cputype include Date: Mon, 23 Jan 2023 21:18:10 +0100 Message-Id: <20230123201812.1230039-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Include asm/cputype.h to fix ARMv7 compile test error: drivers/clk/qcom/clk-cpu-8996.c: In function ‘qcom_cpu_clk_msm8996_acd_init’: drivers/clk/qcom/clk-cpu-8996.c:468:16: error: implicit declaration of function ‘read_cpuid_mpidr’ [-Werror=implicit-function-declaration] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- drivers/clk/qcom/clk-cpu-8996.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/clk-cpu-8996.c b/drivers/clk/qcom/clk-cpu-8996.c index ee76ef958d31..40c4dabc20a7 100644 --- a/drivers/clk/qcom/clk-cpu-8996.c +++ b/drivers/clk/qcom/clk-cpu-8996.c @@ -49,6 +49,7 @@ * detect voltage droops. */ +#include #include #include #include From patchwork Mon Jan 23 20:18:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13112888 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1A95C54EAA for ; Mon, 23 Jan 2023 20:18:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231642AbjAWUSX (ORCPT ); Mon, 23 Jan 2023 15:18:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231941AbjAWUSW (ORCPT ); Mon, 23 Jan 2023 15:18:22 -0500 Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62C8535270 for ; Mon, 23 Jan 2023 12:18:20 -0800 (PST) Received: by mail-wr1-x435.google.com with SMTP id r2so11936190wrv.7 for ; Mon, 23 Jan 2023 12:18:20 -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=FflYPwr3M/bnWPvk5ojh/SDXRU2zuT+fKUMW5bHVZVU=; b=anAeWvTLdi1pF9jtm4TWVL/XxAXUksOyceS9GZfF72xOmEKnPLB7FkFJ5w0kLyBsSY f9SvHjXioyo3glKeD2Wzn/FMtrAfGT8MRTrIbsUccSNtTscxJ9h2ulra5z4TPvy2U9n0 ZkQV7ZB2CthUkXwJVsmLlwhDdgz3XB6fJKP0aqst9/3JdQcFGOePpUgZOI0aAQtCeSjp 70/w8p4pCdNvoObjrhbevR4FI1xD//y8C2zJEYo9jTl3WEuw2ppIZgn3oDLaVvVgVIDu AlKJ6r+gaLv9LBNjPlHn01uxF24B21KVDTCfoDgFXiRXAKKuOdnke5KSvyoz4wn1XtIy C7iA== 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=FflYPwr3M/bnWPvk5ojh/SDXRU2zuT+fKUMW5bHVZVU=; b=nVdM3aHCufo0XrexoYs08hwTBKY9x5gIyAP2tr7w5wxhMafytEC58V4u7FxVbYNytV xiugXctbY1WznCFsUAvbKieWyQaWutd+4PlK4L4QjhJxxPaLRFWsTZnnOCpVOIUHx/FV /oYnFOdzurSbmzcx1JHVuQTamde7SDBHD7eiKRTaaHTF7yQmQmg3Onq5oIg0y3PPM3CV WOJ+uWzvM6xKn5d/KBTutbbrZsOlKvByf3ATdLG2cQ83S+Bb0G3j/TmEAG7x7i6fBZBO AOlkqt0tisKjnJuDJVwDhvDyl7yqxm6VBLrdYB2BxlSgzcM6qOJVDrO/40X1IkHBcQRx 9T3Q== X-Gm-Message-State: AFqh2krcz41K2IZ8yDVA0OQOWLxEsCcpVHrBhjxIc8/O0FmmJmuPCKUV ycs2ahOmu+1VmoawxrlUBYD2/g== X-Google-Smtp-Source: AMrXdXv08153HfRvW8bM0I5g+nTjDJyeBcfgRRZFjH8pbb2MQMmyx4aarBkFE9Q9Zv1qpgAd14wXQw== X-Received: by 2002:a5d:6e8f:0:b0:2ab:78e2:864e with SMTP id k15-20020a5d6e8f000000b002ab78e2864emr22085836wrz.19.1674505098968; Mon, 23 Jan 2023 12:18:18 -0800 (PST) Received: from krzk-bin.. ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id v1-20020a5d4b01000000b002be53aa2260sm210078wrq.117.2023.01.23.12.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 12:18:18 -0800 (PST) From: Krzysztof Kozlowski To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/3] clk: qcom: gcc-qcs404: fix duplicated num_parents Date: Mon, 23 Jan 2023 21:18:11 +0100 Message-Id: <20230123201812.1230039-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230123201812.1230039-1-krzysztof.kozlowski@linaro.org> References: <20230123201812.1230039-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org num_parents field is being initialized twice: gcc-qcs404.c:63:32: error: initialized field overwritten [-Werror=override-init] Fixes: 2ce81afa0c7c ("clk: qcom: gcc-qcs404: sort out the cxo clock") Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio Reviewed-by: Stephen Boyd --- drivers/clk/qcom/gcc-qcs404.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-qcs404.c b/drivers/clk/qcom/gcc-qcs404.c index 5f58dd82d3fe..a39c4990b29d 100644 --- a/drivers/clk/qcom/gcc-qcs404.c +++ b/drivers/clk/qcom/gcc-qcs404.c @@ -60,7 +60,6 @@ static struct clk_fixed_factor cxo = { .name = "cxo", .parent_data = gcc_parent_data_1, .num_parents = ARRAY_SIZE(gcc_parent_data_1), - .num_parents = 1, .ops = &clk_fixed_factor_ops, }, }; From patchwork Mon Jan 23 20:18:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13112889 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F279DC05027 for ; Mon, 23 Jan 2023 20:18:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231485AbjAWUSZ (ORCPT ); Mon, 23 Jan 2023 15:18:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231848AbjAWUSY (ORCPT ); Mon, 23 Jan 2023 15:18:24 -0500 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8BF4416AE6 for ; Mon, 23 Jan 2023 12:18:22 -0800 (PST) Received: by mail-wr1-x42e.google.com with SMTP id h16so11925738wrz.12 for ; Mon, 23 Jan 2023 12:18:22 -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=cAE8c6dFz3FEq85yU3g0Xx5Oubt8sx5CHZhlIZdhMpA=; b=b4SkVTCR3zcq4w4TMiDfjUHVzmIXti4vErDIN2OtGrU0v4sjm4FMTfyocdliEMmdzZ QSpw6fD9bPpdIgt/3CjMwyE71U1hlty58Xojx7TShJ5snbVVqpE6qP+B79G7ZoFbnmJ/ yrhLOI5nK75w1hOaiKLLE9ulTCN2Pva6g2uHHIVZsI32fpoifY52KQ4q1FlIWl2yRM4i mOiHYTtW856u+qRPI7zW92//0x7c2fOBeA6kYGxfE1ZxI8Vqzzk1fzUPDliUFAJ4dY4C 4fU3yq5CEegb0/s8uuaP62Hmz7c5kDSXcWhK+C6xP1JTkD8jDobrC4MslJ3n5HRzpXQc IVrg== 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=cAE8c6dFz3FEq85yU3g0Xx5Oubt8sx5CHZhlIZdhMpA=; b=xYzBmDtLT1kwQYnc+o3LmVGeAJIauBoRN+eaK9WlKwvsuOmOoiusfTC5WCsFLQrIL6 n6f1ZULwfNtcNNIWhvNmy1ubhug4XYywqCCo/Km8U4XRoSt9V7Wcn1kQhhpzkG2A67r4 UqWRmRuhv4Dhvx+il9VtFGnUgm4UfgAHs8ygCsUcf/lldwSqlS7yGra/SB/dfLpeGWoZ leiw8waBI015iUXlh0IFyWtzh5MY6ecwq7Tt2pL27BxFRcJeJbR0vSnwcDSUlPQjebHy wSVCb5wYqOxZ78S7uSqrdrh3pVwmoIBZTrvniVHs5ehoTgmzuz4b0oTQGFx0GagAg+Wc HX/g== X-Gm-Message-State: AFqh2koRqm90hiPYHvyRuFgnM6Xv10jr0j/HCbj4pMd2UbV1rhAgBWsC UzEbZqT4wlhOWbW24dmf8KyADBbNXg7bBSN+ X-Google-Smtp-Source: AMrXdXtRQT561eClfu+WVsxcTSlAtfwnyVBDIpONayWNok3WlPg7TXKUcWvPpuKkAikgcfGfmXOsbg== X-Received: by 2002:adf:fe03:0:b0:2be:516a:e6da with SMTP id n3-20020adffe03000000b002be516ae6damr12024505wrr.14.1674505100504; Mon, 23 Jan 2023 12:18:20 -0800 (PST) Received: from krzk-bin.. ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id v1-20020a5d4b01000000b002be53aa2260sm210078wrq.117.2023.01.23.12.18.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 12:18:20 -0800 (PST) From: Krzysztof Kozlowski To: Bjorn Andersson , Andy Gross , Konrad Dybcio , Michael Turquette , Stephen Boyd , Dmitry Baryshkov , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/3] clk: qcom: rpmh: fix double RPMH_IPA_CLK assignment Date: Mon, 23 Jan 2023 21:18:12 +0100 Message-Id: <20230123201812.1230039-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230123201812.1230039-1-krzysztof.kozlowski@linaro.org> References: <20230123201812.1230039-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org RPMH_IPA_CLK is assigned twice: drivers/clk/qcom/clk-rpmh.c:578:35: error: initialized field overwritten [-Werror=override-init] Fixes: aa055bf158cd ("clk: qcom: rpmh: define IPA clocks where required") Signed-off-by: Krzysztof Kozlowski Reviewed-by: Stephen Boyd --- drivers/clk/qcom/clk-rpmh.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/clk/qcom/clk-rpmh.c b/drivers/clk/qcom/clk-rpmh.c index 393b83f6020e..45ee370f3307 100644 --- a/drivers/clk/qcom/clk-rpmh.c +++ b/drivers/clk/qcom/clk-rpmh.c @@ -575,7 +575,6 @@ static struct clk_hw *sc8280xp_rpmh_clocks[] = { [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw, [RPMH_PKA_CLK] = &clk_rpmh_pka.hw, [RPMH_HWKM_CLK] = &clk_rpmh_hwkm.hw, - [RPMH_IPA_CLK] = &clk_rpmh_ipa.hw, }; static const struct clk_rpmh_desc clk_rpmh_sc8280xp = {