From patchwork Mon May 1 12:57:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 8801 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2673763vqo; Mon, 1 May 2023 06:00:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7U2bsqnEkIcTxS8ktmveHs6dWU3MkET1OeXXDJu7nfqhM0vpqTrL2XIBffUAoyG85SwriX X-Received: by 2002:a05:6a00:2e91:b0:63a:8f4c:8be1 with SMTP id fd17-20020a056a002e9100b0063a8f4c8be1mr21457293pfb.10.1682946003387; Mon, 01 May 2023 06:00:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682946003; cv=none; d=google.com; s=arc-20160816; b=Y7l0JM2GWfcKmSaE5M6LT73xnpRJ2lPa9iF5mHfSI/mkdfcrd1ZdPST5/iCquanOs8 T0E8FwbPMUUXHmJtDJDkHLWgGx6QBPGTU5detX/oPV9p9HiOk55XsUjOwU9AMzzhDq0Y dWfza7i08cXqRO/zJ7dNXU/EEsxSBt+BxjCHQSuyzEMnxtPwIqhD3EauZfeCU433u02F O2okuOGfG8I4tDfLvLtVgOFOcLuTojyAS51ajwn0mEVO1HZlt7gnn+Lj7zUe2V67Kop+ +n78kkLBMXoimBevr7OrCpS5U4THB4SUijX2CGEHWnoIhgJ9IC49NJSWcl524w6nJ9/q cf8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=5yj+EzAgsUG5Em1uJTZRhqMUdZlbskRY/arS004TCkM=; b=HhB+mtvRGRl+Vm5Tg4qXgR9zDLLXeZaXLfZ8H1TAiXh+OCaeaAGQhfGCSogMKQ1OIn GqzVoF/qF0c3xU5izQ2mVNlwYMNhNbx7Cd7gXHdw0PRESIT1s+MgeWdqy6kJUL3JN7U0 Klu4dJLoPt+yKScowdvDa8JQceh/1p8fa/LnTPkLtLRpCkcbv34hpdgzMq5aGk60QpGS Nh6a1hcluZbWyE8QDZQJoTkQ0RFi2l0zomrJBhkaIDZrd/QX740ckqxkMxjin0RH3OkW Z8G+zKthjuuJR7e9KWiLjoUK2XAyAflpdNTcY3oAyIQ9kiSH0asw0uYH1KZIyCG1zmbi JKLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B9IWMG27; 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 y21-20020aa79435000000b0063d334a2eb2si25085147pfo.183.2023.05.01.05.59.49; Mon, 01 May 2023 06:00:03 -0700 (PDT) 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=B9IWMG27; 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 S232665AbjEAM5W (ORCPT + 99 others); Mon, 1 May 2023 08:57:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232604AbjEAM5U (ORCPT ); Mon, 1 May 2023 08:57:20 -0400 Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 038C210D1 for ; Mon, 1 May 2023 05:57:17 -0700 (PDT) Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2ab25e8a4a7so23512191fa.3 for ; Mon, 01 May 2023 05:57:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682945835; x=1685537835; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=5yj+EzAgsUG5Em1uJTZRhqMUdZlbskRY/arS004TCkM=; b=B9IWMG27JPGpZI8gUXQMEfsWPYFSYAm0fyRuGrnXSKLDFtKgBWLdfLp/lKvxPYpf0d N0LOgw9hLoceoy3ARo4dbCHy9OzED7sM31+UkHwZz2+g/YkX734roDvlz6YJuS/VQ0BE 00/Mkq1loamZRWlhHOc73OPU6QsfcQ6oOJfNkJiGB28ijZxoZOZ5o6F2St3CzJjUJJxI P9W9+ZGBNvN0UPjI7dJuNJM8wwpDnrVrfpPpqL00v4hdnZIOzqYPlaNh/wIYYzJpZoYq 6Al5LP0w9AzdlpDLD0/KbIzPyrQi3N9NAX3fEF9HgMUGmyBNiQ/orgbKcfSdzrIFizAx fKKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682945835; x=1685537835; 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=5yj+EzAgsUG5Em1uJTZRhqMUdZlbskRY/arS004TCkM=; b=Fvnjxv93aXD8CuRS5KcMuXkRSLEYyeoc89lD/EMPsUSbi9YE6O1PLSdFUXthQQXPFL eqhSD4Sm/E4niG9azhygUHPvHsC1rWmlb8cWQZNxpGpRqQe/eBKr1va+6EaxOD8+OX2H n94wVHu1KZFGhVYNLd00rrpADa0ejb8EEdMeA+3/i1d/bHijnCbF0eu94qMIhzQob2SK Ts2gRvjtJP1FPiaBmr1zlbP/fYslv6UfKh6IZcV1rJQraOcKFF6ZxNTQDHIYkO/C5UYJ U/3zX0+lYMpd0i/aGF+4jgnQFjUmZWM8aoLMdilx2LZucbUqobgRBBJ84fmoieG8P0/6 v9Ew== X-Gm-Message-State: AC+VfDyjkau/tvTvhGT0N6FY2S6YHYoc76zkf4k0aUWEZg8NWaocuan7 00rjCQnCxtzYzRpA9XPPUhAV5w== X-Received: by 2002:a2e:7e0d:0:b0:2a7:f1e8:b08 with SMTP id z13-20020a2e7e0d000000b002a7f1e80b08mr3363092ljc.19.1682945835172; Mon, 01 May 2023 05:57:15 -0700 (PDT) Received: from [192.168.1.101] (abyl248.neoplus.adsl.tpnet.pl. [83.9.31.248]) by smtp.gmail.com with ESMTPSA id y6-20020a2e95c6000000b002a77ab1d73dsm58332ljh.96.2023.05.01.05.57.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 May 2023 05:57:14 -0700 (PDT) From: Konrad Dybcio Subject: [PATCH 0/3] Mark RPMCC XO_A critical Date: Mon, 01 May 2023 14:57:10 +0200 Message-Id: <20230501-topic-rpmcc_xo_a-v1-0-93f18e47b607@linaro.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIACa3T2QC/x2N0QqDMAwAf0XyvEDtEGS/MobENJsB15Z0DkH89 4U93sFxBzQxlQa37gCTrzYt2aG/dMAL5ZegJmeIIV7DEHr8lKqMVt/M014mwsgkPPKYKA3g2Ux NcDbKvHiYt3V1WU2euv8/98d5/gCNeQIydwAAAA== To: Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1682945834; l=959; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=lEfD0mmHrOC5fcfJkFA4Njozsjf+rOEhZPlsR22oTUc=; b=G2yoh6Mthv9u7eoX9sRud5gyKYDyxJhZOVaZnHOeWAecrdKPMJ5phO8OQM8Gf38dTdI9mKbGA+se yG5/KeSgBvBW5TFJ2RJ8C1iJrnm1FtF3ZQld6UZ/O2FOwIpGIWoC X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= 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,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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?1764696788159399733?= X-GMAIL-MSGID: =?utf-8?q?1764696788159399733?= The Arm part is supposed to hold an permanent, active-only vote on the XO resource to prevent the RPM algorithms from deciding that its main clock source should be cut off. Guarantee this by marking XO_A critical. These patches are extracted from a broader series at Stephen's request: https://lore.kernel.org/linux-arm-msm/3040c836-4db8-7e7b-3ed4-6d71f0496cc5@linaro.org/ Signed-off-by: Konrad Dybcio Tested-by: Matti Lehtimäki --- Konrad Dybcio (3): clk: qcom: smd-rpm_ Make __DEFINE_CLK_SMD_RPM_BRANCH_PREFIX accept flags clk: qcom: smd-rpm: Make DEFINE_CLK_SMD_RPM_BRANCH_A accept flags clk: qcom: smd-rpm: Make BI_TCXO_AO critical drivers/clk/qcom/clk-smd-rpm.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) --- base-commit: 92e815cf07ed24ee1c51b122f24ffcf2964b4b13 change-id: 20230501-topic-rpmcc_xo_a-2caec8c8dad5 Best regards,