Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp27482884rwd; Tue, 4 Jul 2023 03:43:23 -0700 (PDT) X-Google-Smtp-Source: APBJJlGvVZ1k1On4/DSheXB3thNe9kytpxamQsvhCKOtKBMRDfZRbwHwKK9PdivKofOO5CD0ij3R X-Received: by 2002:a05:6a20:4327:b0:12e:6e0f:535 with SMTP id h39-20020a056a20432700b0012e6e0f0535mr7722552pzk.34.1688467402856; Tue, 04 Jul 2023 03:43:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688467402; cv=none; d=google.com; s=arc-20160816; b=zMk9azDOb52HS1nkNMU6slMnPjt5RBq/l8CgWLWhFnwVZSuOnypW2+mzJ0NFIYfOjm OE02EYLNVws5rqFDNwwxoFMK2Jn2kmpirB2wn9+1nsPm4oOWG+SuAOKHO6OAhKnV+AfS w8J/2gYU61PpbXG/kLksLzJKCVyHqJHxFxo+84eNCFQnyQRTgjqnyAyPIdRt7VYuuirX /WSm232SHN7Vq7QzrPrC0mcRkv2iMBD6XWmu7kLlUHJLTZ094B+wJwOknGO5IxfIxQmO ttjASudv0VBz2n8GrUruUGEgxoPekYWeo85iea81j4szDAvs7SzzczWSgfQU+vkxor2q fztg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=hOMRbZ6yDwxQAJFFFz623eGeVCek8/odUsT8EUUH24M=; fh=W85sLlvXJRRylWyY+mPzeRA607A5kReTIExGbw8AbxA=; b=V1hXpf1usCA5k//CSlg/MeNcr5GIkmkztnV/4GhuQFZIJQfP5AWg0xBlR1oW01wKNe v0jgu5RqIj9fIo9EwI3XjlS51k2r5X+/zOU2a0VQlxiYWT3d8sNhc/SUYd/uAT8F+/65 qwiPJlJSYME1UxEx6bUO6N+TrDBJM7bseY7D+XwUfcfwG3hTX7Y8jecK6s3UjafMCH7G WNmKre1WzUEw7wN46VFxjXUV8P0OY0JxX9VvL/TrUAAysQtfPL6jLU8NSDd1aaCuAgcY ImpFLT1XNj6rhyiKEYlrAahUrKF45WdNPL4Qms8wJ2CX1sZ73F/Jo0tI7pSb8KFW5bKk buTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=hcWpx0XM; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d13-20020a170903230d00b001b886a0c366si6088663plh.122.2023.07.04.03.43.08; Tue, 04 Jul 2023 03:43:22 -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=@collabora.com header.s=mail header.b=hcWpx0XM; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231750AbjGDKba (ORCPT + 99 others); Tue, 4 Jul 2023 06:31:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbjGDKb3 (ORCPT ); Tue, 4 Jul 2023 06:31:29 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32058139; Tue, 4 Jul 2023 03:31:28 -0700 (PDT) Received: from [IPV6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2] (unknown [IPv6:2001:b07:2ed:14ed:c5f8:7372:f042:90a2]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 406596606FA2; Tue, 4 Jul 2023 11:31:26 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1688466686; bh=Mai929iZ41GcGRysmlxemjrjq50/MXj16H+6IYgJcRw=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=hcWpx0XM5qWmyjcj+qQe1zQiXqiwfJUzWdAkNHKVqwLQeJT0NdMqlPHiMPDg4G1UK K/oFTC5LsPZpp2P5wS/22k0VlAr+2RgDAcVNERXPj+s79uxehRB5tLKbkP3CbDJuuC S5UodAbBffIY0ajXMSD1XOyq17E0qZa4fKQGAcA0mMUV/3T2MPEJXWWqtBb8YHZTEz tmICOF2axJuCgrq0kodW2m/VM9YgToa7TDK9515vvucIF68dW1rr4FkC1s78ffHmy8 NQkxOBKCZ4iX8enKEInOykgd6PEc3fbuBdPau22u3e34lRk7UiLy2V0GshpHwaEalg COgAwMxE+R/AA== Message-ID: <85ce05db-5392-79e0-1183-b40db641f3ae@collabora.com> Date: Tue, 4 Jul 2023 12:31:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v6 8/8] soc: mediatek: pm-domains: Add support for MT8365 Content-Language: en-US To: Markus Schneider-Pargmann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger Cc: Chun-Jie Chen , Tinghan Shen , Fabien Parent , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Fabien Parent References: <20230627131040.3418538-1-msp@baylibre.com> <20230627131040.3418538-9-msp@baylibre.com> From: AngeloGioacchino Del Regno In-Reply-To: <20230627131040.3418538-9-msp@baylibre.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Il 27/06/23 15:10, Markus Schneider-Pargmann ha scritto: > From: Fabien Parent > > Add the needed board data to support MT8365 SoC. > > Signed-off-by: Fabien Parent > Signed-off-by: Markus Schneider-Pargmann ..snip.. > diff --git a/include/linux/soc/mediatek/infracfg.h b/include/linux/soc/mediatek/infracfg.h > index 07f67b3d8e97..f853397697b5 100644 > --- a/include/linux/soc/mediatek/infracfg.h > +++ b/include/linux/soc/mediatek/infracfg.h > @@ -2,6 +2,47 @@ > #ifndef __SOC_MEDIATEK_INFRACFG_H > #define __SOC_MEDIATEK_INFRACFG_H > > +#define MT8365_INFRA_TOPAXI_PROTECTEN_STA1 0x228 > +#define MT8365_INFRA_TOPAXI_PROTECTEN_SET 0x2a0 > +#define MT8365_INFRA_TOPAXI_PROTECTEN_CLR 0x2a4 > +# define MT8365_INFRA_TOPAXI_PROTECTEN_MM_M0 BIT(1) Personally, I like this kind of indentation, but more like #define REGADDRESS #define REGMASK instead of #define REGADDRESS # define REGMASK ...but this doesn't count, because this header doesn't follow *either* formats, not my preferred, nor yours: this means that, for consistency, you have to follow what's in there already, so you have to change that to #define REGADDRESS #define REGMASK ...so please change that to retain consistency across the infracfg.h header, after which: Reviewed-by: AngeloGioacchino Del Regno P.S.: I'm sorry for not noticing this in v5. Cheers, Angelo