Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2892454rdb; Wed, 4 Oct 2023 15:09:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEe1mmOHFgJmRiyorTG7BPSRFYdI0C441Dn+3Ts5ODxShtQyE2ombN+lUZf/bODiDAg0CYf X-Received: by 2002:a05:6808:91a:b0:3a1:e7fb:76fc with SMTP id w26-20020a056808091a00b003a1e7fb76fcmr3639330oih.17.1696457397110; Wed, 04 Oct 2023 15:09:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696457397; cv=none; d=google.com; s=arc-20160816; b=yFvIX3fib4/X8i/FN3GW4DR5poz+y3sRQ1GgPTKZA0OcFYN9T2WNlZGnnVvHKHA1RT repsg0XNIlIEkH46Zr8O7jI+hb2YRvE27t0mjFyzESRR2b2YnHlqMYFXb88qqcZV8B96 o4DQaOswHJpidshfFK/SpFaDGnRE2D2qGcdMzJ57GxpZfHeKI4iTbzTNDjsJh/qgRYNN 2QhDYbcnCRO+hPulizTjR4aDhiq2mQO7ASzRaCoy1oGcQIoG7np2HOnpyyXue3fG1VqO 3UFSCujDNb4JKiRYsGrRmfSwzTGxlwVSXNLUnD4U0njLBQU3EHZlwyYpQvbU1eoMVJQS K06g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cGtL9ni/bmY+k+XLO0zZ//MJWYpwr9WdA7Lq88K11GI=; fh=QJl6bOyRfTcmdoH0rAh5ox5fGBwYShyxR3cYpSvQVN4=; b=V8hJPMOPlQa215bkoSSVKAwdKq2sBvHP6Rod3/yROPf5A9LaV0ewUuK0NHzUPclAEW BA07d5s0XXLtaTgD2lB4Phbq3yoW0hs04M1EQUSbbPL4yn/zJslglNbugXhfVPyIV2Vd FcnqrPaFvi3Ba6D5ube0S/BBlLyscLE0wvS+/kzQFa9CvAu0lZk7uu7jE1svf5F8b8Y/ bxJLku4A/DfCqrzAiFsII+ZX4Idk3RXdR8aF+FqW6bN9n1zbV/PdDytVsPyKOtD1nSa1 epnR7BxXSV4wwJsmOQq+0+N3Z4PRY9SmWLkdWdir38JrnnUs8QJTLx0c5xs4jLiCHaKV 8pxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r0NfUJhL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id j63-20020a638042000000b005859c255ce9si45451pgd.861.2023.10.04.15.09.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 15:09:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r0NfUJhL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id C9CD482AB454; Wed, 4 Oct 2023 15:09:49 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231651AbjJDWJr (ORCPT + 99 others); Wed, 4 Oct 2023 18:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56646 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231349AbjJDWJr (ORCPT ); Wed, 4 Oct 2023 18:09:47 -0400 Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 81544C6 for ; Wed, 4 Oct 2023 15:09:43 -0700 (PDT) Received: by mail-yb1-xb2c.google.com with SMTP id 3f1490d57ef6-d865db5b4c7so377720276.1 for ; Wed, 04 Oct 2023 15:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1696457382; x=1697062182; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cGtL9ni/bmY+k+XLO0zZ//MJWYpwr9WdA7Lq88K11GI=; b=r0NfUJhLIWnl8d+T7mPYNKKQ5OaUUvMwYuOd5fUR6kaXxUmQzYdU4b0aRxDb0UX3/y pCBnCAYwBBhxZbV1a/fMJtBH2BgwZKcbe1IZP9eciOm9DmvFlrdZACNoQFrIt+z2v+EP Ne25ID5PulMrmmW3NDK77YU/2Oc+PLxRh/zlIm+yYQYSmidmXsLl8E94anAt7yt6wrs/ +HryNABdKJuOEQtnTEmXt8mHBP9BeaVGyvA10t1QwDj8w8Aw8z2We8e+OIeG0CweWT6g +6t0w0i63818BPSwD2N0bEDaL+lbSzYh2ifq6bEncN21HHji2dVfAlwk7/MLoS/VT66x Ys/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696457382; x=1697062182; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cGtL9ni/bmY+k+XLO0zZ//MJWYpwr9WdA7Lq88K11GI=; b=LNLV2/Cw0QP9xeLsC2Ltt52MZfbOQ4sk8aAYlVpzmJmL7GSvg/Jjny1HxQ7wbPZL8m PAU4cVQZRPIymNdQuFKZqCfC+JOb+F3HsFeKmgPa6NF5U8VNmcN1ZdMdLb/VF8ccKxce 5zJMEAhNKEru3Ls5TBUGTlQ9qv2+lbVTK5DRF8viB+esigLwz80jazmwwFZpujdrHgRP qJm/ohNdzoY7vgIEGYZxjkg77pfljQQYmL76C9p5i6vQOjt9U78F+Z/OS08KgeFsVpEx pNkO9QD42khVHPJ0D0gsiKORN0XuPASgIlBKBTfVAFVPIE6FOCP4j4KzRXgk4flFdF/A XeNg== X-Gm-Message-State: AOJu0Yx4r1TamRvTJPnAPbss3RSslfSyrYx425F45kowmr6RMytOIBSi OVKxcNhqfChSowSNb0COB3WRuEp1lri1E7Grwm6nbFYslFITsGIA X-Received: by 2002:a25:d707:0:b0:d8d:5dc1:b463 with SMTP id o7-20020a25d707000000b00d8d5dc1b463mr3381310ybg.64.1696457382451; Wed, 04 Oct 2023 15:09:42 -0700 (PDT) MIME-Version: 1.0 References: <20230918093751.1188668-1-msp@baylibre.com> In-Reply-To: <20230918093751.1188668-1-msp@baylibre.com> From: Ulf Hansson Date: Thu, 5 Oct 2023 00:09:06 +0200 Message-ID: Subject: Re: [PATCH v8 0/8] soc: mediatek: MT8365 power support To: Markus Schneider-Pargmann Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , Alexandre Mergnat , Chun-Jie Chen , AngeloGioacchino Del Regno , Tinghan Shen , Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Content-Type: text/plain; charset="UTF-8" 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,URIBL_BLOCKED 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-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 04 Oct 2023 15:09:49 -0700 (PDT) On Mon, 18 Sept 2023 at 11:38, Markus Schneider-Pargmann wrote: > > Hi, > > no real changes in this update. Rebase to v6.6-rc2 and according change > of directory. > > Thanks for any feedback! > > Best, > Markus > > Based on v6.6-rc2 > > Changes in v8: > - Rebased to v6.6-rc2 > - Moved changes from drivers/soc to drivers/pmdomain > > Changes in v7: > - Rebased to v6.5-rc1 > - Fixed a couple of small style issues pointed out by Angelo > > Changes in v6: > - Change flags field to be u8 instead of u32 > - Use macro concatenation to simplify BUS_PROT macros: > BUS_PROT_WR(_hwip, ...) etc. > - Use the final bit values for scpsys_bus_prot_flags from the beginning > of the series. > - Changed scpsys_domain_data->caps to be u16 to accommodate the new flag > MTK_SCPD_STRICT_BUS_PROTECTION. > > Changes in v5: > - Create defines for all registers and bits in mt8365 power domain patch > - Redesign scpsys_bus_prot_data to use flags to store reg_update, > clr_ack as well as the difference between SMI and INFRACFG. The code > uses the appropriate regmap depending on the flags. > - The WAY_EN patch now uses two flags, one for inverted operations > 'BUS_PROT_INVERTED' and one to use infracfg-nao for the status flags > 'BUS_PROT_STA_COMPONENT_INFRA_NAO'. > > Changes in v4: > - Redesigned WAY_EN patch and split it up in smaller patches. > - Added two documentation patches. > - Added mediatek,infracfg-nao field to the binding. > > Changes in v3: > - Mainly redesigned WAY_EN patch to be easier to understand > - Rebased onto v6.0-rc1 > - Several other stuff that is described in the individual patches > > Changes in v2: > - Updated error handling path for scpsys_power_on() > - Minor updates described in each patch > > Previous versions: > v1 - https://lore.kernel.org/linux-mediatek/20220530204214.913251-1-fparent@baylibre.com/ > v2 - https://lore.kernel.org/linux-mediatek/20220725081853.1636444-1-msp@baylibre.com/ > v3 - https://lore.kernel.org/linux-mediatek/20220822144303.3438467-1-msp@baylibre.com/ > v4 - https://lore.kernel.org/linux-arm-kernel/20230105170735.1637416-1-msp@baylibre.com/ > v5 - https://lore.kernel.org/linux-arm-kernel/20230619085344.2885311-1-msp@baylibre.com/ > v6 - https://lore.kernel.org/linux-arm-kernel/20230627131040.3418538-1-msp@baylibre.com/ > v7 - https://lore.kernel.org/linux-arm-kernel/20230713150414.891893-1-msp@baylibre.com > > Alexandre Bailon (2): > soc: mediatek: Add support for WAY_EN operations > soc: mediatek: Add support for MTK_SCPD_STRICT_BUS_PROTECTION cap > > Fabien Parent (2): > dt-bindings: power: Add MT8365 power domains > soc: mediatek: pm-domains: Add support for MT8365 > > Markus Schneider-Pargmann (4): > soc: mediatek: pm-domains: Move bools to a flags field > soc: mediatek: pm-domains: Split bus_prot_mask > soc: mediatek: pm-domains: Create bus protection operation functions > soc: mediatek: pm-domains: Unify configuration for infracfg and smi > > .../power/mediatek,power-controller.yaml | 6 + > drivers/pmdomain/mediatek/mt6795-pm-domains.h | 16 +- > drivers/pmdomain/mediatek/mt8167-pm-domains.h | 20 +- > drivers/pmdomain/mediatek/mt8173-pm-domains.h | 16 +- > drivers/pmdomain/mediatek/mt8183-pm-domains.h | 125 ++++++---- > drivers/pmdomain/mediatek/mt8186-pm-domains.h | 236 ++++++++++-------- > drivers/pmdomain/mediatek/mt8188-pm-domains.h | 223 +++++++++++------ > drivers/pmdomain/mediatek/mt8192-pm-domains.h | 112 ++++++--- > drivers/pmdomain/mediatek/mt8195-pm-domains.h | 199 +++++++++------ > drivers/pmdomain/mediatek/mt8365-pm-domains.h | 197 +++++++++++++++ > drivers/pmdomain/mediatek/mtk-pm-domains.c | 157 ++++++++---- > drivers/pmdomain/mediatek/mtk-pm-domains.h | 51 ++-- > .../dt-bindings/power/mediatek,mt8365-power.h | 19 ++ > include/linux/soc/mediatek/infracfg.h | 41 +++ > 14 files changed, 972 insertions(+), 446 deletions(-) > create mode 100644 drivers/pmdomain/mediatek/mt8365-pm-domains.h > create mode 100644 include/dt-bindings/power/mediatek,mt8365-power.h > Applied for next, thanks! Note that while applying I amended the patch-prefix for patch 2->8 to "pmdomain: mediatek:", please try to conform to this when going forward, as it help me to better filter emails. Kind regards Uffe