Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2393753rdb; Mon, 20 Nov 2023 09:34:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IH/8IQYH2EWRQvwvttG5NE5TM4GCrFc8EiqtLXDbh/BXYJE5q47U5K9QlVVb1HWLEhukrqL X-Received: by 2002:a17:902:e74c:b0:1cf:67e0:8904 with SMTP id p12-20020a170902e74c00b001cf67e08904mr1890219plf.43.1700501694908; Mon, 20 Nov 2023 09:34:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700501694; cv=none; d=google.com; s=arc-20160816; b=dVvRVh63rTr1l3oLSJXlvkiDUm/nAUsXXksLw6eNX3YsXj8WwAUkd6zfcNCJnLIzAS 7bSAuV6ouBjhgzvtyTrn9UQoDcCmPtz3SPc9pwkwWnLtuaEPzbl95uPOTDLIPw63Mspg MPUnwB8gz3mw+Q1/cq9zyeciZZj17kaAiY6idCTrSrDJefyyI1YPSRbaesn55IXYxQg2 r6kQVDAfVA7jeymUwBXo5rhpiT+j8Yp3lvjGl824GtCxZMlbI/sPLcjlnOlbEmohwrho jEPv5pHU1yV4Anr6WEkpZCO7iaEtX0Q8DVTOjxZybo+9vZDOgPuh4U6cri09CImeTAzX wBVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=wvb5F+BXAEfWD+5XFrgTY12VaeoW/tInaqYzAJp7Lgc=; fh=Aw8zL5vn+QeaFweljW97ivM0Zgp62wYZLW/TPYJwVZ8=; b=ZUdUNwMbf34dyPYyu/Kuke9xQc3rHLdH+pF5NDvNZJhX7IAGRE2ltax9UaN9cuw4Tg XwiMWqaNTu1uhA6NnHWYo1LO+D+Wj+ZG9fyu+skjeEuIKqpCUoCKSMpPlAPXhEUZEWxE oTDDM8hQinE0NL3hGkgUIWvs7YDJSH4EXQm/R4+eC94QttuS6BnDH6l4uVGMYPYfDlhn 0DrLPK9usjL46+MXTtqphe1n2xTzz7WJV42i4TgYlw1aVyTetjQu4TPum3eCo5ILJdGf 3rZr0zfrgwdMhNfBWa39/D70kxd3ckCeetxwix2zJ77fycuNjRrWu1l7jEw013+fdgEk //JA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id y20-20020a1709027c9400b001cc0fdbea2asi8083929pll.142.2023.11.20.09.34.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 09:34:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 9416A80A90DD; Mon, 20 Nov 2023 09:34:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232547AbjKTRd5 (ORCPT + 99 others); Mon, 20 Nov 2023 12:33:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbjKTRd4 (ORCPT ); Mon, 20 Nov 2023 12:33:56 -0500 Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91D8B10C; Mon, 20 Nov 2023 09:33:51 -0800 (PST) Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1r589X-0008RA-0O; Mon, 20 Nov 2023 17:33:44 +0000 Date: Mon, 20 Nov 2023 17:33:41 +0000 From: Daniel Golle To: Guenter Roeck Cc: Wim Van Sebroeck , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH v3 2/2] watchdog: mediatek: mt7988: add wdt support Message-ID: References: <4d7db8786dce35273db516f3d41228bc27a08fe9.1699980962.git.daniel@makrotopia.org> <3f5ed9656ea66637d259e9771ed852511369ba9b.1699980962.git.daniel@makrotopia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,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 groat.vger.email 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 (groat.vger.email [0.0.0.0]); Mon, 20 Nov 2023 09:34:40 -0800 (PST) On Mon, Nov 20, 2023 at 09:19:46AM -0800, Guenter Roeck wrote: > On 11/14/23 09:04, Daniel Golle wrote: > > [...] > > @@ -89,6 +93,11 @@ static const struct mtk_wdt_data mt7986_data = { > > .toprgu_sw_rst_num = MT7986_TOPRGU_SW_RST_NUM, > > }; > > +static const struct mtk_wdt_data mt7988_data = { > > + .toprgu_sw_rst_num = 24, > > Kind of odd to have this defined locally, while the others are in include files, > but not worth arguing about. From I have just learned from Krzysztof Kozlowski those headers shouldn't even exist in first place, as the listed IDs are not actually referenced anywhere in the driver, hence they aren't actually bindings [1]. Quote from that thread: | >>> Where is the driver change using these IDs? | >> It isn't needed as the driver doesn't list the IDs. [...] | > Then it is not a binding. --- Now that they do exist it's too late to change that for everything already existing, I suppose. However, it also doesn't seem like adding such a header for MT7988 as well is going to be acknowledged, hence we will have to live with the inconsistency in the driver in which older SoCs will obtain the number of resets from a macro in their respective dt-bindings header while newer SoCs won't have such header and hence it will have to be defined in the driver itself (as that's also the only place where that number is being used). > Please make it a define at the top of the file, though. Ack. Will do. [1]: https://lore.kernel.org/lkml/6912f6f406bc45674020681184f3eeca2f2cb63f.1699576174.git.daniel@makrotopia.org/T/#ef01d7efc6c4fbf1d4830bafe7c90e39746939671