Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1158201imm; Wed, 17 Oct 2018 14:31:18 -0700 (PDT) X-Google-Smtp-Source: ACcGV61vp24Er92isyB2Ed5aUptjG93KsqOyZi2TU08GoqlL2v/l0VxO9cPXZPpjf2C6Qorylcpt X-Received: by 2002:a63:e116:: with SMTP id z22-v6mr25442688pgh.20.1539811878849; Wed, 17 Oct 2018 14:31:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539811878; cv=none; d=google.com; s=arc-20160816; b=Tf8WXZGNvehJmrvDy2dtUdUpmLDz/qDG7RgqS/y9JpCvokjvYWiSy40SgGYypjiar5 jHvuFTxmvX7JtesdhfRNPWpKHXckDDIXER/YAZ/N/NgNpjT5AI/tVYaO5nfmL1xOila2 YtGcvYyrnGcmd17yNA+4+HbF0GccQtTYcgCXezMWWdnwKj063LB6S8VGhEwcvrfMfmRT MY9zSUQFQJnI67Up3bTpGl3jElmAARD47K5GEGmPyqHZ5arxFaajpv26iStOk6cjbCn3 ulI9zmfh0sf4hrOaVbQ3R5inX1NYB0ry2fgHgaWwEE2rcqvJLm3pc6aDmE4Kwas5lwnf PetA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:mime-version :message-id:date:dkim-signature; bh=tp/fioYie4gVi2ET9bXwNR4jKJ+EDQoZn/CxhLSSFvE=; b=myrlZ+DTQFVFHkMPB4Gtl692XHetHCxf1/sHzhWliWjcOoI0fbKJc0t8qv8QYxAKIa BuUNCSe11VBtTYJ5rpGPC7EQlIkrC+tZ0mfuKlzbsrRTKOezrDT3GinGHKOhOi2A0rC1 tXrDy1Tw7ItYJDwR6Twb5Y6o9hgdFRL4aMFrpWjBlRRZL16ey8j/f/yUu68Xkyx5UKVv lAZdju7ANMGu3Io8gb1CIEkPyfwYBTbOptFbHbzYHOqIdi32b9tpVa9eQZ0N1hjr0dxP 8aY4sPpiVwSXcg6ZexXj3igfkCZAVtmhBWyUmo/8keNTYKXYKNVWUMbg/8xbs6amEtBz FlCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KpTcVMDf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i21-v6si19239007pgj.51.2018.10.17.14.31.02; Wed, 17 Oct 2018 14:31:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=KpTcVMDf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727223AbeJRF2K (ORCPT + 99 others); Thu, 18 Oct 2018 01:28:10 -0400 Received: from mail-qt1-f202.google.com ([209.85.160.202]:36855 "EHLO mail-qt1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725745AbeJRF2K (ORCPT ); Thu, 18 Oct 2018 01:28:10 -0400 Received: by mail-qt1-f202.google.com with SMTP id u28-v6so30512974qtu.3 for ; Wed, 17 Oct 2018 14:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:message-id:mime-version:subject:from:to:cc; bh=tp/fioYie4gVi2ET9bXwNR4jKJ+EDQoZn/CxhLSSFvE=; b=KpTcVMDf7FDEEh5CnHBCd4N3OqR97cVx7oqogIhpPs2Xo6fef+/IqYeV73txA+dqju 7seIK41s9QjHACgz2+nGPsCoYm5V4Oo70wRjBU71sTOT+ioA2X9rufxSdTqF91QiqaGU QVmkV6M/ZSUdHqmoWJGO8aLUbJriDQ8Ix7/ymD3YBBMQesgODK7i55FBcAub9MSlWJ18 MzojoByBv1tsznUDiKCX5sIIBBo4sMHqBvMoFd4tpT+JU8z3VU3llhGJW/OC9nkK1ODf m5buyex/j8PSABCdLsEXFZMvOLwpXwrKZ+qWsYayK/eFlvE9V3MR8MosAsOLLIvUWXma 4RfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:mime-version:subject:from:to:cc; bh=tp/fioYie4gVi2ET9bXwNR4jKJ+EDQoZn/CxhLSSFvE=; b=tOOSZrg3tg5DaYdPkfodlUY2rYRzIgdclhOQhXgi4iRx3gErAIe+aKgKEFfXaWa4fQ DqZpSrn8olj7goWPTlEPmVOQE3nu+ahpGlB0IERTbmYHqb5WV65Ra1qYhNrhwlkBXxhI cfgDfPybam0iAYaoAiKJ8y/hPIbJQyY0Jy8Dq/axCZK1kOCdrlAs1EFcpCE3mRRwjqBO /Q+9HuZ6QlYw6umZ9SIEzaKmVUE3scTuIqoXiABnlBTXbpLRXxmsBm17uCZuhtKMi183 pfUHSrF6q4vEzwh1/p8adLVOxZC6B1zn3Zhxkd5xcizdF8DbadiQ8kvMGIks7/U/AmM5 srRw== X-Gm-Message-State: ABuFfog2WlbOX/dYhBafJ0eCAbMzw4iN50ySRK7mSKE9f+iYeg9bdE69 gcBF/tfVa0XLzxJwMcH04v/grup1hQ== X-Received: by 2002:a37:3a86:: with SMTP id h128-v6mr22811861qka.4.1539811834842; Wed, 17 Oct 2018 14:30:34 -0700 (PDT) Date: Wed, 17 Oct 2018 14:30:10 -0700 Message-Id: <20181017213012.233957-1-kunyi@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.19.1.331.ge82ca0e54c-goog Subject: [PATCH 0/2] Allow gpio-mmio to co-exist with pinctrl driver From: Kun Yi To: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, tmaimon77@gmail.com Cc: linux-kernel@vger.kernel.org, avifishman70@gmail.com, openbmc@lists.ozlabs.org, Kun Yi 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 This patchset is to resolve an issue found with Nuvoton pinctrl driver when it uses a generic GPIO interface. Since the generic GPIO driver stores the bgpio_data and bgpio_dir shadow register values and later on modify based on the stored values, any change to the pin states in between by the pinctrl driver is lost. Kun Yi (2): gpio: gpio-mmio: Allow volatile shadow regs pinctrl: pinctrl-npcm7xx: Set BGPIOF_VOLATILE_REG drivers/gpio/gpio-mmio.c | 50 +++++++++++++++-------- drivers/pinctrl/nuvoton/pinctrl-npcm7xx.c | 3 +- include/linux/gpio/driver.h | 2 + 3 files changed, 38 insertions(+), 17 deletions(-) -- 2.19.1.331.ge82ca0e54c-goog