Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp115834ybg; Tue, 28 Jul 2020 01:10:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhnp1PH1cfTeOL7z91GsMKQbko8gO6D2nU3HvqYxZjZq8+XeeCCCHx9A4dMkgd/JP5NtND X-Received: by 2002:a50:9e6f:: with SMTP id z102mr15080494ede.300.1595923821914; Tue, 28 Jul 2020 01:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595923821; cv=none; d=google.com; s=arc-20160816; b=ZKlxE3jL0l1F+vc2tM2G+SXosbwrQH1XoPUYprueBUVrzasvuibRFyCgoa2S3OAa9H YN323EpAyA9Ux8rfU4mo9ktn1RlMirTSrmWq/R3FcAkC37hoUGYeTlqM17EmUPdgkAs+ /JFKzRnBM6C1N+ST9PBUVEiaahfH1lixYaFR5zqNh+be5AxIEBc5psc2ij1PSqPNquHV ZLVF3eqcdMzz9jwR5yW2Zh+md6wLrV2ZWsNWWSfTnPIRx4dts2hmmKTjZ6RGVONQT0Vj tsI024JCk4Oc9ogdaiHz+oYSMwzErS6iimdo9K1iCYxMateoH/KigZGQzUb2Gx9e0YLF P70Q== 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=refqiK2IWlQ3mOTyFeqnVmB/kSEzmm9CW2c4TQojIKs=; b=O15YTosSNuS5NBq3fUgLw1V+w2wb0gd/noWw59nNl/9IQpeU90IGE6rniV2qKJG/hB 1Jbui5xSRLDI3kl8JKPXz7A5sUPqs8fK93TY9EveQuoxuAiaM2zHFi/x1eWOGZnJ78uv /CrtbYCnj5AxcQiai+oHrVnkz7rT6uUi3ga/UxyVLvOZ8t7VO6tOcO3nqatk1DgJpLYQ KjBzor0jdKb7l4WvmQ/hLqSLBEhqfxfjB9ce9kiVn0TcGw4AZkRJOOybsewMjuQEGBfE R8Tqj+vkxPj+9Okil7xxVvzXMtRrWgK7dbz6S+a/wLhvPMtq7mY+4FVtiHwGzZ7Y3xJq O2ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WfCuIF+N; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f1si3211036edw.580.2020.07.28.01.09.59; Tue, 28 Jul 2020 01:10: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; dkim=pass header.i=@linaro.org header.s=google header.b=WfCuIF+N; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727871AbgG1IJr (ORCPT + 99 others); Tue, 28 Jul 2020 04:09:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726032AbgG1IJr (ORCPT ); Tue, 28 Jul 2020 04:09:47 -0400 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E49FEC061794 for ; Tue, 28 Jul 2020 01:09:45 -0700 (PDT) Received: by mail-lj1-x242.google.com with SMTP id b25so20148946ljp.6 for ; Tue, 28 Jul 2020 01:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=refqiK2IWlQ3mOTyFeqnVmB/kSEzmm9CW2c4TQojIKs=; b=WfCuIF+N2NmU60NsCa/JwDfZ/2Nv3VdLtl+PsjLet0Nzca6wYbZhf3KLfYAcH+yG6N LaR9+097mHxfUn8gn7Be8CFNnGBmtnA/zxEpDJV/ocsagkHix4jVu3EVG6FrI64jWHYI M+PzasI6lq60ee4UopcVSOqHZ2rmhBcou1LSLGPdsYSqBNegBgB1DWqpolUEmgNk0ju4 CBCGJrhfdr5TCA4JVBROBndTQtCW+wqbRJegLmMyk5uVj7QvYvbvRVhkOWcs5kLLW5ui HOqodhXVOpi6VXsxgX/17k48jouG1wJLBMVXy14roEsN2uWmc+DdP+Mq7Tr986xY3Y5I qdWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=refqiK2IWlQ3mOTyFeqnVmB/kSEzmm9CW2c4TQojIKs=; b=LN8EXaWqK6jr6SQinxgekbD29VJBL1gQSebQRKksYvTy/nwNNVeZLRmEVvrojsmmAb qkuiKlv0K3lrS2V0eUu2zq3LyEkoXG86p0rnawCPHuqGVudv+d5OJSnf1Nccjiu73/cB rcI9eBFUCkAHuABopdLImQuy3sXnp+FZg4P5mrk5fuo8tzdOzaSIMO4dMdWYCYPG0906 oX1621jZbEqLBtjruDmTiRvc7Y2nYI8yHpjR7IvNZyJWRa809q7UakZlyL/hhcsg0MpV uEstfmlKUzZrSmIbVbKPY32Hxjn6S+jDghshsqg/YbNiERXKlhanZee3EYcYNv7JFctN s8jw== X-Gm-Message-State: AOAM531WUD8N3x6Wcov/QY3cVSOKlHrWoDj09szA/vAIZxcRNgaZyQzo ttCnkqa9fQvRmUpSVDlzuA4jV2XW5jP9uElGjpqjWA== X-Received: by 2002:a05:651c:1291:: with SMTP id 17mr12792312ljc.286.1595923784397; Tue, 28 Jul 2020 01:09:44 -0700 (PDT) MIME-Version: 1.0 References: <1595382353-17486-1-git-send-email-Anson.Huang@nxp.com> In-Reply-To: From: Linus Walleij Date: Tue, 28 Jul 2020 10:09:33 +0200 Message-ID: Subject: Re: [PATCH V2 1/4] gpio: mxc: Support module build To: Arnd Bergmann Cc: Anson Huang , Russell King - ARM Linux , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Catalin Marinas , Will Deacon , Bartosz Golaszewski , Peter Chen , "oleksandr.suvorov@toradex.com" , Andreas Kemnade , Peng Fan , Hans Verkuil , Olof Johansson , Krzysztof Kozlowski , Alexandre Torgue , Patrice Chotard , Marek Szyprowski , Joel Stanley , Lubomir Rintel , Christian Gmeiner , Bjorn Andersson , Leo Li , Geert Uytterhoeven , "michael@walle.cc" , Linux ARM , "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" , dl-linux-imx 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, Jul 27, 2020 at 1:57 PM Arnd Bergmann wrote: > Overall, my feeling is that making sure all drivers that depend on the pinctrl > driver can deal with deferred probing is a prerequisite before this can be > made a loadable module itself (same for clk, irqchip, etc drivers that others > may rely on). > > I understand that your primary motivation is to fit into Google's GKI framework, > but I think that doing the conversion only partially would neither serve to > improve the kernel nor actually meet the GKI requirements. This has been my worry as well when it comes to these GKI-initiated patches that are flying right now. > Most pinctrl drivers are currently always built-in to work around the > load order dependencies. This of course is a bit of a hack and we'd be > better off if all drivers managed to avoid the dependencies, but this > can also require a lot of work. Several people have argued that it is reasonable to cut corners to achieve the "greater good" of GKI. I try to handle it on a "does the kernel look better after than before" basis, while pushing gently for at least trying to properly modularize the whole thing. It can become pretty hard to test I think. If it is things like GPIO expanders on I2C that can be used by several SoCs I would be more hard on this, on a single SoC not as much. One discussion thread got inflamed because of ARM vs x86 discussions "x86 is better modularized" which is something I want to avoid, it is easy to be modularized when your irqs, clocks, regulators and pins are handled by the BIOS. This is a SoC problem and x86 SoCs with no BIOS, RISCV, ARM and whatever doesn't have a fix-it-all-BIOS have this problem. :/ Yours, Linus Walleij