Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1252000pxa; Thu, 20 Aug 2020 06:49:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7fyfImmLQjKbFZyoe60+cc1peARKULedwq0LenRiEeOP0XsdGGgWh7j+XUOqZr6b6s6/Q X-Received: by 2002:a17:906:c7cd:: with SMTP id dc13mr1413255ejb.446.1597931352249; Thu, 20 Aug 2020 06:49:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597931352; cv=none; d=google.com; s=arc-20160816; b=w7PUrK7utg7u4tT9xwuGe6A9JDxKW99drqMIo5zVy85cOtYhuzMuOV0OxZdAqDgfQO hGFyWWWXuvVYBt2RPxj767+eR81VOR1sSq8UfZElI9eNWuWUIu9woBqL744g8F8uO0gu 6x9CR28wgtRDMILx3COH91FfEWjHBihyQPGh7JPBWt9Z3XmfxIorXna80uE6IQ145BUs uoHI59SLdOgSutM6lPooH33Zz5B9Gq/uvKt8mU81W24s2xCySwca5mbzgQ6FrmAPURRH MeWyWaJMKYflb3Z8qoDCFKFZYwLLH3aeHeIaZjbLzTtQEgx80u38vnw+jedTsRmunPHc m4Bg== 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=knqp0E5Bt3mZSPczXWbpRDoPIMI7DKaP9a+KyRfrdE8=; b=GOtKHJhumMx5n0oQZj0dXroBxOCAk2B/WI9o4valuECAwMeKBSJ0zzDO7IlTy0YG5l zxm7YwKJvPrijSWThnPVOCwth5xkUGj/aeDzmBTjLQ6AY8swcsVGpqdX9WlM30ZsI3vf eevdQex2z8sDipmmQDZKk4lzY+QbsEjXgA4lEZbFIHEUkBf1nkCPFG5nDxxvVb9eWSlY fWekAam+4J7Xh2mzClBckSbqJNcr7AVJtgcU9pLFWD6JI7oIfWW1Q6+I8cGN+aXbKD1a /YvxzXmnD5WtgcXjM9VV6MsXoM6GcaQ8D5IPP0ZaYh8T3HTmsxaqNRTtwpy41wXRfciZ cKAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Kby8K5Ff; 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 89si1438604edr.415.2020.08.20.06.48.47; Thu, 20 Aug 2020 06:49:12 -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=Kby8K5Ff; 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 S1730635AbgHTNqJ (ORCPT + 99 others); Thu, 20 Aug 2020 09:46:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:37548 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727899AbgHTJ2i (ORCPT ); Thu, 20 Aug 2020 05:28:38 -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 E471522CB1; Thu, 20 Aug 2020 09:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597915718; bh=qODI7FfI8D79fxtK+8MRpGep8DMuZaOYzP9AJdDA99k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Kby8K5Ffht2g/QF0thXRp/4kZGSl9FkHezrFigR3nCq8HvcnTpJ+nzbq6KvtXeq+p S79WneX2D7pOSx/gCkadr2oJNEsGrEioaDiaF+NrTaoFx13MFCaiTlOnxV3kNtx7uf i19ISaHlnPIaczrol+YgAI0hsECuCQGR8RHBkyBE= 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 093/232] watchdog: f71808e_wdt: remove use of wrong watchdog_info option Date: Thu, 20 Aug 2020 11:19:04 +0200 Message-Id: <20200820091617.340152564@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 802141462d844f2e6a4d63a12260d79b7afc4c34 upstream. The flags that should be or-ed into the watchdog_info.options by drivers all start with WDIOF_, e.g. WDIOF_SETTIMEOUT, which indicates that the driver's watchdog_ops has a usable set_timeout. WDIOC_SETTIMEOUT was used instead, which expands to 0xc0045706, which equals: WDIOF_FANFAULT | WDIOF_EXTERN1 | WDIOF_PRETIMEOUT | WDIOF_ALARMONLY | WDIOF_MAGICCLOSE | 0xc0045000 These were so far indicated to userspace on WDIOC_GETSUPPORT. As the driver has not yet been migrated to the new watchdog kernel API, the constant can just be dropped without substitute. Fixes: 96cb4eb019ce ("watchdog: f71808e_wdt: new watchdog driver for Fintek F71808E and F71882FG") Cc: stable@vger.kernel.org Signed-off-by: Ahmad Fatoum Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20200611191750.28096-4-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, 1 insertion(+), 2 deletions(-) --- a/drivers/watchdog/f71808e_wdt.c +++ b/drivers/watchdog/f71808e_wdt.c @@ -690,8 +690,7 @@ static int __init watchdog_init(int sioa * into the module have been registered yet. */ watchdog.sioaddr = sioaddr; - watchdog.ident.options = WDIOC_SETTIMEOUT - | WDIOF_MAGICCLOSE + watchdog.ident.options = WDIOF_MAGICCLOSE | WDIOF_KEEPALIVEPING | WDIOF_CARDRESET;