Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp184910pxx; Wed, 28 Oct 2020 02:02:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp3OJaC8gh6dnAW7fTz1Ggh3RNfy47JNx88r/L7bwGw3yOJxwMZr2gXa7XzAUiyHg63MKR X-Received: by 2002:a17:906:3641:: with SMTP id r1mr6326534ejb.405.1603875733630; Wed, 28 Oct 2020 02:02:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603875733; cv=none; d=google.com; s=arc-20160816; b=NqBS21HFfsF92F6cd37XIju3thMu6cbkRwydaPj0FzOde4LfY0tbe4gtxiE+halWsi UISWUgMSKor2aI5XqrPRt4hRZV8S7EKaU5rAIIY0B5lP+HJofvt8zcJwNYMbqjdYg8iT EQTPbtS95ewx/76rNxt/Nj0Es0a6avtD/SM/9xEIGfKuS+4/BR00LejfkjPQXabxAW8e Tet4Bzch6ykLFIYlYgDbX9/egbV6hET+RjHemBrG/9Hx50bsuskHZC9MRs5J5XmZNk4W iA7M85rmfShg46p42n5NWqHPiz2n0Ab7uC6ElGvRG6XEdhrvKSwY3WTfmInU1FDHYldR eGIQ== 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=XijfIbTBozwwrhzeNyBcLVlu+6Q8YxpWJmGHkzdct8U=; b=S8r2WdQuvNPfbpgG8QCCbnk/XJf8lCp614eeROzsT3XfV00zSUeRcw75iIOmQE4sHm nxIhAGvb2uZah5FBnU4wkjoxotGw2Nwq4awzMOYUmElb3G3mVQLFhxpNE6SEcZCTMVIb lgjLwkPWApGcSczcX3/C0PCUlrLFQqWn+h6PPAXw6Gl2GeDrii1VYEqe3bM3bp4RbdsH pUnDGMK2CZ9rMy3AzhEY603B+AyJ69DcrL+aY9mLiVw1c4AbFeZ247fGG9m8X31sn6KG j4rcXV9vHFRp9IfxBPOP/hyRDgqBUC+XX4dbCbbYfUZ0Bqb10o3MJ6XaFdQ+bVYxAPhk KKYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=1PbURS8B; 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 t1si2868715ejb.712.2020.10.28.02.01.50; Wed, 28 Oct 2020 02:02:13 -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=1PbURS8B; 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 S1756798AbgJ0OOu (ORCPT + 99 others); Tue, 27 Oct 2020 10:14:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:59702 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756079AbgJ0OK6 (ORCPT ); Tue, 27 Oct 2020 10:10:58 -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 28DCD218AC; Tue, 27 Oct 2020 14:10:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807856; bh=6yWvqPaJLb9QPFtogwD7zaqC1fkBe7AHoGK/8fkvsm4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1PbURS8Bd5fyA+nUZO7U2bYV+WPOCY0+mbRWAsgsow8Q8vMXbwXkmc76P7OACatuN DsliqpkNBhyL9S9SEqn6WihiIBf6H84U04XLR0nVBIrIcLdQPkW97aKo8ii8tnZcVh /k9Ce11KsZrvIClAONP0xa/UbJMnYx6r5nKzWtW8= 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 4.14 065/191] pinctrl: mcp23s08: Fix mcp23x17 precious range Date: Tue, 27 Oct 2020 14:48:40 +0100 Message-Id: <20201027134912.864499853@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134909.701581493@linuxfoundation.org> References: <20201027134909.701581493@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 12e7f7c54ffaa..5971338c87572 100644 --- a/drivers/pinctrl/pinctrl-mcp23s08.c +++ b/drivers/pinctrl/pinctrl-mcp23s08.c @@ -141,7 +141,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