Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2267912pxk; Sat, 5 Sep 2020 15:24:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwbUG4qhbX6Knahix0tRSaSqAQnQhNIANJjUsWJqfRWwpr5yCpEp+onMuZCuGo99hnZisGk X-Received: by 2002:a17:907:7206:: with SMTP id dr6mr14683330ejc.546.1599344660324; Sat, 05 Sep 2020 15:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599344660; cv=none; d=google.com; s=arc-20160816; b=PREMk5rZCVYDomWzkGZnI6qGa2q418Viy7n2uxYQpgfrDYG3ztQeWI+WFBAs0ncct4 lkQCywu80wq6AYuUcLdw+0nsBmkHHeW/evKv8eQO2xb7PrH/FRDPWOSVeP54j9JTXpBr NtO2ONLK4Q5dT2AhFQAGXQ8BuBKQLakgztqkaBNsImBX8v5MH8bVrW8k2qt+Xsdaxmvk jIMUdvsh+IT/ACWhAGksoa3tf1VQzgEfOqXVzPCyHwhHoOiA7pnV3d/V0ykl/wvhHm8s mJu3vep2dxSkBg7pAbgXMtrfPpep1X+luj5AD4NXVP1fjZzsddttRE8+y5Ct17rSiVAk 96VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IGC/JH7/u2JOl07Uxz7ttO8FLnQU9ENZgeTioi+4DsQ=; b=TalHK1Fn6UZ5iTrl+OLAdWVunau9TweUXRq6x3e8eECFzUxNqT4veB2pOWz4+e9zHH l0z53+xhgPnuhEp6wNaTQw2rUO2rqDNy2ZhNdBL4o4Zezr2QG+8qq6hvqXowSk4N00je h46CvLy8kw+6KqqOlNFi9osiYohTaMfJdI/8BUB0ORDJtcKBLdNLg6LVPL3VJhG9FFrG ypHzDRxsAseEoJjOOsnLl2cpU78ydxIESmAFbA6K5uq6N70TcrQ4J+SmLldkcjYqbPwk cn/w+0v0hNnnKpTySSBg3y6Fiom9TTZUJ9d7VMkyIaTiNMZ88hriUTrQdMb9YEBHGi8r h+TA== 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 b11si6719492edq.546.2020.09.05.15.23.56; Sat, 05 Sep 2020 15:24:20 -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 S1728663AbgIEWXN convert rfc822-to-8bit (ORCPT + 99 others); Sat, 5 Sep 2020 18:23:13 -0400 Received: from gloria.sntech.de ([185.11.138.130]:33906 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728103AbgIEWXL (ORCPT ); Sat, 5 Sep 2020 18:23:11 -0400 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kEgaT-0005tc-Kq; Sun, 06 Sep 2020 00:23:09 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: linus.walleij@linaro.org, Jianqun Xu Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, Jianqun Xu Subject: Re: [PATCH 1/6] pinctrl: rockchip: make driver be tristate module Date: Sun, 06 Sep 2020 00:23:09 +0200 Message-ID: <2623687.OKfBHSCOjT@diego> In-Reply-To: <2671833.MsR7uBhjTv@diego> References: <20200831084753.7115-1-jay.xu@rock-chips.com> <20200831084753.7115-2-jay.xu@rock-chips.com> <2671833.MsR7uBhjTv@diego> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Sonntag, 6. September 2020, 00:01:55 CEST schrieb Heiko St?bner: > Am Montag, 31. August 2020, 10:47:48 CEST schrieb Jianqun Xu: > > Make pinctrl-rockchip driver to be tristate module, support to build as > > a module, this is useful for GKI. > > > > Signed-off-by: Jianqun Xu > > Reviewed-by: Heiko Stuebner I take this back. What happens when you actually unload the module now? I checked and all the pinctrl stuff itself is using devm-functions so should be safe, but you're missing the platform_driver_unregister part that should happen as well. Heiko > > --- > > drivers/pinctrl/Kconfig | 2 +- > > drivers/pinctrl/pinctrl-rockchip.c | 7 +++++++ > > 2 files changed, 8 insertions(+), 1 deletion(-) > > > > diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig > > index 8828613c4e0e..dd4874e2ac67 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" > > select PINMUX > > select GENERIC_PINCONF > > select GENERIC_IRQ_CHIP > > diff --git a/drivers/pinctrl/pinctrl-rockchip.c b/drivers/pinctrl/pinctrl-rockchip.c > > index c07324d1f265..24dfc814dee1 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 > > @@ -4256,3 +4258,8 @@ static int __init rockchip_pinctrl_drv_register(void) > > return platform_driver_register(&rockchip_pinctrl_driver); > > } > > postcore_initcall(rockchip_pinctrl_drv_register); > > + > > +MODULE_DESCRIPTION("ROCKCHIP Pin Controller Driver"); > > +MODULE_LICENSE("GPL"); > > +MODULE_ALIAS("platform:pinctrl-rockchip"); > > +MODULE_DEVICE_TABLE(of, rockchip_pinctrl_dt_match); > > > >