Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2400657lqp; Sun, 24 Mar 2024 17:55:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWkxbSgIxvMWIZMr2YJN8D6OBDV6rDS+97M3TIDG0JYkP71bT7ryASBBv+I9bs1MV/M2yN9JD7alGyXa8hFXv+wF1Frp0wGQDnGjvua7g== X-Google-Smtp-Source: AGHT+IEtb+9hMJyT/ExsSdQ096IoEpmeWwgVAWJPErK73fXPNa3f6TzIv40BHCtmBRCQWOgHnAwW X-Received: by 2002:a05:620a:2945:b0:78a:54b1:1da3 with SMTP id n5-20020a05620a294500b0078a54b11da3mr3420522qkp.1.1711328140792; Sun, 24 Mar 2024 17:55:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711328140; cv=pass; d=google.com; s=arc-20160816; b=fzAB8feHMU2czVN2if3hxuGKWyz6iTBHcLf9z9/QLUpvA7+Bd8yYWgGNW8k32hXc36 rm7w5dZwuX8E0TPjrpRuszekSH/VvW8si7GQNfJVmpPDs1I8Xa9SPByCTXfJNvhGPltK BVbnpUz0DBQ1rhgC0ll4CZqrBJEQ5YfM4EC4YakvO6KBBxd/rs9ccIbmXe0VBkB1PMkf CiKQqtR2RXoW2WSAwbe1N1pnnRcUHIz0CYr+cGIKh1cEecbUU0XgQhE82I28WNPlAlBE 4MTFR92+oCNORt3RMiigRjg6HO5OC0anrGbyZLVddI3Il5xz9e+FWskk1qF8eqGw0qq8 3A1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=kH7tXGgxlxEV1LlQBLeRoMycj0xQRcqq5P7HpXVtzJs=; fh=QX+DiVy6Us1fCE8HX4ctQuOJcvKSQdAx6IqH3sz/Xqc=; b=mtCckbBhYr0rUhyoZg0IKEG6f5ax/srPRbuCeg3BHbJvihXhW0a3Y8e0EjiV68V6Ps T5ygxabq795awpBlWiRxe1DJlOP1ChmBw4IAJEce7t6A5kLXQ1i4Q0oIXU3gJ1mLN8v0 c81C5GwGD1ipZwmcQvGYI/S2s6ASGTGAUg37G7WYMCWU7zcE6ZSoBVgn/t/yCPKRnBM+ J9KaYA3NaxpEleOsRMZ2mxpcPnUHjr7qo3a9zyFE54jeujsxTf6sujrGbm60GSAZQGaR K9O0c7bps75EMMt8ujkk5eWiDqXjclIlU1mJYeG9FVLPdC5FeOYf8Zleoaej4biFcrPp UtLA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E35IQHVM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id a1-20020a05620a02e100b00789f41af256si4294481qko.761.2024.03.24.17.55.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 17:55:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-113519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=E35IQHVM; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-113519-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-113519-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 75D3F1C242DF for ; Mon, 25 Mar 2024 00:55:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07F421BDB89; Sun, 24 Mar 2024 22:45:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="E35IQHVM" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 267CD1BD5FB; Sun, 24 Mar 2024 22:45:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320321; cv=none; b=Jm8UpIKMh7UbL2JBJFhbljXylIrPhlZWf6mxVI+fV+TNu6UQ7U3fFG9u+eJLvCHWDcDgjkadgmj70VFRGaWw5iWhf6idJUgaR28sQrPCA1X3SMMuxFK5/j5RsMaN4XTSLk7PthKEhdMmwabaZtT+xOhAAxKc5mwL0Tlr/bLBJC8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711320321; c=relaxed/simple; bh=0U+5D4DRz8h15rzlQU+NzAMENCJf/RgVlOr9F6AF2wY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JkJcWNeDzAIQOhfp4wq9D5Xfzfatxwr6dIYWv8rRLuhTzyE0wDEVds0KR1OmLBAxkTKvk9y68p+Dy1RQKj9ELiyvZosRdkxID/K450t81OpDq85JseBCaY4XdpR6csCsapKgzJpUWkwhEeqaNg7NSEeomubdFcDi3Ky6liJ1UQY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=E35IQHVM; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4C7ABC43390; Sun, 24 Mar 2024 22:45:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711320321; bh=0U+5D4DRz8h15rzlQU+NzAMENCJf/RgVlOr9F6AF2wY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E35IQHVMb44n5nMKW/9eEEwP5PFdiUm2+IglrLoX1NaQZmyPVbMroTTt++ck4sZ/d 9gKWmJscObgeHAH22AJaaGwf8BtbSMnNLJ0bQgCZLjQAzRsyzqiWYUzMmLgNdcw84s DKD7f7XecOqC5tZ64DykPfq1bcxNWbSan4ohHSP7IiIWac897+ygb9TRgwOODoFHV4 3MpZfcfBHFQJZOGfODdJ3MvJEMglaUSz4VwR9uf6Sz8Mbyy6Of6MIuMHwzZvMZEdIy iyK75l3o9TPR8mrflUpB67/sw+VbcoWYqHT6XDm/prnid0fSm8abdR422k4VcArCZn K86Ax8ItbMzQg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Antoniu Miclaus , Nuno Sa , Alexandre Belloni , Sasha Levin Subject: [PATCH 6.8 628/715] rtc: max31335: fix interrupt status reg Date: Sun, 24 Mar 2024 18:33:27 -0400 Message-ID: <20240324223455.1342824-629-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: Antoniu Miclaus [ Upstream commit c12e67e076cbcb86fd9c3cb003a344ec684138a6 ] Fix the register value comparison in the `max31335_volatile_reg` function for the interrupt status register. MAX31335_STATUS1 macro definition corresponds to the actual interrupt status register. Fixes: dedaf03b99d6 ("rtc: max31335: add driver support") Signed-off-by: Antoniu Miclaus Reviewed-by: Nuno Sa Link: https://lore.kernel.org/r/20240219091616.24480-1-antoniu.miclaus@analog.com Signed-off-by: Alexandre Belloni Signed-off-by: Sasha Levin --- drivers/rtc/rtc-max31335.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-max31335.c b/drivers/rtc/rtc-max31335.c index 402fda8fd5488..a2441e5c2c74d 100644 --- a/drivers/rtc/rtc-max31335.c +++ b/drivers/rtc/rtc-max31335.c @@ -204,7 +204,7 @@ static bool max31335_volatile_reg(struct device *dev, unsigned int reg) return true; /* interrupt status register */ - if (reg == MAX31335_INT_EN1_A1IE) + if (reg == MAX31335_STATUS1) return true; /* temperature registers */ -- 2.43.0