Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp6756556pxv; Fri, 30 Jul 2021 01:22:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwqcAxEKE4Imtofg8xDpt+pIrSMhPdkZt+FFBWKH0pBpEERRMlj+UoOlXbTgGXO2Zt18q7A X-Received: by 2002:a05:6638:304a:: with SMTP id u10mr1249564jak.62.1627633320536; Fri, 30 Jul 2021 01:22:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627633320; cv=none; d=google.com; s=arc-20160816; b=y9FKNCRbmrR+31piPfYhikDgXGG4ZMwDQxn8msQiHAsjxXS3Js3Y0/M55HKZCS+5w9 wQ2zwBczaUti7uD6+xTt/JPhH/kTfc3jKoDxmg1RZXOHiDaQ8BNMpzuLwxw4t6QK1aPb 2TOEGQtCByFf1d5oteC+f9p0u/aYhLoL+QsA5ndfeJvobLYRJjrMIa+xxNvdgwiCmCcD zamzW4MeZo43doy0d+yGadMAhVmamh3MDww7866fYOW1/2dee4ft+k/ujC/KrUKkjSEQ s6lqXe54izamiLmpofG85X1a6ptKUiK9CTaPh1lFlTKn31Ic0QoY46fAxk4MlHPiHSnZ eGNQ== 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:organization :from:references:cc:to:subject:dkim-signature; bh=5zdWLUXNJU0I3jZZ3brzary8lrdEEnSpQU409joGD14=; b=wWypWm9uBlX2IkuLOYPp8bBgWy18H3M9bB2VvEe0Frf1zXE23LGXl2ZeSD3pOuAukC vFyFRoO8r2GjYWJmqbrilU56ET7N7XWXiHXifqTsnmYQwGfH12gX5C2Dqy0EWkx1ZF2G av+f5GmPqMn/1SaGG5YEiWAF8LQ1TAnOJx2DLZStulOiXjG4j/N3h+p0yCq659AxW+TX YK377qJVQc3z2b21by5/ray0nr4bnH926W1+AgWgoY+yKKgfmxg+K3DkYEs/1zZmQE8L nfeiMMtoxSPaAUGE+BWEPzZWol0o/czga0wDAkjTORUph8TaNl/GN+8E5nupBT18/DLR 87xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="JzWav/+U"; 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 g6si985579ioc.2.2021.07.30.01.21.48; Fri, 30 Jul 2021 01:22:00 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b="JzWav/+U"; 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 S237939AbhG3IUU (ORCPT + 99 others); Fri, 30 Jul 2021 04:20:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231411AbhG3IUT (ORCPT ); Fri, 30 Jul 2021 04:20:19 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CADF2C061765 for ; Fri, 30 Jul 2021 01:20:09 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id f18-20020a05600c4e92b0290253c32620e7so8384178wmq.5 for ; Fri, 30 Jul 2021 01:20:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=5zdWLUXNJU0I3jZZ3brzary8lrdEEnSpQU409joGD14=; b=JzWav/+UQ71FuwQ6UITAqfqrxp2ltUX7DgVNDt14RiOd46N2HR2jsHFvFah9+ZeeGB YSjrOTBFNpL1/OnS84wdFJfWATY79tOr3d8GDLMwAHddGerXsDur6CO3440ito/wC5RS OCxVVePArMHbKafvWRdtPySAYSgE6cdNBb7LBv4v8uUtB1FrN/s1baqVhwqvj5l6QIgE F9mlNDSbKvt3q7elNAmzVBduuqog7l7LgewwNnQQe/WO32J/wyREP3ZcmKNqwxY4Bz72 mmSuYsNeprDL+dFqjgTZs2FLWWrZUPFwoOZEN1imHtqhNSTikxId9y0OJr/qVqZ4cy/T REZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=5zdWLUXNJU0I3jZZ3brzary8lrdEEnSpQU409joGD14=; b=ehKafYOgysTtUG0z6mWGK2omgo3C289UJUA1xct60Hd6cMe1KvQxJmPP0maR6J79mI MucCNqqm3OjltX3pVKBOMgjNzuvxPpHJFgaeZX7HlW29x/1H8eoDs9OKDax6W89r+sVT MU2HDE7IxxX87i0lpRoU3w/E46o3ll3SFH1vX9g2gzRFQxkiQuXMLKyLOMF/VrwgUPBT Nut5gs8icyAwvpTrVhEupBwcz5ysV+RoNKhuUXWrEPX38QrfRlezZnT/4Jg61fs+2XK8 UrwsUmtHR1YHOyfIMV5N3Mr382CAArXGYH7W9nT4etRVUvYnJ+/Jx8x5SzKvbaMpjfz+ hQ5w== X-Gm-Message-State: AOAM533FQpHnRHGbmNXBnRut8bHmqZypKg1kCKO07KqK/QwQm6Mk0jlk yj8bYlY3QKEmxqKuyXiVtQINwQ== X-Received: by 2002:a05:600c:88a:: with SMTP id l10mr1710089wmp.78.1627633208255; Fri, 30 Jul 2021 01:20:08 -0700 (PDT) Received: from ?IPv6:2001:861:44c0:66c0:2c71:4cb8:38f7:a2a0? ([2001:861:44c0:66c0:2c71:4cb8:38f7:a2a0]) by smtp.gmail.com with ESMTPSA id z6sm869484wmp.1.2021.07.30.01.20.07 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 30 Jul 2021 01:20:07 -0700 (PDT) Subject: Re: [PATCH v4 3/3] watchdog: meson_gxbb_wdt: remove stop_on_reboot To: Guenter Roeck , Artem Lapkin Cc: wim@linux-watchdog.org, khilman@baylibre.com, jbrunet@baylibre.com, christianshewitt@gmail.com, martin.blumenstingl@googlemail.com, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, art@khadas.com, nick@khadas.com, gouwa@khadas.com References: <20210730041355.2810397-1-art@khadas.com> <20210730041355.2810397-4-art@khadas.com> <20210730045857.GC2110311@roeck-us.net> From: Neil Armstrong Organization: Baylibre Message-ID: <7832d036-3811-544e-8007-fe719bb38ded@baylibre.com> Date: Fri, 30 Jul 2021 10:20:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210730045857.GC2110311@roeck-us.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Guenter, On 30/07/2021 06:58, Guenter Roeck wrote: > On Fri, Jul 30, 2021 at 12:13:55PM +0800, Artem Lapkin wrote: >> Remove watchdog_stop_on_reboot() >> >> Meson platform still have some hardware drivers problems for some >> configurations which can freeze device on shutdown/reboot stage and i >> think better to have reboot warranty by default. >> >> I feel that it is important to keep the watchdog running during the >> reboot sequence, in the event that an abnormal driver freezes the reboot >> process. >> >> This is my personal opinion and I hope the driver authors will agree >> with my proposal, or just ignore this commit if not. >> >> https://lore.kernel.org/linux-watchdog/20210729072308.1908904-1-art@khadas.com/T/#t >> > > A much better description would be something like > > "The Meson platform still has some hardware drivers problems for some > configurations which can freeze devices on shutdown/reboot. > Remove watchdog_stop_on_reboot() to catch this situation and ensure > that the reboot happens anyway. > Users who still want to stop the watchdog on reboot can still do so > using the watchdog.stop_on_reboot=1 module parameter. > " > > That leaves the personal opinion out of the picture and provides both > a rationale for the change and an alternative for people who want > to stop the watchdog on reboot anyway. > >> Signed-off-by: Artem Lapkin > > As mentioned, I'd still like to get an opinion from the driver > author and/or some other users of this platform. However, I'll > accept the patch with the above description change if I don't get > additional feedback. Sorry for the reply delay and thanks a lot for your review. The rationale from Artem is OK for me. Please add my Acked-by for the whole patchset. Neil > > Thanks, > Guenter > >> --- >> drivers/watchdog/meson_gxbb_wdt.c | 1 - >> 1 file changed, 1 deletion(-) >> >> diff --git a/drivers/watchdog/meson_gxbb_wdt.c b/drivers/watchdog/meson_gxbb_wdt.c >> index 945f5e65db57..d3c9e2f6e63b 100644 >> --- a/drivers/watchdog/meson_gxbb_wdt.c >> +++ b/drivers/watchdog/meson_gxbb_wdt.c >> @@ -198,7 +198,6 @@ static int meson_gxbb_wdt_probe(struct platform_device *pdev) >> >> meson_gxbb_wdt_set_timeout(&data->wdt_dev, data->wdt_dev.timeout); >> >> - watchdog_stop_on_reboot(&data->wdt_dev); >> return devm_watchdog_register_device(dev, &data->wdt_dev); >> } >> >> -- >> 2.25.1 >>