Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp720098imn; Tue, 26 Jul 2022 07:35:41 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vUjuGseWu9380NjqxdsHac7rqCbbVEpchoba7oOM3nVRNaXTTDKaDZZalg2a7OC5J1js/O X-Received: by 2002:a17:90b:3e84:b0:1f0:3f92:8c91 with SMTP id rj4-20020a17090b3e8400b001f03f928c91mr38815724pjb.112.1658846141085; Tue, 26 Jul 2022 07:35:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658846141; cv=none; d=google.com; s=arc-20160816; b=lnzqhJtHIRuiqUcuBnkHu9wj/CRzfsuKjXbAuHCcYu7meG23qmg6j0/LGJHbheWGhW T6gh+CS8prEjTcI18xKtPTLB1p18OvzacRawVjk/JUoLSvdJnenMUA1QuiwIN29SKuIq Cr/pooTKOx/mqnkOS4QshmwoWVYbzrQOAZsOgz0cDqb43Nm8v7OZ/B4rpncPAMUcuxUR CgWXd+aYeiOggI1q+dNQVcg2/WItCjTQJDQjIKkS4q50G4S6QEcKJD4Usa5ZfKn3HJIW pHmDvCgZjBQR32Zr4hlRarTUfB6XC+wY/tNfe1OXNzFha/IzOhtkh988TNMJMP5gLUcH bHtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+UhYb0dzvKjOkG0VYJ/1cx3N8s82SPJh0+o97Kdk5JE=; b=G1hjUd/CScywiT9Fe2Ymb3SIJ1clHf9m/3zSxKuKiqJIWbwpTMpDtxHaawmz8aid08 upvMdeeNslL3Zk38w4nnNZiMYC982WugYMJiv42jRoIlNhUizkkmTP4CcEzGjn7TEkAR dIDBsqLw7FiB2vWAw0qhoY+ydkUx8mcO+QvkyCvsUwqkvrjpay1glqf6OoMB1DTohN9S NACj+cRKuMWXc6DGLl9OFkBr43bMAwt46PApgwvRscJo94a+cwYdlfTLfYO4uYgFGUBj H3AwJCm2SzlaYdOfn3NX0nfspr45ed7XXuntR0bbb0nWnp5a6eeykkkh1xvOFi0eBxrK eZ3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mHUcOIVO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y65-20020a633244000000b00419f2d09e77si15982161pgy.99.2022.07.26.07.35.25; Tue, 26 Jul 2022 07:35:41 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mHUcOIVO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238739AbiGZNqK (ORCPT + 99 others); Tue, 26 Jul 2022 09:46:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237702AbiGZNqI (ORCPT ); Tue, 26 Jul 2022 09:46:08 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30C451E3D2; Tue, 26 Jul 2022 06:46:08 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 96DFACE177F; Tue, 26 Jul 2022 13:46:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C306CC433C1; Tue, 26 Jul 2022 13:46:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658843164; bh=+UhYb0dzvKjOkG0VYJ/1cx3N8s82SPJh0+o97Kdk5JE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=mHUcOIVOuKh+EeAM9Mz6bKpuq8nSEuyUF6Nm9A8TxlIMpH12o9/KW2RaPsHbQklRc pk7+Ul1XExL+oOJdxkpfe3oYlsUs1VlZ/xWrVZuKt0JtlxbHPQJfVnhlKDDkmqR2HY wD1uSwHvKoR58Frak5G5NE598XrszZECTirSSud/ocEKnjpDgUDRPLVu4zq7aq/N8S hEnJx1kRwH+zM9xemdKcqEQ3XGPUl427GGSV6GSxpfwnghzMcI1KPnKaXdT2oUHIWt T/7c2bIgJ8G6PvuoV7uj5oubbOcenLJlgdb873cnE5PE7Y+8V87Z8Z2cHMjkvGWZhm MMkWaJEq37JGw== Date: Tue, 26 Jul 2022 15:45:58 +0200 From: Marek =?UTF-8?B?QmVow7pu?= To: Pali =?UTF-8?B?Um9ow6Fy?= Cc: Wim Van Sebroeck , Guenter Roeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] watchdog: armada_37xx_wdt: Fix .set_timeout callback Message-ID: <20220726154558.6571a452@dellmb> In-Reply-To: <20220726085612.10672-1-pali@kernel.org> References: <20220726085612.10672-1-pali@kernel.org> X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, 26 Jul 2022 10:56:12 +0200 Pali Roh=C3=A1r wrote: > ioctl(WDIOC_SETTIMEOUT) calls .set_timeout and .ping callbacks and it is > expected that it changes current watchdog timeout. >=20 > armada_37xx_wdt's .ping callback just reping counter 0 and does not touch > counter 1 used for timeout. So it is needed to set counter 1 to the new > value in .set_timeout callback to ensure ioctl(WDIOC_SETTIMEOUT) > functionality. Fix it. >=20 > Fixes: 54e3d9b518c8 ("watchdog: Add support for Armada 37xx CPU watchdog") > Signed-off-by: Pali Roh=C3=A1r Reviewed-by: Marek Beh=C3=BAn