Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2032796ybh; Tue, 14 Jul 2020 13:50:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxQQcVgmyUntZ89VbY6jFdQBq5ZMporTAo4yXU2y6sMfV/OJ5fILMj/TJySeahyL3vz7Bc X-Received: by 2002:a17:907:20b4:: with SMTP id pw20mr6466143ejb.225.1594759845324; Tue, 14 Jul 2020 13:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594759845; cv=none; d=google.com; s=arc-20160816; b=nn1H4ig9nYp5cSKVZssmRbC/wbxudR3Zf0Ky6+mQcPcC3hc9YSp2UlQZCRI3Ez3gXy 4UwX+7qU2ddZbdRqCMZS/9CnFnud4oUb9oQq2Q+8jwHWzMQm0dKU3D9zoy42hgNq/oJC ElKQMFp6ncb2Snz5f+HjN6iwSYykuo+bdBM6fJBNvJ9Z1Vg/I4sCq6gLwy9eqhviWlOA 0QPsEAno0v8XtOjv0eCzcd3EIRkYOeNkyiEnwu48Z3BtIhcU4/o6txE+I7M4jLysEIU2 XdbH6cyKz/wQ+QTqDGOr5WUzzNigyQaTFSKUZ5ayVWEk9qLlpt0AjgVsqBCpwj47VJzn xrpg== 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=+RumoNCpKV0ClisGmHxak1rvy4suTn/jSNYuiwDK5lg=; b=kKIyflzdayac3NVAOgf7g+T2n7yIp4gSqHoNR/TAQD+8uDVocL250NlVk61AcmWzVT yeC+bItlJbrVVhgIIxcr3odnT33xPbK01uQsJIvrsDusscpvZTPyrzId/Z+4XxkR9P7v jEBTG/uj1d9rLDfIbVqn+GOtz16HUlUbdX8lihDCq0wUYo2yph4Fsyw4YLZhSeHaf6jM He7vH7qC0dn51GGvqNhPG8l8yJ6+TJ1bfiJRe3TkWWD6RErmB5sRtO9okfTllnwECqKU 36vaV4+1cBt8Rm39uy9ZwckqrOPvskNZiPeq7hdc8JfmXKxi57V3VQ8oBc/I0bFXY0k3 zFXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sYIvu3f1; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si5230503eja.223.2020.07.14.13.50.21; Tue, 14 Jul 2020 13:50:45 -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=sYIvu3f1; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727817AbgGNUrf (ORCPT + 99 others); Tue, 14 Jul 2020 16:47:35 -0400 Received: from mail.kernel.org ([198.145.29.99]:59682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726858AbgGNUre (ORCPT ); Tue, 14 Jul 2020 16:47:34 -0400 Received: from mail-il1-f181.google.com (mail-il1-f181.google.com [209.85.166.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2D4792065D; Tue, 14 Jul 2020 20:47:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594759654; bh=AW8Fhw54zyXMIIci6R4Vy13WT2UOAWtC/jxlBSMDeZA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=sYIvu3f173B017/4ldlM0SC5lETWMyt6khC6MQ5xwhlIu0Ndqh3De7uCSwP+2rpVC vnUGQHRaoYn47Eqjcm2O4taCzxYq6uFKmVPiy2GPCO73etSHnkH01hOy1PmbO6a4Wh VyAXCWP+Jq3GSfPFE7nYN96XRbQYXtiOemHgPwe0= Received: by mail-il1-f181.google.com with SMTP id t27so15369431ill.9; Tue, 14 Jul 2020 13:47:34 -0700 (PDT) X-Gm-Message-State: AOAM530tMk3qu8avPBBWa9ZNABeCaDpW6E4VdytSwABXXUJPObPPnEmZ sNK/sBKfZ6X+tOQpGqRFFMUrjA41BBvpqqETR1E= X-Received: by 2002:a05:6e02:f42:: with SMTP id y2mr6628078ilj.264.1594759653637; Tue, 14 Jul 2020 13:47:33 -0700 (PDT) MIME-Version: 1.0 References: <1594718402-20813-1-git-send-email-hanks.chen@mediatek.com> <1594718402-20813-4-git-send-email-hanks.chen@mediatek.com> In-Reply-To: <1594718402-20813-4-git-send-email-hanks.chen@mediatek.com> From: Sean Wang Date: Tue, 14 Jul 2020 13:47:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v8 3/7] pinctrl: mediatek: avoid virtual gpio trying to set reg To: Hanks Chen Cc: Linus Walleij , Rob Herring , Matthias Brugger , Michael Turquette , Stephen Boyd , mtk01761 , Andy Teng , "open list:GPIO SUBSYSTEM" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , linux-arm Mailing List , "moderated list:ARM/Mediatek SoC support" , lkml , wsd_upstream@mediatek.com, CC Hwang , Loda Chou , Mars Cheng 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 Tue, Jul 14, 2020 at 2:20 AM Hanks Chen wrote: > > for virtual gpios, they should not do reg setting and > should behave as expected for eint function. > > Signed-off-by: Mars Cheng > Signed-off-by: Hanks Chen Acked-by: Sean Wang > --- > .../pinctrl/mediatek/pinctrl-mtk-common-v2.c | 25 +++++++++++++++++++ > .../pinctrl/mediatek/pinctrl-mtk-common-v2.h | 1 + > drivers/pinctrl/mediatek/pinctrl-paris.c | 7 ++++++ > 3 files changed, 33 insertions(+)