Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp479999pxk; Sun, 30 Aug 2020 10:44:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwLwDuh4HgflpRqJgxvnjGl+JK0EJLYT9T0sAJg2wsg8VepVaNENuAYBAEUz3Aq/ZberUwG X-Received: by 2002:a17:907:43f6:: with SMTP id mu6mr8969986ejb.244.1598809492743; Sun, 30 Aug 2020 10:44:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598809492; cv=none; d=google.com; s=arc-20160816; b=0ITnim7tigl5A145oTAQanVL8s1pc+Fz7QDEfyyvnDQK1zMaYPsyE1vKud9/eMS/Nr oShNuLOE+W4pPzG3Ah+/558hBXu32OWOKKy2in5emxX2KtBXxrUKgPFSxtxZ4Jgls/XA mY3S7Hqm6rpzizC3164Dnx2Vv8KfxpOvAZRFHAgqvRfXX1m0tdRXe9LbaH3LiKKS8uSm yOwImQ1Q7QeBhVZbQ32ElZEe8KzN351tvjpSxd7VmNXbuYnFg76yXiFHgJaQfjL98WbR Xs+yB3y2GQMYme+IzYXMo7vRiN8a1kCtoyGfDI+m8vkO4IpKU5cszatDGtE4cQzE58d4 1bJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=gllTnfpjhA71bQa3AHonqvl1Wti0WUACZxPWejafO/Y=; b=VYSUwSnvkokCFskc7nAXSoBsPTTmAtxeMYVV1mTyxtZ5T0VE0LCBFyco/hQmAdcNy4 sKlSyFujo8woR+J0pi+p+cZ3UXu0FPvKcSpDzpUdcDSfD2vamuTFmlXv48KB+x+O0/aJ JkQTPHmeaMicH1Od40ZP9bgdgXEoZwV0lkUr7/dyxkc74Q1Qs8C04XkAhA6hBo2acqgH qbdu0BMl9x8V/iD40PIE/zh8UUiBayYcuiP/3eMkHa/0YD03LyLrhibGes2IFE96gwxv KM2UeicEJx52ICDxZppUNL0hGBA5WPIyEWflMiNPLnOjLgk8EUlT5I8YB4iS6Uu+J3PF PIRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=aNTY8VtI; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si3741681edx.532.2020.08.30.10.44.29; Sun, 30 Aug 2020 10:44:52 -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=@gmail.com header.s=20161025 header.b=aNTY8VtI; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726178AbgH3Rnz (ORCPT + 99 others); Sun, 30 Aug 2020 13:43:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725825AbgH3Rny (ORCPT ); Sun, 30 Aug 2020 13:43:54 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5430BC061573; Sun, 30 Aug 2020 10:43:54 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id d19so2991471pgl.10; Sun, 30 Aug 2020 10:43:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gllTnfpjhA71bQa3AHonqvl1Wti0WUACZxPWejafO/Y=; b=aNTY8VtIuFAE7L7IoX8HyazHeu3tNOCdjOiJq/ylr78l47+28zGNqsn0W8SxZnFA0e 839PVyt81IkcegqvlRR+A081oDz4VRaVOi/7/sFsxUahal6JYlW3y6Unux8nGnqNVWdi Sl2Wmk7HG16lXOvcsfrmKNHsE2ZCBmrVMqTf/PJimTKt2vF01qD+ILEkYeEGhuwITIop yZgOfE1qTxnOuWE12d4viV5n9dm0zfUUIAFJPKRvUJ1qA/41uJs9ZUrMsmpbAKEaZBKh UmLvrct6KOiiw6xUzVGLp7US83siB9JBgqBI1DDiZesPjpzD55fUQbSZoCxILhtuTSJ+ LGDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gllTnfpjhA71bQa3AHonqvl1Wti0WUACZxPWejafO/Y=; b=RPpM5CmEBx6T3tknI0Rw+syfGf/n3byotVptcFeXp04qivB5OMZfYlfRq4mc5DKPbh 1lZ6wU/ALhx5Jjsf61lM/sW07nmewu4dey/zurG7THblOTjnhW3vmBGGXdnMH3X6zWPj 2fvB8hPFWj7BiDE/Hm/e92YClP21kC0PfPwUWRjUEloKLZLUIrFALyrKc6jTG5QzO8PU JQtbNFELycNETVAXxFa3JHr11xg+VxCyM9X8o7b0z0ywYLbdtia+pY6PmlwvVHDJaGnh yuet9gySPxyLgBzjUSK0dTq3wCuC3XqWJSVSFQn6KYRiCwNVzeuoSa0fmkxepC7GI4rB 161g== X-Gm-Message-State: AOAM532onjLe0qVUiYVSWNcoiPvY09YAF2wsTuVe97z3prAM15MNors5 hCuK0QqUWDr8A64bI9iYVDKF5QmWcEaJrdaFKCk= X-Received: by 2002:a62:7c86:: with SMTP id x128mr1133707pfc.268.1598809431997; Sun, 30 Aug 2020 10:43:51 -0700 (PDT) MIME-Version: 1.0 References: <20200828213226.1734264-1-thomas.preston@codethink.co.uk> <20200828213226.1734264-3-thomas.preston@codethink.co.uk> In-Reply-To: <20200828213226.1734264-3-thomas.preston@codethink.co.uk> From: Andy Shevchenko Date: Sun, 30 Aug 2020 20:43:35 +0300 Message-ID: Subject: Re: [PATCH v2 2/2] pinctrl: mcp23s08: Fix mcp23x17 precious range To: Thomas Preston Cc: Linus Walleij , Sebastian Reichel , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Andy Shevchenko , =?UTF-8?B?SmFuIEt1bmRyw6F0?= , Phil Reid Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Aug 29, 2020 at 12:33 AM Thomas Preston wrote: > > 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 I would convert it to tag Datasheet: https://... Maybe Linus can amend this when applying. > Fixes: 8f38910ba4f6 ("pinctrl: mcp23s08: switch to regmap caching") > Signed-off-by: Thomas Preston > --- > 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 87cde8fb08dd9..7edb067f5e76a 100644 > --- a/drivers/pinctrl/pinctrl-mcp23s08.c > +++ b/drivers/pinctrl/pinctrl-mcp23s08.c > @@ -109,7 +109,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.26.2 > -- With Best Regards, Andy Shevchenko