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 9B170C05027 for ; Fri, 10 Feb 2023 12:04:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232116AbjBJMEe (ORCPT ); Fri, 10 Feb 2023 07:04:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231540AbjBJMEa (ORCPT ); Fri, 10 Feb 2023 07:04:30 -0500 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93DD71A8 for ; Fri, 10 Feb 2023 04:04:29 -0800 (PST) Received: by mail-wm1-x32e.google.com with SMTP id f23-20020a05600c491700b003dff4480a17so5330136wmp.1 for ; Fri, 10 Feb 2023 04:04:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=NW4lRb3x8TNx1Gls/PFO5RtEAOnWrB+KO6v1IvaIkD0=; b=Yyf32YWMAGugyXZbUISG33prMvfHLEuWa0TtwnHpvxxHUhIT/hGEUBqWF6KpoP8b/I 7uLPmVphkaPQoAmju5QEXmhqo5AxV3E0BUbyILPOjN0StI+FWfuzamFwMyg6jHVeelAQ lUBY+bwoD2Ry4LqyC828TuR10CXJC9Soj4I1EcQ+YY94HGIIfTyUiqb/rI8Y7j1AXhrg GgytlqlCkNFSSMTX6ZP6uZV72dl8jCvlXAJQCgCjVqkaA3YE4nNtz4a/yISwczMML1z9 HkRpIe0SWCU7CoL5ZqPofr0Dw09eXiG6xA5wI2ntdtGR3OeamCFthW15aTpjHzI/Ytcb sv7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=NW4lRb3x8TNx1Gls/PFO5RtEAOnWrB+KO6v1IvaIkD0=; b=VdbOL9EedmGez+7X2zar7dJNSaMJREnOuxdZyBETr92RDUZwfzOL+uHo2qBN23vPq0 tKUSWUmTReEcVKZmEdTfTT3g6z2jHUZ5KzMGbY6lUvuvuSrPRae9O1PxyzpacGhnelzL SRUsgN7E31dIuqg4IyseZ2MYVnLUl7YzOtC5p+wGD/uGNuOrf5L3ThjclggdbLtXTB9o 5jt0crqRODkWHsuYWrGA4eUvSO9GFH7u+BaCgW2t4wbu4Ksk4d6Orn/HU5mHG39FN+9r QoMfd9Gq0rznbMX3SdK4qqfWo7KiFEZvL5LHOVGN2Eo5eGXFjzRdqpnuGumQC4+BToxH ENnw== X-Gm-Message-State: AO0yUKUmgTKfpdrw8xq0h1K8zvcoHvflMA0G8L9eqU/YnQATNvWU9pxn juYdDGrW3QF1qqgt+0NeNF3j2w== X-Google-Smtp-Source: AK7set/mbNck+O74h+wNhQp30sLJ/+Jmho6eC2OYjrXdjxbmlhLi9yt7MySqAkMzWTXJLPVJT14z2A== X-Received: by 2002:a05:600c:43d2:b0:3db:3e8:feca with SMTP id f18-20020a05600c43d200b003db03e8fecamr1887994wmn.15.1676030668173; Fri, 10 Feb 2023 04:04:28 -0800 (PST) Received: from [192.168.1.109] ([178.197.216.144]) by smtp.gmail.com with ESMTPSA id j37-20020a05600c1c2500b003daf6e3bc2fsm13251783wms.1.2023.02.10.04.04.25 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 10 Feb 2023 04:04:27 -0800 (PST) Message-ID: <6a87b6b7-2059-3b16-b592-ba2ac6e0e4e0@linaro.org> Date: Fri, 10 Feb 2023 13:04:24 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 3/3] watchdog: mt7621-wdt: avoid globals and arch dependencies Content-Language: en-US To: Sergio Paracuellos Cc: linux-watchdog@vger.kernel.org, wim@linux-watchdog.org, linux@roeck-us.net, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, arinc.unal@arinc9.com, tsbogend@alpha.franken.de, p.zabel@pengutronix.de, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org References: <20230210065621.598120-1-sergio.paracuellos@gmail.com> <20230210065621.598120-4-sergio.paracuellos@gmail.com> <21af8c63-f489-8c3f-e1e3-cf976b1d20d0@linaro.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/02/2023 12:35, Sergio Paracuellos wrote: >>> - mt7621_wdt_reset = devm_reset_control_get_exclusive(dev, NULL); >>> - if (!IS_ERR(mt7621_wdt_reset)) >>> - reset_control_deassert(mt7621_wdt_reset); >>> + drvdata->sysc = syscon_regmap_lookup_by_phandle(np, "ralink,sysctl"); >>> + if (IS_ERR(drvdata->sysc)) >>> + return PTR_ERR(drvdata->sysc); >> >> You claim in commit title that you remove some global usage, but you add >> here several new features and refactor the code significantly. You need >> to split refactorings, improvements from completely new features. The >> entire patch is very difficult to understand in current form. > > I am removing global usage and architecture dependencies using a > watchdog driver data structure so I thought the changes were easy > enough to review in this way. It seems they are not according to your > reply :). If preferred I can split this in two commits: > - Avoid globals using and introducing all the related new driver data > structure. > - Add request for regmap syscon from the phandle and remove the > architecture dependent calls and includes. > Yes, such split sounds better. Thanks. Best regards, Krzysztof