Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3537928pxb; Mon, 1 Mar 2021 12:41:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpxNSSHdaApk0v12JtFL7pHVjdBLVOLGeXbaFlK0X5CG+NRpFpYguSiQBFIeu4MohnGaal X-Received: by 2002:aa7:d547:: with SMTP id u7mr8869698edr.347.1614631276681; Mon, 01 Mar 2021 12:41:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614631276; cv=none; d=google.com; s=arc-20160816; b=R9Vw3RnvaBdi+1OMWRoaFBdmAuPxMDO8EqOqvABOANP1/wnA6IC/t0uIRMgV4tc2WG tPA8lwHFxqo9hHx+Qgma30HzrYl+JisjLMv8tBH6M6IIzqk4dBaOHZTylHiQk9NvBtDq t3fCLSPVWxqI+mh0H86QakFjvDzofXDqFtvMM6pVcoXE++8cRwLXr2ReSryQRdSBHV99 iwj2AR9jM1xh/YPbolPquzURSHtlr8o/nq/Pg2BxkYVjGebKMZIt2av/s1imSK3H1EPj WMa33WTY/Jy6xum9FArhebJ5zc3xITLhOCapgUv9QCntoUKyBT8rSsqIaMjFE7vgjaga jZ6w== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=EknyYrbgSLfeLlWzzbkv140T7YXE/arYqi6k7M9atpU=; b=Zb2PYQffadnfeI5d1Ar6XITYU2Xgo+tDbLJ8k9sfJ7z0dkXlgbTsKbx+ZemwTaYkEm Axr4pyYpBZWpw+KHUPjywJn8j2Egr5DVMM31m8o0Wx3Wq3y9AEIPwig9FTGvE2VBMkig v8/gz5nUMXUO/vH47B6I/+BzdgAUBXWdjrQITi2xiPsswtLdJpBu5736QLunncAx7FTY 7vUVfmPirSIdRqRky/pBpNIHmGHqfOIJ5TG8ROzOE9NnoefViUk6vH6RsOzKcohXOVh4 lEo1689EId8LaALN+zziTmmVeU2AxkSPjuyUPmXs6u6u8+f0xwsSI4LSCLTrpyvaJDQz aW7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rbHd+717; 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=pass (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 t15si11803133ejj.506.2021.03.01.12.40.53; Mon, 01 Mar 2021 12:41:16 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=rbHd+717; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243546AbhCAUiP (ORCPT + 99 others); Mon, 1 Mar 2021 15:38:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:37620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237430AbhCARIQ (ORCPT ); Mon, 1 Mar 2021 12:08:16 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 02C3764F82; Mon, 1 Mar 2021 16:41:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1614616863; bh=gGnf96rWAn+vW4HHRwWuuPkalKpOOMB+USCk1pWsxEk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rbHd+717AIbumLiILfXxwcjtsP9fOyNR8Hw8hbfi7vU+9avDOb34AL6VYf38PI6WF LbQOa1h9mISLHKdH6ySMwasLWU7YUWdfL4c+6Rxy9nC2dQc5dgpQj5eKjq2LZaQecQ MhOiqL4uEaWoWFLKZgtXpEdckRjoEuqB8gd3j12s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Alexandre Belloni , Sebastian Reichel , Sasha Levin Subject: [PATCH 4.19 120/247] power: reset: at91-sama5d2_shdwc: fix wkupdbc mask Date: Mon, 1 Mar 2021 17:12:20 +0100 Message-Id: <20210301161037.551640403@linuxfoundation.org> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210301161031.684018251@linuxfoundation.org> References: <20210301161031.684018251@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Claudiu Beznea [ Upstream commit 95aa21a3f1183260db1b0395e03df5bebc5ed641 ] According to datasheet WKUPDBC mask is b/w bits 26..24. Fixes: f80cb48843987 ("power: reset: at91-shdwc: add new shutdown controller driver") Signed-off-by: Claudiu Beznea Reviewed-by: Alexandre Belloni Signed-off-by: Sebastian Reichel Signed-off-by: Sasha Levin --- drivers/power/reset/at91-sama5d2_shdwc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/reset/at91-sama5d2_shdwc.c b/drivers/power/reset/at91-sama5d2_shdwc.c index d9493e893d64e..7cf59e764ef28 100644 --- a/drivers/power/reset/at91-sama5d2_shdwc.c +++ b/drivers/power/reset/at91-sama5d2_shdwc.c @@ -36,7 +36,7 @@ #define AT91_SHDW_MR 0x04 /* Shut Down Mode Register */ #define AT91_SHDW_WKUPDBC_SHIFT 24 -#define AT91_SHDW_WKUPDBC_MASK GENMASK(31, 16) +#define AT91_SHDW_WKUPDBC_MASK GENMASK(26, 24) #define AT91_SHDW_WKUPDBC(x) (((x) << AT91_SHDW_WKUPDBC_SHIFT) \ & AT91_SHDW_WKUPDBC_MASK) -- 2.27.0