Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp526810pxx; Wed, 28 Oct 2020 10:19:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxc6UIw1KfgYqdTLw/Rx2ZvwIca3DJtuiReOvz0K7UfRsgswBmW+bYztPAzg0n6UfOWB+D X-Received: by 2002:a17:907:417d:: with SMTP id oe21mr70272ejb.233.1603905541398; Wed, 28 Oct 2020 10:19:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603905541; cv=none; d=google.com; s=arc-20160816; b=TzmduvxEU+vREg90l/7eYGcQxAXXQoCTZ/gH+tdGt1p+qesKVjb1qDKwDlK2UehFAc Ovtr0ynIe5yJkUrWjDcckx8/aeN7tKEedhsAWnX05UfvuDZ8bJO4pZTvR0GjOWA29sY6 pwNigfcGSBDS6kOjK7uznVPBM65q8UChI3FZcdT80apJ0Vy0T6wK0Z9yIKRUKBnZQSbS mOLgaV9hdoadIP+zTl5Flp7hssy9QBvm0ge903CCwqc45GwWtr0GdFpB8JciLBONw3Aj RHS0b8RkIwaH6M7ctG8nx/Gl8MqhHsrzUDaZTBOzvTVBaLFjUdpqJIqr8+6FXKG2QdNq Y8Vg== 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=qr8Oz8gSsFqI7ZNtPSjzGHB5BNaAGCANIQvzMg5uxIs=; b=nqLHN95eoefwr1vs4HPJ6vPUO7jpI7NNXrpXK/MqpsGuOFY1m0MT7xFUD9rnO+9Svu YxtDPCa7ocL02TDv8LPoQW8RoBf+4uztUZ8asUEhjyS1y05DpZf0FVH+6ubJGvVNaOSt NyJExzojpzcVBWL83Hxqzpo3g34jdTlJMSuAniG3sfkmnePO7qhj6vKkdxTshYmUSVWI ChCkL6lysMVoe8uBHoJnPSZLoUKIFNutgKgTdnsBJE/ncWIOW3BqrVRwyymAMM1/e0sK GqOUoy7ILpsUz4tsgKsY+u9eSXoJEHSPL0w8eZ4zUs0GUEiLRt0jn4H7XYwi24YySPIn chiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XJgdmon7; 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 p9si37501edm.38.2020.10.28.10.18.38; Wed, 28 Oct 2020 10:19:01 -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=XJgdmon7; 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 S1820786AbgJ0RiR (ORCPT + 99 others); Tue, 27 Oct 2020 13:38:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:33726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760530AbgJ0Oe4 (ORCPT ); Tue, 27 Oct 2020 10:34:56 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 516ED20709; Tue, 27 Oct 2020 14:34:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809296; bh=R/EIdN1dhjZmrIxGGM/69pEOsMpWAkuHLRWJuZBtzB4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XJgdmon7vAHF8UQDSF9QICZ0p6qCMjFD+s1Tjgn6QGydxr5AG48WvgQVz1F+ddEkJ W6Bu6Wd2AelujR8fSFs9IefjsYVqaGiuLnxas69ZwefkQT3fEFIw8VDCCa6i61UueG E1U6J6t7zK4V1488fm/Vag3K/sy9hTWvgwtNt1UY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Thomas Preston , Andy Shevchenko , Linus Walleij , Sasha Levin Subject: [PATCH 5.4 144/408] pinctrl: mcp23s08: Fix mcp23x17 precious range Date: Tue, 27 Oct 2020 14:51:22 +0100 Message-Id: <20201027135501.782000290@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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: Thomas Preston [ Upstream commit b9b7fb29433b906635231d0a111224efa009198c ] On page 23 of the datasheet [0] it says "The register remains unchanged until the interrupt is cleared via a read of INTCAP or GPIO." Include INTCAPA and INTCAPB registers in precious range, so that they aren't accidentally cleared when we read via debugfs. [0] https://ww1.microchip.com/downloads/en/DeviceDoc/20001952C.pdf Fixes: 8f38910ba4f6 ("pinctrl: mcp23s08: switch to regmap caching") Signed-off-by: Thomas Preston Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20200828213226.1734264-3-thomas.preston@codethink.co.uk Signed-off-by: Linus Walleij Signed-off-by: Sasha Levin --- drivers/pinctrl/pinctrl-mcp23s08.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-mcp23s08.c b/drivers/pinctrl/pinctrl-mcp23s08.c index 676ff9a4459e3..d8bcbefcba890 100644 --- a/drivers/pinctrl/pinctrl-mcp23s08.c +++ b/drivers/pinctrl/pinctrl-mcp23s08.c @@ -144,7 +144,7 @@ static const struct regmap_access_table mcp23x17_volatile_table = { }; static const struct regmap_range mcp23x17_precious_range = { - .range_min = MCP_GPIO << 1, + .range_min = MCP_INTCAP << 1, .range_max = MCP_GPIO << 1, }; -- 2.25.1