Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1252259pxa; Thu, 20 Aug 2020 06:49:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmOfFupekFdi/eDqPYaOIMumjZKijnX7YNcDGxrKbBNavFXXsAi0tjVKMad92QEMZkBAi9 X-Received: by 2002:aa7:d48f:: with SMTP id b15mr2293924edr.21.1597931371166; Thu, 20 Aug 2020 06:49:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597931371; cv=none; d=google.com; s=arc-20160816; b=SCvXNoD6cpbinVW+JGsufnUytgKQVauBkwAmYMFaSivEbUE70Qm9VrQyP4lh+gwmo+ OUu03Q4NJbb9O07yqmriBljZTXEezRIQgHgz0oQ6AyGV5qdiWMEJgemihmC7IkNEdfPy S6/gGvrGMqEA3aUzTdn3rBL3W0IXV+v/YN8g4jgRDlp5Q7CkHWYy9LXSj4t+hllKwqxS hvIrZJMNx0MzpsHfdEBuQvxHsUi2ZP12LWC7yjyLCi0jLFR99tHJO6G0Sd+4tRkvgqF/ 1UMKZAVaAa6sV1vzveAyQ5FxYjrdrkbQ9oqKuEcuKUI24aLDfc/IUDxgT4XlBenVVwBG B8lw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=QLYqsHKOPx3t+OYINOwaFXGeZXIjo0onSgSMGFciOd4=; b=VKo3OhwHW/HUJPIWhEqK1rHbC1qWfgxTg3enOPN5Ira1HGhmuUwJl6JppuJKUNNAIV 18aJw/R+11PgEnvnFQfNaaZtgVob9OyNRJW6twUy6RwBpvjpY8YcZ1JLArHnGGUvAw1v bnjXQ3zdYD0V4idfA/k12yLpTV/kcFt07YD9sYjKPqOWoiO30hCvop7y9dLSY4cucM9k Zi9ILBKbbn/AC1A0Vn4PeSojJmV+CR64O77oIY8fK+4rxP4HoZbMF7NVlOtDHD5LvrLV hh7nqBegQUyGD8DWLeUBJ5xDomupojpheWSMHwx/PXwY4/af58jsPAQQxlWpe67uygmm OkZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=npjHmCvQ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h6si1373982edz.180.2020.08.20.06.49.06; Thu, 20 Aug 2020 06:49:31 -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=@kernel.org header.s=default header.b=npjHmCvQ; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729724AbgHTNp0 (ORCPT + 99 others); Thu, 20 Aug 2020 09:45:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:35052 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbgHTJ2P (ORCPT ); Thu, 20 Aug 2020 05:28:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B3A0B22D37; Thu, 20 Aug 2020 09:28:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597915686; bh=qlZatptjxTirg4Rm1dhbqHVFHrmeSZ2GGI51mK8nO1g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=npjHmCvQH6+oO79WX0pRh3KODBoCddGD8jQjLxBcXZHk4z6Yr/8fJjbDfxy/VgWzW Tqa5rfsZ3Y77CY6Z/ulAOokyhLmcL/U1in3C/pRv6gD8yJMevLtlCqEKFE9TE3TwCO iZvXeQlY72pxEdfx+alGuqdloOauTUk5kzyYDXBI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ahmad Fatoum , Guenter Roeck , Wim Van Sebroeck Subject: [PATCH 5.8 092/232] watchdog: f71808e_wdt: indicate WDIOF_CARDRESET support in watchdog_info.options Date: Thu, 20 Aug 2020 11:19:03 +0200 Message-Id: <20200820091617.292866001@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091612.692383444@linuxfoundation.org> References: <20200820091612.692383444@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ahmad Fatoum commit e871e93fb08a619dfc015974a05768ed6880fd82 upstream. The driver supports populating bootstatus with WDIOF_CARDRESET, but so far userspace couldn't portably determine whether absence of this flag meant no watchdog reset or no driver support. Or-in the bit to fix this. Fixes: b97cb21a4634 ("watchdog: f71808e_wdt: Fix WDTMOUT_STS register read") Cc: stable@vger.kernel.org Signed-off-by: Ahmad Fatoum Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20200611191750.28096-3-a.fatoum@pengutronix.de Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Greg Kroah-Hartman --- drivers/watchdog/f71808e_wdt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/watchdog/f71808e_wdt.c +++ b/drivers/watchdog/f71808e_wdt.c @@ -692,7 +692,8 @@ static int __init watchdog_init(int sioa watchdog.sioaddr = sioaddr; watchdog.ident.options = WDIOC_SETTIMEOUT | WDIOF_MAGICCLOSE - | WDIOF_KEEPALIVEPING; + | WDIOF_KEEPALIVEPING + | WDIOF_CARDRESET; snprintf(watchdog.ident.identity, sizeof(watchdog.ident.identity), "%s watchdog",