Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7946835rdb; Thu, 4 Jan 2024 12:55:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IGQ3fsXDEtHotJcZKy+xm9etn6j8m0riWzvPNKgwx0qZcW3GzKN9UP7ZVWGW59pvb8DZo3I X-Received: by 2002:a05:6358:260b:b0:175:5f:7976 with SMTP id l11-20020a056358260b00b00175005f7976mr1339068rwc.24.1704401715484; Thu, 04 Jan 2024 12:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704401715; cv=none; d=google.com; s=arc-20160816; b=WVoxA/h78d5WwIxXIFWKFf7fREg07t6z1cEc9NlfkbPzBia/MsBFPHSLNp6Aq8G8gw 99HH3PVScJuxKYD6AoDEwsKtwUrX5lCmUkvR+GLlAxbBlL0n0Aijo4x687w5Xv7fy61v zOfDih77F99ZdZx8rw2ShJykz6XfNnkjP4Z3iPT7uSlP/f5qYxKj8KLwORBi1zAtnYaV vCv8U2SnlrqKRMmGwZHrkQ4Or0ruIPb4I7u6hL9sFOJ+dmZ4tKGABNbIR+cUGYwhjctF AVWpE2xGLPKRqyHxfszUhUzOu6Wt2mV+UH0QZoU6JdnwxB4j171SYOsvGVQQnGehMMvu wI5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:ui-outboundreport:references:in-reply-to :sensitivity:importance:date:subject:cc:to:from:message-id :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=y8VEB6HQwXm6DpR13vmV738GQxZIvcC/gBFklT6JV8w=; fh=37xHcgGcj0SuKYWQgL8rSI9UMxpi0Qn8zsFbP9k+2Mc=; b=DE5JU4wnNcKDD+24C+y66Q5lmRt9b8OJfUKvvn6XFH+mz0YvhMnxyHNu/J06VZZlmM 1MAiCZ7O0svFyLvLvRh6lpVDbuyghOYSxpa9vTEyoda8YSlcMNWPV5JfF5ZkWp4pSZa+ hTSEg8OOzK2TKhEqX5n1TEnSbFQQFnXLpmyNIpEn+3DqKoRlzkizZPl2jUBBiFwbHhwb jduHTQkSBWn5kpU82wBzSUGc/wZiEP+VxZ9rf7UBfclIbNmtXicj6Z6ZPMNvlZRSRsW8 g7lu7U+bTXSCRa3Ehi7Gu+blgRJ/vnnDflnUitjDCr/dNbHmilL15PCI9BDrSnYKIWVv zy6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=CS2ViA3A; spf=pass (google.com: domain of linux-kernel+bounces-17209-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=public-files.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id c13-20020a65420d000000b005cdbf27fdd1si145636pgq.684.2024.01.04.12.55.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Jan 2024 12:55:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-17209-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@public-files.de header.s=s31663417 header.b=CS2ViA3A; spf=pass (google.com: domain of linux-kernel+bounces-17209-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-17209-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=public-files.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1BF02287BBE for ; Thu, 4 Jan 2024 20:55:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4561A2C1BA; Thu, 4 Jan 2024 20:55:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=public-files.de header.i=frank-w@public-files.de header.b="CS2ViA3A" X-Original-To: linux-kernel@vger.kernel.org Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECA7F27451; Thu, 4 Jan 2024 20:55:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=public-files.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=public-files.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=public-files.de; s=s31663417; t=1704401681; x=1705006481; i=frank-w@public-files.de; bh=SKkSJVBzIOnKnn+RMuSC3/60nyMBWnquf6LcANeBPSQ=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To: References; b=CS2ViA3AGo92P0jwir5NIAVAgbg6yV/+1DM8ORA/rlVp8n/46+3FpFHhG3b3oDXu cuSQfVCACQpt2XO/1SIKwDEWf8+7CXPyh2g51AhADAaEvRJspB7C9dMZugSvCx/wf dqOleA4miuHaV7LzdRjZ9MKoVxTNTZGgApFdXmf50Y6MR9SnlCd7CODPj+0V8YkO1 jDaGg8yPxeZaVhMLxmhx3QwSsT5lbLMbZITqKwUvMOBjnEBCk9zGSxCE7OSbS1p61 dRMtq3jhAdQtWjyMhFbUgyqCmTzbWZfjCjH4g+eBuemcngs/5pLg69kRRCA8ejRWi xcCEOwOsEdcaW/DCCQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [157.180.226.237] ([157.180.226.237]) by web-mail.gmx.net (3c-app-gmx-bs29.server.lan [172.19.170.81]) (via HTTP); Thu, 4 Jan 2024 21:54:40 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: From: Frank Wunderlich To: Krzysztof Kozlowski Cc: Daniel Golle , Frank Wunderlich , linux-mediatek@lists.infradead.org, Michael Turquette , Stephen Boyd , Matthias Brugger , AngeloGioacchino Del Regno , Philipp Zabel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Sam Shih , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org Subject: Aw: Re: [PATCH 1/2] dt-bindings: reset: mediatek: add MT7988 LVTS reset ID Content-Type: text/plain; charset=UTF-8 Date: Thu, 4 Jan 2024 21:54:40 +0100 Importance: normal Sensitivity: Normal In-Reply-To: <3e3455a1-c540-4323-9d9d-95289a395c3f@linaro.org> References: <20240104173930.13907-1-linux@fw-web.de> <20240104173930.13907-2-linux@fw-web.de> <3e3455a1-c540-4323-9d9d-95289a395c3f@linaro.org> X-UI-Message-Type: mail X-Priority: 3 X-Provags-ID: V03:K1:ZLdxy+zk76HP1t6Fqt05SLqZ3emcYLI8IAqKeFvSrgvBnnBbjqewMQxqbTy69hsc+QjMq lffypJx3P8BsU3PPzXiNZ5iojUA+7zknLAIk7XF3U36Z+N7bEAwaU2K1eV7NAKq7kmSd4mpUPK+T vDzWopQ/zM2pdfMPWYpXpoCVWNC9FZ11a6/jlaAyfC76iBU43/oW6nF4ftAFkpAuDk1VQifJsRRt /DPKTi1eHs5BVsIJjmVGcHVGXxFgQAf+CLejc8zBq1p4omlNorq+qAWl9EbZnCR7WpMLsaSSMCrg eA= X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:tB+ieJbTebQ=;0WICBO5JQdiX9M3vSS+T9ckm3a9 bGtqXX18GHN6TYSLML7cneFFD2QCV0i55WJmMuU6C3NnsZzm7XZGNPSL2fVmEnaarxkfVGXtH u0nyxo+FCXPVprhuYZwKluLsQBI3+AXoNTKEC1lxjGM4TAqbZdgH/dudmrYqXpk41uBE9I7az 28FsvUElYvWBgGO3d4PSJIV07+q+uNKtXYoVq0WXrDRc7Lv/Q9dVYqrqkS0aOU+htULnJ7gnC W4vYjamfWlb1Y5LFMNu5YnNeMTNB6frj+XOUNOB7mjf2rz1sMJWg/sKW6xDIkO0kFrtCm5k1a F11TBoh2WrGmunSRhCxHPFEQGJrFQ8B412mqr5ubbuLZ2GCk9dtUuen9PapKyofzttvcPrQpw j43qPTxTVd8R1zxscAxHJpb/ivgBL8Mqj69QbRe4ldLrHCwG9yQKJrAIu9jVR4UMg2vqkcj5L MW7ijNCAOaO7maqwa9Ab3t80RzVf5gR0ljoMBy6yT0dKFAJdpaVsTXC2FrNMZB69CkB2oZvBo gg15EsOhF7obUIWzF9KufGYYGe450auwNceaiXv6HkQkER69bQ0Tu+sa5Aqwi7iUWKM5Xmdcb oIQIk0KRkBriUvzo9BohB5dUnA4bO/Hz6B8OkZGDra9DdSQJEuz22LiDCotNZpdcmvmVl0zXS UX33TFUhPKS+oQYZPEzeiXoZ075J/2FfTS/iCboU/HXZCuIlgNIY6oYNRD1MYIzyz8+axCWPZ N1f6B/PcyoF1JfUlNwKCQc78IOgdR2C7ZopRmhPBJTDir9ozPjav8PFHiwGrD6Hbw9JOFQR00 VTrNtPB/zjBe/yMvvEQ7lLkyiSPb2CATLh6gaNXrFcPOk= Content-Transfer-Encoding: quoted-printable Hi > Gesendet: Donnerstag, 04. Januar 2024 um 20:19 Uhr > Von: "Krzysztof Kozlowski" > Betreff: Re: [PATCH 1/2] dt-bindings: reset: mediatek: add MT7988 LVTS r= eset ID > > On 04/01/2024 19:12, Daniel Golle wrote: > > Hi Frank, > > > > On Thu, Jan 04, 2024 at 06:39:29PM +0100, Frank Wunderlich wrote: > >> From: Frank Wunderlich > >> > >> --- > >> include/dt-bindings/reset/mediatek,mt7988-resets.h | 4 ++++ > >> 1 file changed, 4 insertions(+) > >> > >> diff --git a/include/dt-bindings/reset/mediatek,mt7988-resets.h b/inc= lude/dt-bindings/reset/mediatek,mt7988-resets.h > >> index 493301971367..3f1e4ec07ad5 100644 > >> --- a/include/dt-bindings/reset/mediatek,mt7988-resets.h > >> +++ b/include/dt-bindings/reset/mediatek,mt7988-resets.h > >> @@ -10,4 +10,8 @@ > >> /* ETHWARP resets */ > >> #define MT7988_ETHWARP_RST_SWITCH 0 > >> > >> +/* INFRA resets */ > >> +#define MT7988_INFRA_RST0_THERM_CTRL_SWRST 9 > > > > I suppose this argument applies here as well: > > > > "IDs should start from 0 or 1 and increment by 1. If these are not IDs= , > > then you do not need them in the bindings." > > > > https://lore.kernel.org/all/59629ec1-cc0c-4c5a-87cc-ea30d64ec191@linar= o.org/ > > > > As a consequence, as what you are describing there are hardware bits > > If this is existing driver which already uses such pattern, then it is > fine. I usually comment this on new drivers which can be changed. this is a new driver so i guess i should change this like daniel suggests. As i want to use this constant in dts and driver i would like keep it as b= inding in the reset header, but because i use it only as index in the infra_idx_map array its value do= es not need to have the value needed in hardware. i kept it same to not have different values and for or= dering purposes (when the other possible resets are added). so the way starting at 0 will be the preferred one for me, is this ok? regards Frank