Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp11504522rwb; Fri, 25 Nov 2022 16:56:31 -0800 (PST) X-Google-Smtp-Source: AA0mqf79XRZOxJ033hg4vAzojCy96BfQzXQ1Ta+6cwQY7vXSOY+Y1EOevSQwjzw6fnNLLhKS7Nts X-Received: by 2002:a17:902:bcc5:b0:189:6d55:91a8 with SMTP id o5-20020a170902bcc500b001896d5591a8mr3312533pls.127.1669424191730; Fri, 25 Nov 2022 16:56:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669424191; cv=none; d=google.com; s=arc-20160816; b=lzmA383+5J+aI9GrWvPqvJOPczPUecGN5C4L9NsH2KYyyW9/PHBWxNrNJavzreV66X 88Mb8IVGYFGCwo2Ail3l4Ou9M8FyYBqD7A/LcPXv8JFHMb98BPfyp62ZrRSj4QXIoqPH z7emujvGz5iNPsWsf+qQzWgw64epSi6HGVtvyqqgmEoXlQoPoEgqle/5pbZMKaXAwx5V 1FKrDHeOHcsVXc5jx+H2GGh/dMzDFq7TwWEqC+pyxcFkqJokJR5LIGZVygnnm4CCTdBI SDYUZK0vF9M1qhY09g+axdpKTMo5MVYJUn/IKC4p6ltAzpuI2pbMTrlnVdBKj/l9z+1b Fjig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:dkim-signature; bh=iM7ET6EbhqLG7ZikTWYHO9npthIfHL6Ui48nWAdew8E=; b=LcnaucdUnC8/YIR5ZdBYRSbsV2Rkai/rmyod3y2qhdPeDdq62KVPet5Mm9ypnKSF1s qhaMIt6o/Haa/x77Q6Q87Ndhjfl8UeBKw8aaxT65VMRAUVsUuaMtnQVSSX8Kts3MKtlG Ake0v6ErXfYjjtSAmHMmJVMgvUUwn2nl8Zj0rJJ3Y79v7a5H2GYHed24UXQ8UIIASUwt Ilwj9sxqcIdX0ffQFfKxh4oxccLGPNilCl3EWDf7KinZwOi9gET7V6C3GoWIXWFGRdYo Je2PHyHbia9QLan//yPihJH1ShDXcDfaiRiSHW4Mk5YNYZV+psxwuqm9ESetICrUKSYy 5T2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=P8zCKWep; 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 f6-20020a17090a9b0600b0020a47a4c951si4951985pjp.147.2022.11.25.16.56.21; Fri, 25 Nov 2022 16:56:31 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=P8zCKWep; 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 S229722AbiKZAew (ORCPT + 85 others); Fri, 25 Nov 2022 19:34:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbiKZAet (ORCPT ); Fri, 25 Nov 2022 19:34:49 -0500 Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B225B5B5A9; Fri, 25 Nov 2022 16:34:46 -0800 (PST) Received: by mail-oi1-x232.google.com with SMTP id v81so5972721oie.5; Fri, 25 Nov 2022 16:34:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=iM7ET6EbhqLG7ZikTWYHO9npthIfHL6Ui48nWAdew8E=; b=P8zCKWepFpqociAzqaSuKaEKj82UoEfQXOZf6GkJ0mu4l965VSCuWR3n5nGiyFBRyp HgopUf8UT/zadN/4kpEE/K+ErE2UD8QWAS2WZUoWsXnAPSLYzAOt1Po5yJ/cuw30ZxQ3 Bk609/KYFMcYGBJjoRnoZ/8iA7oz301WdE6MxeYJ2yks9nV1laC4U+GyIL7VClD3TZir Y4jmHFldVjZROM1G68D7hN/83NHK8WL0d5y9HnZ6vGKFwDbHNGIDEKjxXfunLSxoGHDy Uq2GgJTQ6DR6sdU0PTV+Y0PiOEU4mYvxpio2h0MTdg84UjK5a7KFKg1d1c7p4T1L+LbT +EJQ== 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 :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=iM7ET6EbhqLG7ZikTWYHO9npthIfHL6Ui48nWAdew8E=; b=c4boLaL5F2QGMfz2O2TsVye94Ig7DlNmzDEd5PZCNgdYKjUi/Mp7oM6WWflcJQHzj8 2jtfj+JZfTkY960pTG34kwWvnp6BowxP+3V7Gkevu4mCx5GiYnbK35rlEGqXHMuCGvqL agYAxdXUZ8hahr1OCeRsmcwspq6YDQDJP0lx27E1tNvNgRgbfyP3K2H7VCxht792COZ6 bDUnwwaDuGB/JEZaM+xnJf3NoNgswEoIQORHo3be4qBic5tK81k2StFuQHwmngZdXCF0 YkKWcr+V/aR7AzjMJK3o6q/jB+sFhb6z96Te9BULYtVz6aHz5LNe62VdluEKKQnqm2bz Bl8Q== X-Gm-Message-State: ANoB5pkbFoe8kGXE8OOcnTEyYaQF1hyYdjnjQSma9yxv+1tLPnaFlz9N Xd36CGyx7j+45VMCEjW+iqMOHwQVxhQ= X-Received: by 2002:a05:6808:19a0:b0:359:d42b:4d53 with SMTP id bj32-20020a05680819a000b00359d42b4d53mr9859488oib.145.1669422885971; Fri, 25 Nov 2022 16:34:45 -0800 (PST) Received: from ?IPV6:2600:1700:e321:62f0:329c:23ff:fee3:9d7c? ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id j44-20020a4a946f000000b0049fcedf1899sm2080131ooi.3.2022.11.25.16.34.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 25 Nov 2022 16:34:45 -0800 (PST) Sender: Guenter Roeck Message-ID: Date: Fri, 25 Nov 2022 16:34:43 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH] watchdog: iTCO_wdt: Report firmware_version Content-Language: en-US To: =?UTF-8?Q?Thomas_Wei=c3=9fschuh?= , Wim Van Sebroeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221125221240.2818-1-linux@weissschuh.net> From: Guenter Roeck In-Reply-To: <20221125221240.2818-1-linux@weissschuh.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,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 11/25/22 14:12, Thomas Weißschuh wrote: > Synchronize the reported information in dmesg and the watchdog APIs. > > Signed-off-by: Thomas Weißschuh Reviewed-by: Guenter Roeck > --- > drivers/watchdog/iTCO_wdt.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/watchdog/iTCO_wdt.c b/drivers/watchdog/iTCO_wdt.c > index 34693f11385f..9b3c9f8b0b93 100644 > --- a/drivers/watchdog/iTCO_wdt.c > +++ b/drivers/watchdog/iTCO_wdt.c > @@ -437,11 +437,10 @@ static void iTCO_wdt_set_running(struct iTCO_wdt_private *p) > * Kernel Interfaces > */ > > -static const struct watchdog_info ident = { > +static struct watchdog_info ident = { > .options = WDIOF_SETTIMEOUT | > WDIOF_KEEPALIVEPING | > WDIOF_MAGICCLOSE, > - .firmware_version = 0, > .identity = DRV_NAME, > }; > > @@ -562,6 +561,7 @@ static int iTCO_wdt_probe(struct platform_device *pdev) > break; > } > > + ident.firmware_version = p->iTCO_version; > p->wddev.info = &ident, > p->wddev.ops = &iTCO_wdt_ops, > p->wddev.bootstatus = 0; > > base-commit: 0b1dcc2cf55ae6523c6fbd0d741b3ac28c9f4536