Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp292433pxu; Wed, 14 Oct 2020 01:08:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpm1mVCWUwQxkgNslKoV1d5qHS97yL1XQFPDzz4495RSZagpP6dPPw6MYLfHpTHgvU18vT X-Received: by 2002:a17:906:c095:: with SMTP id f21mr4221171ejz.108.1602662901299; Wed, 14 Oct 2020 01:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602662901; cv=none; d=google.com; s=arc-20160816; b=cX7Q1rk7rUFxAdInN8czCvICaJz827sNNylfG9yGqDnu8xJPRKwjxSc8DUZ748zszw q7NSO1iRXfEm+jhOZ0FZ2k9JVRkxP2fKXJUX8j9/kMnO8JhKEpegn9+K6w9eA4vfOoWY H9R/pxI99LBSF7d4MuUCv+fdASOjC54Drn0F2X3TLUw64TdmGsTyknnLww3+Ocy5IQrn mwZUnqx5pYTsO2TnQa2MmesEgvYmfsHv5e41w+/Q22HYlSDpFtETQDLPgnpfQIVS9Oqg tWN4lrBmZmfATzuN2O+bTbpW5epY/8liF+UEbm1kVG12sowR9YtLe8k6Hyto3Wg6hR6d gbfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=9swz5BB98E0I/4DiPbGAZaKBMrQANDR+HjtJ2h1cAp0=; b=NdA5i6BU7Z1W1T1+sWKmx4CfxwTvkETxhwep0RzieJI6gb/WzzCM0HzdnQr3b7bPdu XzaM0wKgOjCrhRVgKCWKp0llT8Vbc+AoWcKP5icuS2YRVvblJFbY0xwR5YZ4xjcH65UZ RuVDQVFGEuUwxPFUxOkCHFyxb3SSDBPpfcSgYXtQdce8T6aaUsdrZXbXyGlyWl6OoqqB pTdRhPddbryM9WA4Xv2mSlHwWdy16sXjLuOVYKgZT1FjQGh68Ri73qQg/h5s8zBBj/Dj 35xMY74+tN3Th67dunzHsJIYzLU5YAz8TR3/oJqeHfEI2pUwhMLAxdVotHHk6CABe5kQ YH5w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y9si1692098ejq.143.2020.10.14.01.07.59; Wed, 14 Oct 2020 01:08:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389620AbgJNAaW (ORCPT + 99 others); Tue, 13 Oct 2020 20:30:22 -0400 Received: from regular1.263xmail.com ([211.150.70.206]:49820 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730493AbgJNAaD (ORCPT ); Tue, 13 Oct 2020 20:30:03 -0400 Received: from localhost (unknown [192.168.167.235]) by regular1.263xmail.com (Postfix) with ESMTP id 76FD739E; Wed, 14 Oct 2020 08:23:44 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-SKE-CHECKED: 1 X-ABS-CHECKED: 1 Received: from [172.16.12.120] (unknown [58.22.7.114]) by smtp.263.net (postfix) whith ESMTP id P2981T139638898628352S1602635023646159_; Wed, 14 Oct 2020 08:23:44 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: <057012ada3f62f389750076c22335d90> X-RL-SENDER: kever.yang@rock-chips.com X-SENDER: yk@rock-chips.com X-LOGIN-NAME: kever.yang@rock-chips.com X-FST-TO: linux-rockchip@lists.infradead.org X-SENDER-IP: 58.22.7.114 X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 X-System-Flag: 0 Subject: =?UTF-8?Q?Re=3a_=5bPATCH_v3_1/3=5d_pinctrl=3a_rockchip=3a_make_driv?= =?UTF-8?B?ZXIgYmUgdHJpc3RhdGUgbW9kdWxl44CQ6K+35rOo5oSP77yM6YKu5Lu255SxbGlu?= =?UTF-8?Q?ux-rockchip-bounces+kever=2eyang=3drock-chips=2ecom=40lists=2einf?= =?UTF-8?B?cmFkZWFkLm9yZ+S7o+WPkeOAkQ==?= To: Jianqun Xu , linus.walleij@linaro.org, heiko@sntech.de Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org References: <20201013063731.3618-1-jay.xu@rock-chips.com> <20201013063731.3618-2-jay.xu@rock-chips.com> From: Kever Yang Message-ID: Date: Wed, 14 Oct 2020 08:23:43 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201013063731.3618-2-jay.xu@rock-chips.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/10/13 下午2:37, Jianqun Xu wrote: > Make pinctrl-rockchip driver to be tristate module, support to build as > a module, this is useful for GKI. > > Reviewed-by: Heiko Stuebner > Signed-off-by: Jianqun Xu > --- > drivers/pinctrl/Kconfig | 2 +- > drivers/pinctrl/pinctrl-rockchip.c | 13 +++++++++++++ > 2 files changed, 14 insertions(+), 1 deletion(-) > > diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig > index 815095326e2d..bc9774c1ae8d 100644 > --- a/drivers/pinctrl/Kconfig > +++ b/drivers/pinctrl/Kconfig > @@ -207,7 +207,7 @@ config PINCTRL_OXNAS > select MFD_SYSCON > > config PINCTRL_ROCKCHIP > - bool > + tristate "Rockchip gpio and pinctrl driver" > depends on OF > select PINMUX > select GENERIC_PINCONF > diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c > index 0401c1da79dd..927d132d6716 100644 > --- a/drivers/pinctrl/pinctrl-rockchip.c > +++ b/drivers/pinctrl/pinctrl-rockchip.c > @@ -16,10 +16,12 @@ > */ > > #include > +#include > #include > #include > #include > #include > +#include > #include > #include > #include > @@ -4258,3 +4260,14 @@ static int __init rockchip_pinctrl_drv_register(void) > return platform_driver_register(&rockchip_pinctrl_driver); > } > postcore_initcall(rockchip_pinctrl_drv_register); > + > +static void __exit rockchip_pinctrl_drv_unregister(void) > +{ > + platform_driver_unregister(&rockchip_pinctrl_driver); > +} > +module_exit(rockchip_pinctrl_drv_unregister); > + > +MODULE_DESCRIPTION("ROCKCHIP Pin Controller Driver"); > +MODULE_LICENSE("GPL"); > +MODULE_ALIAS("platform:pinctrl-rockchip"); > +MODULE_DEVICE_TABLE(of, rockchip_pinctrl_dt_match); Looks good to me, Reviewed-by: Kever Yang Thanks, - Kever