Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4875090rwb; Tue, 17 Jan 2023 06:38:06 -0800 (PST) X-Google-Smtp-Source: AMrXdXs3fYXGiKhRrwQzm3zZT1BAtLGTZ6WRm3MgFLBrDXEUUNxxRLNiccctdEzjwYTIjqXyZ/49 X-Received: by 2002:a17:906:7185:b0:81b:fc79:be51 with SMTP id h5-20020a170906718500b0081bfc79be51mr3223811ejk.50.1673966286203; Tue, 17 Jan 2023 06:38:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673966286; cv=none; d=google.com; s=arc-20160816; b=IJe7si3ZGkfx8HTQ6PR1sCu22ihDa1r/ssPuaZF+omEJOU/amO1yAATzU0dB7ovl8X +Kpv4apStxakDV3th/VUnRlYFcwb1w3JqQ9yS/RVtSzr7xLaxCks9WQcUEmTmrAZCfWe 7x6DDA+CEfW65waGE8x/+F18wdghHB/Wk5cu7ZAHRcZ7R5At4XUgH2eVMw5VDvqpu7FQ FcwCvWkpYCYrhlqkLTPdAa6mdn4R8SleyFdDgptwbvdWRD08WnAO3QZM1W4ZSSitJmoW C3BqGrxXx4fNDe+MrHRN5IcuZtXTadA4/hp3m7EC4PKDM5Y5c0VIVvJFGWeHrnWJLWgI 6ICg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=EIN8tgDPTuXgplHzHvlrggHwhq0QHb2mTt6h3kM+GJ8=; b=LkXtv62Essn34g0TwNxL3uIXjsVzKfZbA5gtOFvILkamp7P+FJ3ChSIRN22qkvl8zw UgIeLCUx9T/Biv6yQy3wLt+58fk6oUyUPx8HuMRBC0FInkVK0Ei/w/QU/g3YMqnnVgE/ D25XO4HXjpQddRIBbCCJwk3ayI5j+kK6fwNOfh7sWGUhx3bgD/EB44H4ewAJ6BjFxoum HfarxSI4gjF/trik7jsCagAXIz6BVg4mP6FALbnaFfDuuHMm4SGfzAnQ0qidC5O9VUbH bxeGZyz8il2MkoHkL/IRwngvh+mlEmUc7x38+uCteOIWlzIeakB4CdV85/wMRDwer4IJ S2hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ckVXYOF5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x11-20020a05640226cb00b0049e122b20aesi8049672edd.258.2023.01.17.06.37.54; Tue, 17 Jan 2023 06:38:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ckVXYOF5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231610AbjAQONR (ORCPT + 48 others); Tue, 17 Jan 2023 09:13:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231531AbjAQONJ (ORCPT ); Tue, 17 Jan 2023 09:13:09 -0500 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E1F93B674 for ; Tue, 17 Jan 2023 06:13:08 -0800 (PST) Received: by mail-yb1-xb30.google.com with SMTP id o75so34166646yba.2 for ; Tue, 17 Jan 2023 06:13:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EIN8tgDPTuXgplHzHvlrggHwhq0QHb2mTt6h3kM+GJ8=; b=ckVXYOF5+y2LAnZKG+FTJJYY6MVMTU4nj7Xielh2IfruV3XhGYoEs+ss/nUIhAlSXl 4tnRxblyfAvsAZ4NN65CUuCAJ88+QCHQapovfszuvK1v4i+t3BodC0x7BOR2VqDWxDrR LpUoi77Ho7bNDHLzUjT862ck5qVx9DCTMxmk2va4ngGJL8BH95nf9GzBfNOfiS9G95Lz C8BsiEE45b3wZi7xe1b6NwfbMqW/fxvcduqKvde6vksV9Ik75RcfXMi5cLD252cG58H4 D6GqsyG+4Qrx2VXnb4UZOkpjaBVp55PmYbqRTyBb45VXCkX3vw9eT0DEBZHID4lSzONd D95Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EIN8tgDPTuXgplHzHvlrggHwhq0QHb2mTt6h3kM+GJ8=; b=JsYQqDRN7ZDqlESilvRqNhE4dKkfdpYapiT5bMf0Mm3Z78Pnz4mUS0Tv5yPlly4Yx1 kkVKzm/2ySEwrtn2FG9pmaLPHhhxgnljQOCmpV5u8+cYvD5KLu5B9tXjFg31RH+DbjA8 TRu4XjkcEM0OFm6ZXWn3aEN7uwss4IahOnVt0UP9rjzIayybPMv8m1fkMqZFP2louSPy RvhQU1emy9QQ4O7+kQVkSvvRYDXal0LPZdJEX0TZbEGp7d5GKYOUIZp2NZjEtDE4aNg5 KnlJjk4vypaxSzkD9NYXdjDUu7FeJ1EmHyHNhSw/5+StttyVIpwWhKYP1Zzd6fHoj5b+ bSog== X-Gm-Message-State: AFqh2kqW5E7KSQ9QgdEKRxVguDNGuCQQ+daAqVW3ZhUR930ur8XQrfnQ 7oPlZRm6IXlZDx1UqP13Jr4xt8Ki7x458o+b/e/HsQ== X-Received: by 2002:a5b:38b:0:b0:7ca:9b40:72a7 with SMTP id k11-20020a5b038b000000b007ca9b4072a7mr488673ybp.130.1673964787603; Tue, 17 Jan 2023 06:13:07 -0800 (PST) MIME-Version: 1.0 References: <20221220090248.1134214-1-haibo.chen@nxp.com> <20221220090248.1134214-2-haibo.chen@nxp.com> In-Reply-To: From: Linus Walleij Date: Tue, 17 Jan 2023 15:12:56 +0100 Message-ID: Subject: Re: [PATCH 2/2] gpio: vf610: Support building gpio-vf610 driver as module To: Bough Chen Cc: "brgl@bgdev.pl" , "stefan@agner.ch" , "linux-gpio@vger.kernel.org" , dl-linux-imx , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 17, 2023 at 3:01 PM Bough Chen wrote: > > On Tue, Dec 20, 2022 at 10:02 AM wrote: > > > > > From: Haibo Chen > > > > > > To support Android GKI, need to build this driver as module. > > > So change the config as tristate type, and add module license. > > > > > > Signed-off-by: Jindong Yue > > > Signed-off-by: Haibo Chen > > > > OK... > > > > > builtin_platform_driver(vf610_gpio_driver); > > > > Then you want something like module_platform_driver() here. > > Hi Linus, > > Here, though need to build this gpio driver as module due to the Android GKI, but we do not really need to > rmmod/unbind this driver, so do not need to implement the _exit or remove callback. > In this case, still need to change to module_platform_driver()? > If so, after use the module_platform_driver(), is it okay to not implement the __exit /remove callback? Yes, our project is about maintaining and improving the Linux kernel, GKI is not a project we are running. If they need stuff from Linux, it happens on our terms, and that is that modularization should be self-motivated. Check this article: https://lwn.net/Articles/872209/ Yours, Linus Walleij