Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5601875rwb; Mon, 14 Nov 2022 07:02:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6cuPiRdjc7iipqp9spzB9XuIFK0bpvKQ0Pw+xO3nCoNp/3X14hAYyrlGela3La0iBoZFA1 X-Received: by 2002:a05:6512:313b:b0:4a2:27f0:46a5 with SMTP id p27-20020a056512313b00b004a227f046a5mr4624496lfd.611.1668438156386; Mon, 14 Nov 2022 07:02:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668438156; cv=none; d=google.com; s=arc-20160816; b=lkrwPXHZ8P+59akHeNKKuCB7N72XfKzoHW2boq5z1zp6t20l0QOml4y1FEV8RzEB50 Z5ZNQwuyjrVBxAIGajiWcvTdCmOVJUldr8o2aXEeAtIGE+7HrG2v1LZkNY0DLd33AoVM rYzpQr+sHgAZdv5WhIixtG19im9GtTrol7SBR7j5sV+MMuwSW2pWQwVMq9Yighz3t4Vw rCccfaNCPSVyHI+DesaKVw6l8IFCdGHbn+h+E31HwieQBl/pv0+h/fpeHugSXxqf6RoP 1jBW3rWh4T+Yzyra8bqw2tbSFD1fhk/XLxwx5vApGQ9poLuWzd0ZEHZVMSG4QeHWkyJ2 OpEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=jgcb91s2dt67CNb/h/jC4e6cUIsKNgCDgXmKk0U/nWQ=; b=Yc+JG3pMmjiTMgdgUUZ9z3lSLgisay5MZSvtUXJp0Iv1fPMfoJtvBFNsZfPyr4qyRv 0IYpUfVSutYtSYoWp00+1k9Hi6VeQx6iNyus13EzrO8ScWaYhl+MRSGcIFODMYmMS1bD XdvdgBZ2UBA7vW/9i7uBx/ZTn2zmEEIy0VzKceAVeNRAlgQ5CJinLTfmBchsYhhm6jAv larUdnPJxcNXpoLUWKms5pk5Ie5NrBdroFyCj5LfYlNssbokTWJjaNmlXDZdD1yONzLe k4toNpIY7PRz7W866jfYX0D+JAbbOmjv6YdM2/5QwMNz84MNipRCaNmqeyA/i97/V1HI 5RYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a056402124c00b0046107f951f9si8160282edw.237.2022.11.14.07.01.45; Mon, 14 Nov 2022 07:02:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235625AbiKNOAb (ORCPT + 87 others); Mon, 14 Nov 2022 09:00:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229740AbiKNOAZ (ORCPT ); Mon, 14 Nov 2022 09:00:25 -0500 Received: from mail-qv1-f46.google.com (mail-qv1-f46.google.com [209.85.219.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 064519FD6; Mon, 14 Nov 2022 06:00:25 -0800 (PST) Received: by mail-qv1-f46.google.com with SMTP id x13so7794645qvn.6; Mon, 14 Nov 2022 06:00:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=jgcb91s2dt67CNb/h/jC4e6cUIsKNgCDgXmKk0U/nWQ=; b=hwEuzU5J8yikUD8aJRnMHJb0QP7apmleFcbSGAkONwiLwhoFarXI9lzXY90JHSDVdQ 1M2nQNaG6HydNU/kh/L1J//erwNMNHDysBhuuPcRcSV6MYQ41RHPm0cm+mH91Tvhlk2H NN8tBSf2It8cGMwWchdsBHstuvMFam7eEjH2Er8XCg2V7ksahYHH7K/0rxErYfHOiuXS tj6fu8nvJZh4l5tFrty6RIf5sqi1I13KaQ7/tdC/qdwgdPJqoSQKRfCip7471nMuTPwh eYfZT8JI/WK6lMqZ3n0pp2YSYZJWWpDAKOseZQqugZXIjUgu/wpDCoOr+KPRA+zXD5Pa 23tg== X-Gm-Message-State: ANoB5pmAtByWgdzETmdxJc5WjZs7+9Io/NGHAtW49aOXjexG1jzUf1Ic 3MLQ4ZymBjG96xETRJxY33MmKkQjOHahYg== X-Received: by 2002:a0c:fa0f:0:b0:4b4:7ac1:aa38 with SMTP id q15-20020a0cfa0f000000b004b47ac1aa38mr12632722qvn.84.1668434423609; Mon, 14 Nov 2022 06:00:23 -0800 (PST) Received: from mail-yw1-f172.google.com (mail-yw1-f172.google.com. [209.85.128.172]) by smtp.gmail.com with ESMTPSA id az17-20020a05620a171100b006f3e6933bacsm6387130qkb.113.2022.11.14.06.00.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 14 Nov 2022 06:00:23 -0800 (PST) Received: by mail-yw1-f172.google.com with SMTP id 00721157ae682-37063f855e5so106876007b3.3; Mon, 14 Nov 2022 06:00:23 -0800 (PST) X-Received: by 2002:a81:a085:0:b0:37e:6806:a5f9 with SMTP id x127-20020a81a085000000b0037e6806a5f9mr7816378ywg.47.1668434409494; Mon, 14 Nov 2022 06:00:09 -0800 (PST) MIME-Version: 1.0 References: <20221103223956.50575-1-fabrizio.castro.jz@renesas.com> <20221103223956.50575-2-fabrizio.castro.jz@renesas.com> In-Reply-To: <20221103223956.50575-2-fabrizio.castro.jz@renesas.com> From: Geert Uytterhoeven Date: Mon, 14 Nov 2022 14:59:58 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/3] watchdog: rzg2l_wdt: Fix reboot for RZ/V2M To: Fabrizio Castro Cc: Rob Herring , Krzysztof Kozlowski , Wim Van Sebroeck , Guenter Roeck , Magnus Damm , Biju Das , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, Chris Paterson , Biju Das , Fabrizio Castro , Laurent Pinchart , Jacopo Mondi Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 3, 2022 at 11:40 PM Fabrizio Castro wrote: > The setting for the RZ/V2M watchdog cannot be changed once > the watchdog has been enabled, unless the IP gets reset. > The current implementation of the restart callback assumes > that the watchdog is not enabled, but that's not always the > case, and it leads to longer than necessary reboot times if > the watchdog is already running. > > Always reset the RZ/V2M watchdog first, so that we can always > restart quickly. > > Fixes: ec122fd94eeb ("watchdog: rzg2l_wdt: Add rzv2m support") > Signed-off-by: Fabrizio Castro Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds