Message ID | 20230918093751.1188668-1-msp@baylibre.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp2746380vqi; Mon, 18 Sep 2023 08:31:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmAigjuzmJgiTkTjQ6dWhVF4Wn0Y2LWp7S1CDA8AA5nH+MmuBdkislYdByVu8ZGtb/cBY/ X-Received: by 2002:a17:902:db03:b0:1c4:2ca5:8b7c with SMTP id m3-20020a170902db0300b001c42ca58b7cmr8709376plx.61.1695051083986; Mon, 18 Sep 2023 08:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695051083; cv=none; d=google.com; s=arc-20160816; b=EcVzOENKO2QF6uFkdKIqo4gDO8UOVdSmiT9Kle43LLpiZR/PdQJ2Ps70PBOhErZRRn N12zeeBVI4uoqHi58+tc0kVas0/sJi+eiDBlcSVbyWY7cnKGPt5ut+a9W0X3BJ7b+e+6 8IarhzBfuJIoY/UlWAwfeLJEtYvLeenkhEm+IECM8sPvyZDVB/W/SxpJ7YLC/SeGyUJs iIcp0o6RakneNcVvBIBRGpu0mI9gSjEjSrBWq1SAc9u4aVkCGPogVqmDctGGj1qGzodr kGT22bH+kVwYxkUbdj7qMMNyQjVA5DNYhQbDcJBHnHusaNPVdeX3ErdG6dF90i+nE4SA R7Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7qMynowtM6sO6WhIunL19I1lsaUMnQPIdw7sq9xV6Eg=; fh=RUoqLuZuITlmATQNBnxyoemQD0RKvHH0dT8r5B4O084=; b=ouA62FhYYnlOda5FoDR/O52HpCtXyoGsY6wO+St2Snhmf2YCj76898Alm6iq0jLJpw 3IbHHyzTLlWVOYdYykY9Ja6uVwULkgXnUHqnTXB3wWuYf/JJIb0rUFbSrVBYf2WGtKP6 DZ64AiH1ce0Rjcf5B1hNtHGzPOozvuwOPUf6hVtk6jbqi6yW41rhf09ejnVv5DTLHXDI 5unHkuxujPmloFkWrnlV72bAn6uWmH3NDn3gwDKrNZAKgQmFuU2/A2SEEjGqxb4ENk1t RXnhp9XTAmK/OlSv6grLMbwsOrYGuIauKeqRPZywGXNAsb7DnlZ1tHt2Hx9ypi7QBuQJ xjAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=Y0bwdr9U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id y10-20020a170902b48a00b001c3a05b0b58si8030903plr.500.2023.09.18.08.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 08:31:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=Y0bwdr9U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id F1696805A794; Mon, 18 Sep 2023 02:39:18 -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 S240979AbjIRJiz (ORCPT <rfc822;kernel.ruili@gmail.com> + 27 others); Mon, 18 Sep 2023 05:38:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240916AbjIRJi2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 18 Sep 2023 05:38:28 -0400 Received: from mail-lj1-x22d.google.com (mail-lj1-x22d.google.com [IPv6:2a00:1450:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7333D116 for <linux-kernel@vger.kernel.org>; Mon, 18 Sep 2023 02:38:20 -0700 (PDT) Received: by mail-lj1-x22d.google.com with SMTP id 38308e7fff4ca-2bfbd7d49e7so67879771fa.1 for <linux-kernel@vger.kernel.org>; Mon, 18 Sep 2023 02:38:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1695029898; x=1695634698; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7qMynowtM6sO6WhIunL19I1lsaUMnQPIdw7sq9xV6Eg=; b=Y0bwdr9UoMsxsIrPEDQuyq+Ahl+ss46DHE+tY488mJJGXfRjJ8FwZ0CcRppW2Bw3MH L4kuZa8vUvcqZXAhdq/b8xpUWsDxRh6tmvJdYOVqpm4Uzayo3DKFpcAUNVVjLnSG8+7V 8D7IIpu0Gkt4p6H9Z8NEj6sLiPtxZcVm6fs0WAwXtBjrRDyuLdbteJ8VnDNAr0xxrw+T dXC4HPKV3vZ6BBVgnq4iazhJ0QA+MGRo50z5b1dc0OVicRHDCEVcp5Dr7ihsHQsxeS3b S7Apr1Z+4bSbYqoldosPlX/u62zxBRzEO3DenLSNPljZdcpJuXdrmWPGSG0rEgQieLIR mbIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695029898; x=1695634698; 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=7qMynowtM6sO6WhIunL19I1lsaUMnQPIdw7sq9xV6Eg=; b=OeacfGyFZBqknpIaOpHaKMvl9azmoDcUT80ilMGeK5j1+pPQuHogrVTQN9otbRy1xe Qx3gRcZFSjHx2leQjTlD8kh5SV+ZHCbTa2WghNBpS9G91qRSPAZcgNASz89z2s7k5ckM a9KkakDne3gqCYnb/vXnouEGn9fAL7NhdcwoGtrZTlBDVlALLIWFoamtvU30Z+W6t4A4 xdI2uujkON0jY160UfMdFROm58PiEsTpVfgK7JazpriBUu0hCOEk2hLa4k+j8Xp9GEze xzFHycEuZ/v25dHJjdm0JXn1PkwGYBq68u2zlgYy8MCAqi6YC476UCj/7Di4hnPsKcXS uvZg== X-Gm-Message-State: AOJu0Yxkd2Hq77vPkcmdqwQw7iLZJ7lq19VVK2+m3pgKEP0Vqz77wzSq GosFI30hns2LQRssFhaJbq4MwQ== X-Received: by 2002:a2e:a41c:0:b0:2bf:7dc5:884d with SMTP id p28-20020a2ea41c000000b002bf7dc5884dmr6984504ljn.21.1695029897811; Mon, 18 Sep 2023 02:38:17 -0700 (PDT) Received: from blmsp.fritz.box ([2001:4091:a246:8222:872:4a5b:b69c:1318]) by smtp.gmail.com with ESMTPSA id o10-20020a1709061d4a00b0099293cdbc98sm6251164ejh.145.2023.09.18.02.38.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 02:38:17 -0700 (PDT) From: Markus Schneider-Pargmann <msp@baylibre.com> To: Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com> Cc: Ulf Hansson <ulf.hansson@linaro.org>, Alexandre Mergnat <amergnat@baylibre.com>, Chun-Jie Chen <chun-jie.chen@mediatek.com>, AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Tinghan Shen <tinghan.shen@mediatek.com>, Fabien Parent <parent.f@gmail.com>, 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, Markus Schneider-Pargmann <msp@baylibre.com> Subject: [PATCH v8 0/8] soc: mediatek: MT8365 power support Date: Mon, 18 Sep 2023 11:37:44 +0200 Message-Id: <20230918093751.1188668-1-msp@baylibre.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> 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]); Mon, 18 Sep 2023 02:39:20 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777389885279587501 X-GMAIL-MSGID: 1777389885279587501 |
Series |
soc: mediatek: MT8365 power support
|
|
Message
Markus Schneider-Pargmann
Sept. 18, 2023, 9:37 a.m. UTC
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 base-commit: ce9ecca0238b140b88f43859b211c9fdfd8e5b70
Comments
On Mon, 18 Sept 2023 at 11:38, Markus Schneider-Pargmann <msp@baylibre.com> 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
Hi, On Thu, Oct 05, 2023 at 12:09:06AM +0200, Ulf Hansson wrote: > On Mon, 18 Sept 2023 at 11:38, Markus Schneider-Pargmann > <msp@baylibre.com> 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. Thank you! Sorry, I will use that prefix in the future. Best, Markus > > Kind regards > Uffe
Il 18/09/23 11:37, Markus Schneider-Pargmann ha scritto: > Hi, > > no real changes in this update. Rebase to v6.6-rc2 and according change > of directory. Since the driver changed to pmdomain/mediatek, can you please change the commit titles for the driver commits? soc: mediatek: pm-domains: ===> pmdomain: mediatek: pm-domains: or alternatively, I honestly would like it more like pmdomain: mediatek: pd: and (not relevant to this series) pmdomain: mediatek: scpsys: ...but before that, does anyone have any strong opinions against the prefix "pmdomain: mediatek: pd:", instead of the full "pm-domains"? Thanks! Angelo > > 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 > > > base-commit: ce9ecca0238b140b88f43859b211c9fdfd8e5b70
Hi Angelo, On Thu, Oct 05, 2023 at 10:54:16AM +0200, AngeloGioacchino Del Regno wrote: > Il 18/09/23 11:37, Markus Schneider-Pargmann ha scritto: > > Hi, > > > > no real changes in this update. Rebase to v6.6-rc2 and according change > > of directory. > > Since the driver changed to pmdomain/mediatek, can you please change the commit > titles for the driver commits? As far as I understand Ulf applied the series today and changed the title as well: https://lore.kernel.org/lkml/CAPDyKFrUbWBQgMm6wYwFfybiRQKhBpwH7wwcXaT+KrQJLevq3w@mail.gmail.com/ Best, Markus > > soc: mediatek: pm-domains: ===> pmdomain: mediatek: pm-domains: > > or alternatively, I honestly would like it more like > > pmdomain: mediatek: pd: > > and (not relevant to this series) > > pmdomain: mediatek: scpsys: > > ...but before that, does anyone have any strong opinions against the prefix > "pmdomain: mediatek: pd:", instead of the full "pm-domains"? > > Thanks! > Angelo > > > > > 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 > > > > > > base-commit: ce9ecca0238b140b88f43859b211c9fdfd8e5b70 > >
Il 05/10/23 11:43, Markus Schneider-Pargmann ha scritto: > Hi Angelo, > > On Thu, Oct 05, 2023 at 10:54:16AM +0200, AngeloGioacchino Del Regno wrote: >> Il 18/09/23 11:37, Markus Schneider-Pargmann ha scritto: >>> Hi, >>> >>> no real changes in this update. Rebase to v6.6-rc2 and according change >>> of directory. >> >> Since the driver changed to pmdomain/mediatek, can you please change the commit >> titles for the driver commits? > > As far as I understand Ulf applied the series today and changed the > title as well: > https://lore.kernel.org/lkml/CAPDyKFrUbWBQgMm6wYwFfybiRQKhBpwH7wwcXaT+KrQJLevq3w@mail.gmail.com/ > Whoops! I didn't notice that, sorry! Cheers, Angelo