Received: by 2002:a05:6512:e85:0:0:0:0 with SMTP id bi5csp3089858lfb; Tue, 28 Jun 2022 06:15:21 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t3xP0pv/cc8Ua7yy2OrNZ9K9HEfNwoZv395iKWXWhfJR+sR65o6aM4hXer8ytIG28nf0S7 X-Received: by 2002:a17:907:9715:b0:726:2a3b:9f84 with SMTP id jg21-20020a170907971500b007262a3b9f84mr17451541ejc.414.1656422121012; Tue, 28 Jun 2022 06:15:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656422120; cv=none; d=google.com; s=arc-20160816; b=ojJCYKlns1hfcKmcIND0vfhTmLMa2wGI+xtU3huzvISI/h6p6ztVRfl7qiYaLHQDNJ Ci7v1c+FHs6rJJYUvzhAjDSGAlMiuAuYFLUmbCS+PW3peq570diedk5NmpwyAd5qnNHN hUGBZic8pyImB60YWL2kiSVGqr6zBbsmrGmAUAHRufaGvbvlRBm8ayd47vTn/K9hQ0Xg EUJ2LfzG76pCG0NTX7DDrnCjtuZEgnSn/rowutIsBenVYMpo5QjJGxgy+u+Gf66A+QXh 4w5A4YxDnN52+JHyaBFjeWvqo9pVjKPKpZ/afCPe8SCzq+p2TbGwXhVV5p0RBj7wFX+w 7Omw== 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=LZb5sxIAZyqFSeUBv72kgXWLJxxiCuneWjOYk6qMHvY=; b=CnXlsaXQo1pNXn1URwkQv/QyLnMQLg2/wZMqnNJJmYbyuu5j8CCIZOnr+KxSn6niFL ajtqPw5iV8D0BPhriKgr1yGlUgOPnj3OW1HazVJg8+JMGar/Iut80y6Ng4z04zalhtE+ BgVs7FK+xIkdp81ePuQjgTgqKMqjL61vf59hBXsIdUnDtOA+GsbC5mRFSmE7jyXr5IRh qQ8c55K6i0Wdsj85UXnlNbaEtQ2J3Z2PcO3SeclhHFXJFWwbztK91Ipjxrd6i74Ps2/O CND/ypKztoVD8JGLtwx1Go3CX2xSMr0gPxlTi9TxM7NTJ4hCLeFj9KA2LWNiTbcfhFBN bTIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=YvPNpQeb; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p2-20020a056402074200b004356985328dsi13940317edy.198.2022.06.28.06.14.42; Tue, 28 Jun 2022 06:15:20 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=YvPNpQeb; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346051AbiF1Mya (ORCPT + 99 others); Tue, 28 Jun 2022 08:54:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48810 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344839AbiF1My3 (ORCPT ); Tue, 28 Jun 2022 08:54:29 -0400 Received: from mail-yb1-xb31.google.com (mail-yb1-xb31.google.com [IPv6:2607:f8b0:4864:20::b31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE9BE2ED50; Tue, 28 Jun 2022 05:54:28 -0700 (PDT) Received: by mail-yb1-xb31.google.com with SMTP id r3so22057778ybr.6; Tue, 28 Jun 2022 05:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LZb5sxIAZyqFSeUBv72kgXWLJxxiCuneWjOYk6qMHvY=; b=YvPNpQebc6BcmR/vGLnXDgkroOA6+J62fZMmhhY6q+2Ykw4RrJublEEIDd8uAe5I22 Ggov82QkKumtxAypvS+UavkS+gQFZc/mrF2RqQZMNZlHt/td61LiMeXcF6dbkLp3DQ9L YkxPEd1PGjy7+t/kBLdb+N0wBDELJtb46QsTMmmdjqTuCUZ7BlOT4KTWT9pFzX66kjtB 2oTraQwVU0buyQPwn//tADDBhtPxrGfpFuF6OvqbkVgjnf1DEsmIn+Husl0XGXSEYXW2 0Eaoxf5egrtRQzzjSQYM1snzrhJMpV2fZ3SSmmhRAlHJTiMifBKJ3JJjFtWwZKLB0XTi yqjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LZb5sxIAZyqFSeUBv72kgXWLJxxiCuneWjOYk6qMHvY=; b=fv8DbvEM+ZaKkQVsU9cLW6nZDLzYVzdB+QGuyWpjIkUxYNn7+2tC2l0Li3ikGTbmBd f6Lsb4fqGcR8mlCCswkdf7a3Ki4QEUvItkFWj8MdIHnwyzZs8MxqayP0Wkv/Wr5TvzM6 XVU/MDZ0wMMAdkuMzuwbg44e5np4g8n8sPLdRqNiEfcM0WEWJKt6UP7ILV0PYSOqWpmE v5h1TXeQv8mZ7zfQAIm69jTmvwGLSdyi4ozBz+CINnZC4KSoaTjfeUkKz5UyCuCKKWpK CCsN7DOrmm91fpfadhxoWD5bSJ8Gl58FKignytghlCKXaUxpDav8m0sDKKz9m+0AVt/X YYaQ== X-Gm-Message-State: AJIora/2KIGdmHe61nnkFv3eerh0OS09BAjSsyRkFXmzezW2kp/zgyYb FkbEqZ8bSKwBq1gGF6XGZKa+T6FLYCuB8RmV/Ww= X-Received: by 2002:a05:6902:1142:b0:669:651:1bd4 with SMTP id p2-20020a056902114200b0066906511bd4mr19379795ybu.385.1656420867977; Tue, 28 Jun 2022 05:54:27 -0700 (PDT) MIME-Version: 1.0 References: <20220628081709.829811-1-colin.foster@in-advantage.com> <20220628081709.829811-4-colin.foster@in-advantage.com> In-Reply-To: <20220628081709.829811-4-colin.foster@in-advantage.com> From: Andy Shevchenko Date: Tue, 28 Jun 2022 14:53:49 +0200 Message-ID: Subject: Re: [PATCH v11 net-next 3/9] pinctrl: ocelot: allow pinctrl-ocelot to be loaded as a module To: Colin Foster Cc: devicetree , Linux Kernel Mailing List , netdev , linux-arm Mailing List , "open list:GPIO SUBSYSTEM" , Vladimir Oltean , Lee Jones , Rob Herring , Krzysztof Kozlowski , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lars Povlsen , Steen Hegelund , Microchip Linux Driver Support , Linus Walleij , Wolfram Sang , Terry Bowman , Florian Fainelli 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,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, Jun 28, 2022 at 10:17 AM Colin Foster wrote: > > Work is being done to allow external control of Ocelot chips. When pinctrl > drivers are used internally, it wouldn't make much sense to allow them to > be loaded as modules. In the case where the Ocelot chip is controlled > externally, this scenario becomes practical. ... > builtin_platform_driver(ocelot_pinctrl_driver); This contradicts the logic behind this change. Perhaps you need to move to module_platform_driver(). (Yes, I think functionally it won't be any changes if ->remove() is not needed, but for the sake of logical correctness...) -- With Best Regards, Andy Shevchenko