Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2952545pxy; Mon, 3 May 2021 11:34:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzzYRs4+0nObT53JasoCpg1Zkd4iPW2OO0igftwlQ/878vr6MHPRDv5mrTw7r0pxtaIsphI X-Received: by 2002:a17:90a:ce8b:: with SMTP id g11mr22313089pju.173.1620066866760; Mon, 03 May 2021 11:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620066866; cv=none; d=google.com; s=arc-20160816; b=uaG46q47M+q+vRV7kKfmrejqKLujuFpubSOiBsyZdNnWLhj66WiOLIC1tiIJ55Pjk7 9U+SYZbD9x4uhBxfkcONhTB70YXKEa/lBoVeIWshm6+bp+s3C8vcHz2FTsCfweiio98f p0zbVEKnRZWCLeeLQo9accRGgdrVYjRN/6guJJm6w6X9nlaY3MeWDDdwXw3iz8HlTQDo Kab/ADeFjU9O671RYcPshC/GOat/TAuxia+UbOKV8l/cnxL65ATN2lCNgEfUIgEE1jqB xZSpJhCrYewB32cLLe9tDZOzP1f5izWb18WXZXkjNmCvS6N8Gq5J6szoGT1W8+D2Wh0Y gvyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=oRkwx6Zs55X/o5GH198Bj1A3XCDp0BOp9wv0wfksi8Y=; b=dU2Rjx+dM2msBC+yMNVoap0GE1i7/4knXOw0qehM6TvvfzFNNhY/qTQMt3UFDpBByy Luv/8WRGVBRvrXFSbg8chih3JIaxcvcOtsk2e1dzFrckUC/NJHkMAY2WHHNboiJCJOeR 6Z65wp9EdDB5UNZW4GxoU142i7tFetS1qvOIdcPWmEewsXzANLdfoxus9fBbLWU9U/I/ tbaRbbXwAbPOCiuxzmAWJHlzyb0W4/YGv+cs3GOs4UY3kHZsPEHrdADOAcmwL5LjyHnz +gTlAwEkWPV2NLW0Pf0GmSrJaoIiRnyH0IghEGwF/8F/11cN3czOQyxrs9dJ54Jx+lwQ 8PCA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a22si453218pgw.510.2021.05.03.11.34.13; Mon, 03 May 2021 11:34:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229603AbhECSe2 (ORCPT + 99 others); Mon, 3 May 2021 14:34:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48648 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229594AbhECSe1 (ORCPT ); Mon, 3 May 2021 14:34:27 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91FB3C06174A for ; Mon, 3 May 2021 11:33:33 -0700 (PDT) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lddNr-0007v1-Fn; Mon, 03 May 2021 20:33:31 +0200 Subject: Re: [RESEND PATCH v3 2/3] watchdog: f71808e_wdt: migrate to new kernel watchdog API To: Guenter Roeck Cc: Wim Van Sebroeck , linux-watchdog@vger.kernel.org, kernel@pengutronix.de, linux-kernel@vger.kernel.org References: <35b474fa750fa11781509e94675fc90e28b2d514.1618310618.git-series.a.fatoum@pengutronix.de> <92b48338-4d9a-dc02-d8b5-198bd34c9f21@roeck-us.net> <9f326f40-08dd-ab2b-0a80-970d20c57d6a@pengutronix.de> <20210503152854.GA624769@roeck-us.net> From: Ahmad Fatoum Message-ID: Date: Mon, 3 May 2021 20:33:29 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <20210503152854.GA624769@roeck-us.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: a.fatoum@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Guenter, On 03.05.21 17:28, Guenter Roeck wrote: > On Mon, May 03, 2021 at 04:39:25PM +0200, Ahmad Fatoum wrote: >> Hello Guenter, >> >> On 03.05.21 16:31, Guenter Roeck wrote: >>>> -static struct fintek_wdt watchdog = { >>>> - .lock = __MUTEX_INITIALIZER(watchdog.lock), >>>> -}; >>>> +static struct fintek_wdt watchdog; >>> >>> This should really be allocated, and "watchdog" is a terrible variable name >>> even if static, especially given the previous patch. >> >> I can add a follow up patch to change this. I maintained the old >> state of things here to make review easier. >> > Odd argument. You changed all the function names (unnecessarily, > if you ask me) in the first patch of the series because they were > too generic in your opinion. I find it surprising to have a function called watchdog_set_timeout defined locally in a driver. But yes, the first patch was more useful in v2, where new functions were added for pinmuxing each variant. Having f71808e_ for generic code and f8186fg_ for a variant would not help code comprehension. > That by itself added a lot of unnecessary complexity to the review. This was not my intention. I figured having a separate patch that just does the rename should make review of follow-up commits easier, not harder... > And pretty much everything else changed > in this patch anyway. Feedback on v2 was that I change too much and that this made review harder. I thus left name changes in a separate patch and limited changes in follow-up commit to signatures where appropriate. Thanks, Ahmad > > Guenter > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |