Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4165030rwo; Tue, 25 Jul 2023 01:24:11 -0700 (PDT) X-Google-Smtp-Source: APBJJlE+kBBMcXyatqdIrRu6sPdHlid+etvLIQSwxDBwO7a3lmUz49AFtHIBbh7+hHssiu0N6miX X-Received: by 2002:a05:6a21:6d8f:b0:132:833b:961 with SMTP id wl15-20020a056a216d8f00b00132833b0961mr17677416pzb.36.1690273450790; Tue, 25 Jul 2023 01:24:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690273450; cv=none; d=google.com; s=arc-20160816; b=KRnQE5H+WDyI3rQSgCs7kZ23j6dWgHD26rPgRMlDxXDt9KnnPQnTCBTkEl8GGhfZp0 RMGtmQ5GXpixcXo7gNqIfwXAwIyxaGY7kX2YAqSpdFqBnNaQRy54CRA6AguF6yHNKxKi XC41ir3OERPE86hdiWB8lvsent1KTA244aCWxvXufjF3i7xBfqEbW31F37RUTLRtN1gm TkWBBA1zOny8IRw1MNSqAPIYoSgl6hmdJN7ZTTMqYUcKas8M2Wcan63ekXl9c/UEgVDq /bpggqhXe94i66tQG9EZ2F9d5TB2BG3rbBD905bDRy8Et6u5be3KWgW+dx/iB1jbyMwD nZGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=/rywQXgpO5u1DqjN9adyjvwJjSzTGessRPrLO7F1AaE=; fh=QkzoHvQOgEqI9fECsUogiv5k3k4eRkD+uuitUJ/0OXg=; b=nIo9ttbiMh5nqFQiqWOi85NOz2Yh8Ty6Kg/HAHSUaX3xQJ54qs0qN57fHoLQLSd11Z zgZYhNl5zNeDIS5XgoUU1MA4VgAe29FAwoIm4G/Wo4eu+6GIuqnWCSGL17yy/PRO5x6R Zw3UdLcDxjP7jUc2eya3LY8vvCI1mPO4tc1xDcrbovW1yr0Vr2QlAWNcApb+UlkOtn0T 9qBQjokUnGGklS3AzXMPyYEvjiXTIv642sZMbzfyNOuhnYe8tLRYhdQ3g1uqja2lUntF aRdW0BXKwgiRMB5v1T9zPAexpJvfE8S9vrVshrQqt0KSYzft74d0d3MZPktko3hGao7F u5dA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=ULJE+D89; 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 t33-20020a634461000000b0055c872695a3si10220175pgk.447.2023.07.25.01.23.58; Tue, 25 Jul 2023 01:24:10 -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=20221208 header.b=ULJE+D89; 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 S231203AbjGYHFc (ORCPT + 99 others); Tue, 25 Jul 2023 03:05:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232084AbjGYHFF (ORCPT ); Tue, 25 Jul 2023 03:05:05 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E08C819A2; Tue, 25 Jul 2023 00:05:01 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-51a52a7d859so12970664a12.0; Tue, 25 Jul 2023 00:05:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690268700; x=1690873500; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/rywQXgpO5u1DqjN9adyjvwJjSzTGessRPrLO7F1AaE=; b=ULJE+D89TTUVUUaP/IV1jDtGzFhTHxd3L2rCo5moFvzGPfdJWn8qj9gVJ5/8ROoSAY Y1uUA7kCezicqsqNgUJRCZ1X34+FvkYxU7vFy/mRT8EbhU3Swa6T/bVyspBnXJXAfzLK dMAljKWUsJA9utFvN81GcHWPxiRKj9xjCm+mCwSiVGEecL38ojOF2UtwMfo7ij+fnsjy JMJMkrOEDlYsX0Svgn4Ajf5qgGE9Ao2zQqmgUZ36WNxrkKUEi3ysVgpI03jMAZniNRte gdFYsQm0+r5oO4+4dRMJ+87H2B4C3bbel467x1GBaAPcZzc8hpwaaGbqheDFmdBrwkYa 3c4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690268700; x=1690873500; h=content-transfer-encoding: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=/rywQXgpO5u1DqjN9adyjvwJjSzTGessRPrLO7F1AaE=; b=W0A3Yuyqp3Vdvr8rOS9C9sf6iDG5kkTrLrc2RQ5LaT2xJkLiuYjIRXFWvW5ytGNt56 GJIKrYrExphW9qOrgWN9NFHai9ZUnN73VYzbx+1K6KM9INfB5xb4kBcNCLv1iMl9eXyZ ueJzjvYdWNuUawOqegBqtPmH260/3NYH4HqxhK0e4pWsOHjelY+z4JJ/veHlJO0t8mP9 gHPJhtgL8JJIbdq1Q0fs4u+7jEZSAUOmRN1z1NqRDDmk+KBx+BXKO30P5iNDu1oMUASE /0cwQpOCd4gvrvxqdBidDQRR63N7IMYF/JDuXiWSR3GN5XZ0xwqE42hgPVLEhyzjTmLk 77SA== X-Gm-Message-State: ABy/qLZ1hzuvqsDtdO2pFYs6T7SclEpMigXe0tITjB32rkz9x6Bv43X6 wCX/1MM9ilpci0LZa6INDkR3tM1EhVncmY9oItk= X-Received: by 2002:a17:907:a089:b0:98d:f2c9:a1eb with SMTP id hu9-20020a170907a08900b0098df2c9a1ebmr1800076ejc.24.1690268700144; Tue, 25 Jul 2023 00:05:00 -0700 (PDT) MIME-Version: 1.0 References: <20230725004043.381573-1-samuel.holland@sifive.com> In-Reply-To: <20230725004043.381573-1-samuel.holland@sifive.com> From: Andy Shevchenko Date: Tue, 25 Jul 2023 10:04:23 +0300 Message-ID: Subject: Re: [PATCH v3 0/4] gpio: sifive: Module support To: Samuel Holland Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Emil Renner Berthing , Rob Herring , Frank Rowand , Palmer Dabbelt , Paul Walmsley , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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, Jul 25, 2023 at 3:40=E2=80=AFAM Samuel Holland wrote: > > With the call to of_irq_count() removed, the SiFive GPIO driver can be > built as a module. This helps to minimize the size of a multiplatform > kernel, and is required by some downstream distributions (Android GKI). > > This series removes the rest of the of_* API usage in the process. Reviewed-by: Andy Shevchenko for unreviewed (by me) patches. Thank you! > Changes in v3: > - Use dev_fwnode() instead of member access > - Mention the SIFIVE_GPIO_MAX check in the commit message > - Keep the variable for the parent IRQ domain > - Add a comment explaining why the IRQ data lookup will succeed > > Changes in v2: > - Add 3 new patches removing of_* API usage > - Add MODULE_AUTHOR and MODULE_DESCRIPTION > > Samuel Holland (4): > gpio: sifive: Directly use the device's fwnode > gpio: sifive: Look up IRQs only once during probe > gpio: sifive: Get the parent IRQ's domain from its irq_data > gpio: sifive: Allow building the driver as a module > > drivers/gpio/Kconfig | 2 +- > drivers/gpio/gpio-sifive.c | 47 ++++++++++++++++---------------------- > 2 files changed, 21 insertions(+), 28 deletions(-) > > -- > 2.40.1 > --=20 With Best Regards, Andy Shevchenko