Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7495650imu; Thu, 27 Dec 2018 22:36:25 -0800 (PST) X-Google-Smtp-Source: ALg8bN7Q12h1qa0lHeUudH2huCCsPQKNPhWocO6Pus7YXeZ64BfzkXOjRgGXkwH5O1ibQoS2v8kU X-Received: by 2002:a63:9d05:: with SMTP id i5mr23437722pgd.98.1545978985734; Thu, 27 Dec 2018 22:36:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545978985; cv=none; d=google.com; s=arc-20160816; b=QFvPu73dvZ5QCZ3p5UdwW8whSMLpF2YnO6ljMxdHeU7hTIlQVki+wt2jsPlhgdXLDD j5TRFmKyUtGQ5nlBnsR6mvA2zQ7xmYm07C+0m7EZte/r+xYeazya8DM7hWhwwJSE/dK+ LJE5X3P+j4r8GDf7bGnqzXopaRG/xNkiXIFzPvNv+5b33qdsAidc8SyMAj/BZLzCtDbU OhEUOUbb4RZ8w9Wj6kFQG1txuGHlTDT5ElTvoUM21xidfQciUKljrMt7HI1jTBvh43uZ LEvfJb9FosbRmOh1iYmXAE2ZYAYcePPJHW4wiZ/5/45gyIrivb9UVPAShgAtG4pl8pDS ZAwQ== 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=dCmgAwYBfCn1HIb94bG7FR/+vK06Dd750c9MLSsYbXY=; b=NJ0z8IgfVKGfQ1F3HECS+41yPjaDuKVsrNEZ4MSBrEfxs5ToiqlqEo5PpwdgnNyT+z 9bcZz+qHO7uJrCPk7YfOGsToE4LXXFobXwMB1rlVtPliuYUX9NnE4vngDQXWvSc+h6KO aArVsFiHfzExSSG+HURsKr5DOXcdcg2+fBZrO1rnkLqH0qvpE9bxFPobu7974yFHqafG WYJgQhqtFC4CixQusMez4pHrOazXfA99bVjSf7D3fIXC5vaQao1dj8/AWmbaRLYTR43R TFu+7TkZrBnFPAAC52VFCUioDqcFV+vKWvNQBRQUaE8KxXW+EOto7ujTxr1tzp6dvojL UAEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VJnW4UmV; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si37225004pfi.12.2018.12.27.22.36.10; Thu, 27 Dec 2018 22:36:25 -0800 (PST) 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=@kernel.org header.s=default header.b=VJnW4UmV; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728894AbeL0TP5 (ORCPT + 99 others); Thu, 27 Dec 2018 14:15:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:55850 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726466AbeL0TP5 (ORCPT ); Thu, 27 Dec 2018 14:15:57 -0500 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 2F29921901; Thu, 27 Dec 2018 19:15:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545938156; bh=siPBobBc8ANH4OmhcEB4D7rA7WVJff/bLBSWLKVb3hc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=VJnW4UmVJIWyha0qlm7hNlC/qOnc8ecpqxeViWR6MedA1pK2KSTYEZ5l3HcKhVMB8 Ez3q9x8adRP/6alBn1QfOFCxYjzZrdWg27I0g4p2zZ7LOroxldwpo1pxqCuWgvQp3L S9eiPqxm2k4+8Hn6ZxKCCRq7WcjbXU9kTHsqZjlc= Received: by mail-wm1-f48.google.com with SMTP id f81so18167759wmd.4; Thu, 27 Dec 2018 11:15:56 -0800 (PST) X-Gm-Message-State: AA+aEWYpvSXlOcvAnSX92Kem476iWVcBbHNNed5mGKInz5OeY+Pva6lT 2jcVUz0OQZWMS1/OALjjmx3TjdmbUUuisElPhuE= X-Received: by 2002:a1c:2e43:: with SMTP id u64mr22911478wmu.52.1545938154592; Thu, 27 Dec 2018 11:15:54 -0800 (PST) MIME-Version: 1.0 References: <1545711838-20444-1-git-send-email-chuanjia.liu@mediatek.com> In-Reply-To: <1545711838-20444-1-git-send-email-chuanjia.liu@mediatek.com> From: Sean Wang Date: Thu, 27 Dec 2018 11:16:09 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3] pinctrl:mediatek:add EINT support to virtual GPIOs To: chuanjia.liu@mediatek.com Cc: Linus Walleij , Matthias Brugger , linux-mediatek@lists.infradead.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, youlin.pei@mediatek.com, eddie.huang@mediatek.com, zhiyong.tao@mediatek.com, hailong.fan@mediatek.com 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 Mon, Dec 24, 2018 at 8:25 PM wrote: > > From: Chuanjia Liu > there are still some nitpicks an empty char should follow the ':' char > Virtual gpio only used inside SOC and not being exported to outside SOC. > Some modules use virtual gpio as eint and doesn't nedd SMT. s/nedd/need/ > So this patch add EINT support to virtual GPIOs. > > Signed-off-by: Chuanjia Liu > --- > change note: > v3 : 1. modify subject and description > 2. modify comments > --- > drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c > index 4a9e0d4c2bbc..a0db145f798d 100644 > --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c > +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common-v2.c > @@ -290,7 +290,15 @@ static int mtk_xt_set_gpio_as_eint(void *data, unsigned long eint_n) > return err; > > err = mtk_hw_set_value(hw, desc, PINCTRL_PIN_REG_SMT, MTK_ENABLE); > - if (err) > + /* merge the second line to be consistent with the other comment blocks > + *SMT is supposed to be supported by every real GPIO and doesn't an empty char should follow '*' char to be consistent with the other comment blocks and also in the other lines starting with '*' > + *support virtual GPIOs, so the extra condition err != -ENOTSUPP > + *is just for adding EINT support to these virtual GPIOs. It should > + *add an extra flag in the pin descriptor when more pins with > + *distinctive characteristic come out. > + */ > + remove the blank line > + if (err && err != -ENOTSUPP) > return err; > > return 0; > -- > 2.19.1 >