From patchwork Tue Aug 8 09:44:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 712821 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 E9B55C001DB for ; Tue, 8 Aug 2023 22:08:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231913AbjHHWIH (ORCPT ); Tue, 8 Aug 2023 18:08:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38070 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231998AbjHHWIE (ORCPT ); Tue, 8 Aug 2023 18:08:04 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63D9A46FC0 for ; Tue, 8 Aug 2023 09:48:00 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-99bed101b70so843042966b.3 for ; Tue, 08 Aug 2023 09:48:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691513277; x=1692118077; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=xXb3gGUTCuGI9f7CTmhZvudhYCVdkZDKGm57sq75z9A=; b=qlCg/JSzUv9eG6LzcH6qKH9AtO6iWopHA3qao7Gwerqc0J/sDrP3TD8BRgSvlkm/ov 5n6n6AiYbljhWgDd9LvNNgfX3xXVgRnzONShNFD+8Z88eeTUb5dwmWi8QXbxSPwECkxN 0H8OlySrfGPLW5RXY0amU1ScAsFf3e/RuC3lsKf7GtA7katlROqJcSJK3r8ndOBoO7oQ KvGIQCpQ7rzl0e7naCNdmhWyb/25xpHX6Ag3jeXxiehqGZk3+93CVR0PdW/ZM7k2DFUu 8Wns9kg9Pu+3IL8LOHpkzpXpC0DbIX9idmKQNaXRCzOpPm5eCIUDw7a2RVApPdcTagyJ SeIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691513277; x=1692118077; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xXb3gGUTCuGI9f7CTmhZvudhYCVdkZDKGm57sq75z9A=; b=GVpbfqNNkQCecT0ny/efVR1ac/D13ewakvkrtv+6AoeKE8jeLoAaGJ2+D2RqJOoTaw T6qjcwmxMd+Li7fVYbfZIcwkfbfjqWxk4+S5SBFnH9pv8fEHg5QjM9jVf0O0j8Az/5vK ObG9XFsMZWwtUfDMBqghL6Fy2xHF6sR9PtCn18zzC28Q60n1E5IFEKZFudTDoRQsca1G HWQd4eHww2vp7NxPAuwHijDRmrrECV3p9NNjZYgrJXHHo2n1eONoWoU700vMhsjkoGrH INuYPz1yQLmP46lxuw3mtS1B1ac/SEsuCsrE8gVXNnGavOmP3LG3U7bfoWcWmCXqqWy8 KiUQ== X-Gm-Message-State: AOJu0YyzvgO5Ih4E4SIpdzHsBJ5LiZRZjGENqCFhvIZ/vs5pM4t9N36n 9/OAt+HZCNhkCAfpj+GHbP+94Nay+UfNQkLCl6w= X-Google-Smtp-Source: AGHT+IH+aKb/us+BJrh9hTz6KF/MXtFLXgEfAZaI1uc/X5WOfIfDWEdaa6Uiv+MPqfqqttpgiGhcBQ== X-Received: by 2002:a05:6512:3ca6:b0:4fe:279b:7609 with SMTP id h38-20020a0565123ca600b004fe279b7609mr9597266lfv.17.1691487887970; Tue, 08 Aug 2023 02:44:47 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id i6-20020a056512006600b004fdba93b92asm1818884lfo.252.2023.08.08.02.44.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 02:44:47 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH v2 0/6] MMCC MSM8998 fixes Date: Tue, 08 Aug 2023 11:44:40 +0200 Message-Id: <20230531-topic-8998_mmssclk-v2-0-34273e275c51@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAIgO0mQC/32N0Q6CIBRAf8Xx3G2AuaAn/6O5Bgh6F4IDczXnv 0d+QI/nbGdnI9kmtJncqo0ku2LGGArwU0XMqMJgAfvChFNe06ZmsMQZDQgpxWOacjb+Ca6/aO7 01QnDSAm1yhZ0UsGMJQ0v74uck3X4Pk73rvCIeYnpc4xX9rN/HysDClw3SjgjqZSs9RhUiueYB tLt+/4FMewJ3soAAAA= To: Andy Gross , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , Michael Turquette , Stephen Boyd , Jeffrey Hugo , Imran Khan , Rajendra Nayak , Joonwoo Park , Jeffrey Hugo , Will Deacon , Robin Murphy , Joerg Roedel , Jeffrey Hugo Cc: Marijn Suijten , Dmitry Baryshkov , Jami Kettunen , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691487885; l=1561; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=APl5fI6CgPz/P+aBiMrAGDV2ER8mxIXa42jNxZTZU0A=; b=utcVZVXR/N23ZVDqZiyeYw1eROZHDAt70NBzimNDO1RcNS9XaxCjRcvkl2Ey8pMFL7xr+tFi2 MSKWoDguWMkDlbEplPK8WDVFypi/F7YhDNuLBVSMMOTLKgCLcnEy8FX X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org 8998 has a couple of issues related to its clock controllers. This series attemps to fix some of them. The DT patch should go in first for bisectability, otherwise clk/pd_ignore_unused will need to be used, as the SMMU GDSC is no longer considered always-on. This series results in less "clk stuck at 'on/off'" messages and should marginally reduce power consumption. Signed-off-by: Konrad Dybcio --- Changes in v2: - Update bindings - Separate out the dt patch into two - Pick up tags - Link to v1: https://lore.kernel.org/r/20230531-topic-8998_mmssclk-v1-0-2b5a8fc90991@linaro.org --- Konrad Dybcio (6): arm64: dts: qcom: msm8998: Drop bus clock reference from MMSS SMMU arm64: dts: qcom: msm8998: Add missing power domain to MMSS SMMU clk: qcom: gcc-msm8998: Don't check halt bit on some branch clks clk: qcom: mmcc-msm8998: Don't check halt bit on some branch clks clk: qcom: mmcc-msm8998: Fix the SMMU GDSC dt-bindings: arm-smmu: Fix MSM8998 clocks description .../devicetree/bindings/iommu/arm,smmu.yaml | 41 ++++++++++++++++++++++ arch/arm64/boot/dts/qcom/msm8998.dtsi | 8 +++-- drivers/clk/qcom/gcc-msm8998.c | 6 ++-- drivers/clk/qcom/mmcc-msm8998.c | 7 +++- 4 files changed, 55 insertions(+), 7 deletions(-) --- base-commit: 71cd4fc492ec41e4acd85e98bbf7a13753fc1e03 change-id: 20230531-topic-8998_mmssclk-fd4b2fb7f8c1 Best regards,