Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FDDFC6379F for ; Tue, 14 Feb 2023 08:13:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231868AbjBNINh (ORCPT ); Tue, 14 Feb 2023 03:13:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231848AbjBNINc (ORCPT ); Tue, 14 Feb 2023 03:13:32 -0500 Received: from sender4-op-o14.zoho.com (sender4-op-o14.zoho.com [136.143.188.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A95D6A2; Tue, 14 Feb 2023 00:13:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1676362386; cv=none; d=zohomail.com; s=zohoarc; b=Vg+KkvSE1Q4h5uimmkMSFwBFN5CcbI2ZXzjU9SKfbMrHGPtA461JxV9Z+fWW/Xpz/idOzRKLikhyMPqVbJpX9ZzTd2aWbFwyT9AjZp46Dk3At5fTE7gAA8upN+epM2T6q+OXGIYpuNY6OVaGOEHvWenhGNrIaQmZJPuvVkGz17M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1676362386; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=NskobE/rXbBO+Ougb2rCV04zc3QSaKJWvU/CQhEJ/So=; b=F+umUONqO/dRdoVwkb9bk9DnWH38viTbwHJLhdbxyCrYGGfN4LRZD9K7ySAMgFmqKsmVMfo9TltsIXPSM5dluiYNNxmQtyfsg3wMjeMJPVQdhmUQachJhTljaQ2vjGbW7Kkm9dS0uOamsFtcRsdeF6xSE6TFWQ/99p/HNCVr4ao= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=arinc9.com; spf=pass smtp.mailfrom=arinc.unal@arinc9.com; dmarc=pass header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1676362386; s=zmail; d=arinc9.com; i=arinc.unal@arinc9.com; h=Message-ID:Date:Date:MIME-Version:Subject:Subject:To:To:Cc:Cc:References:From:From:In-Reply-To:Content-Type:Content-Transfer-Encoding:Message-Id:Reply-To; bh=NskobE/rXbBO+Ougb2rCV04zc3QSaKJWvU/CQhEJ/So=; b=jtOEsv+jDCSfI9MnE+zwfXtRcpimDCNlFtESrf36UDAORbwqaRO9tXjPn+10H6zy BdkOX01Z45hz5W4P3De2oHf9owSEJYKWYnF8PpvM+yDaDUXoDg3DNiCWMopa7VmlWqN OJGTi5PsdaDSxiWgbYRafYwPc9Bffp1DCOOg7qyM= Received: from [10.10.9.4] (37.120.152.236 [37.120.152.236]) by mx.zohomail.com with SMTPS id 167636238279263.948048697020226; Tue, 14 Feb 2023 00:13:02 -0800 (PST) Message-ID: <7bff7c46-ed03-ba7d-6a88-f94dfd0cb1a5@arinc9.com> Date: Tue, 14 Feb 2023 11:12:50 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v6 0/3] watchdog: mt7621-wdt: avoid globals and arch dependencies To: Sergio Paracuellos , linux-watchdog@vger.kernel.org Cc: wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, tsbogend@alpha.franken.de, p.zabel@pengutronix.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org References: <20230213200519.889503-1-sergio.paracuellos@gmail.com> Content-Language: en-US From: =?UTF-8?B?QXLEsW7DpyDDnE5BTA==?= In-Reply-To: <20230213200519.889503-1-sergio.paracuellos@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ZohoMailClient: External Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13.02.2023 23:05, Sergio Paracuellos wrote: > Hi all, > > This series make an update in the MT7621 SoC's watchdog driver code. This > SoC already provides a system controller node to access reset status > register needed for the watchdog. Instead of using MIPS architecture > dependent operations in header 'asm/mach-ralink/ralink_regs.h' get > node syscon regmap using 'syscon_regmap_lookup_by_compatible()' and use. > regmap APIS. Driver is also using some globals that are not needed at > all if a driver data structure is used along the code. Hence, add all > new needed stuff inside a new driver data structure. With this changes > driver can be properly compile tested. > > Thanks in advance for reviewing this! > > v1 of this series here [0]. > v2 of this series here [1]. > v3 of this series here [2]. > v4 of this series here [3]. > v5 of this series here [4]. > > Changes in v6: > - Get regmap syscon using 'syscon_regmap_lookup_by_compatible()' > - Add COMPILE_TEST and dependencies to Kconfig. > - Collect Philippe Mathieu-Daudé 'Reviewed-by' tag for watchdog node > warning fix. > > Changes in v5: > - Drop patches related with device tree ABI breakage and only > maintain the rest. This makes me regret taking mt7621-dts out of drivers/staging. Clearly there were improvements to be made on the MT7621 drivers that would affect the devicetree binding. I don't think one would bat an eye to make dt-binding changes on a devicetree on drivers/staging. I also want to make a similar change that would break the ABI. I want to split the MediaTek MIPS (currently called Ralink) pinctrl subdrivers further, namely mt7620.c, to split MT7628/MT7688 pinmux data from MT7620, so I can properly document which function can be given to which group(s) for the MT7628/MT7688 SoCs. This means I've got to introduce a new compatible string for the MT76X8 SoCs which would cause the pinctrl driver to stop working with an old DT for the MT76X8 SoCs. By the nature of the change, I can't make a way around with the code like Sergio did in v6. Arınç