Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4283888rwo; Tue, 25 Jul 2023 03:52:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHDWsn1/OWaA6pBcoFBpUNEhLiL2unhHkI4oMHy7FNjaS8RBLfdnk/tkcIoR1z8yJb2ihqv X-Received: by 2002:a05:6a00:b91:b0:668:7b5b:c1aa with SMTP id g17-20020a056a000b9100b006687b5bc1aamr15595288pfj.20.1690282371103; Tue, 25 Jul 2023 03:52:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690282371; cv=none; d=google.com; s=arc-20160816; b=AMPt1GeI8Vjoc0YX3sYDZRl1mHlm9Fs5cK6YIjoJ1b2oZrVDQXXYVnKsNp5LbYgOwX ZNIjw2xhFzhtUnWmWGeoUk7kdYwlMVY0uD6Vy42uiPrBsuAAXvxd/Zh1hS5EqSt8+s0D f/HO2mUUdv5Mar0SFNyYC0oNzw1BlzFborpqwT1XNcDmAbcLSgTY87lPuqExbHcCNzuh SYS2wzqjWBkypVHqgoIHTikrllBrQ2a5f3C0zISVA23n3Ef/mzgdaaXesDGjwSR6+txm TtKJuwKJ9o1FmSFoga6mtQaG68wEpaQ5L5OcY7x2KOHT79p6sTykrol0X+PkVBZMcvA1 PxfA== 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=KmRaQGQO/ykEbUOXzwvpBNx/v0912ojC9mEjp/4/XZ4=; fh=8Ym6MlHdrTi2d//i/z/2PczRNrv54o4D3S/dEmrfdbI=; b=bNlnouAyZ7o71ClthLTqmUVRI2Dnl0HNbcphlWuZsDTPCQQxzFIxfONSoj8msEcefL JVH0e/+k+1b6AuhSxnfPBdwPpARzCXgaJfGWyRMrdKjF2dH5DrFM4T14+nuXZgDPg6o6 Pu1gr/hpLnKCBxrmKgA8lzEeFp2IRgZu4QlCGYcphpqm1PwcqRV+wknYng/t9huh1S9C +OwJMvUbSXXGQDRVKe8/QYpiyAgZ+VBwF4w3dUkJvwNvHMY/bC675HUs6cEbdu3hagm2 6lf7TqCuzi53GRfLPx1HUEO8LdfW5u15L36oT7PRGbXKcNbLaS9ju8DZrkAP1P5hVZXw UlVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b="Qi1lkQH/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z8-20020a633308000000b0055fd1bfacafsi11234687pgz.755.2023.07.25.03.52.30; Tue, 25 Jul 2023 03:52:51 -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=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b="Qi1lkQH/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232288AbjGYKDd (ORCPT + 99 others); Tue, 25 Jul 2023 06:03:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232665AbjGYKCs (ORCPT ); Tue, 25 Jul 2023 06:02:48 -0400 Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 926E710F6 for ; Tue, 25 Jul 2023 03:02:02 -0700 (PDT) Received: by mail-vs1-xe2f.google.com with SMTP id ada2fe7eead31-440bb9bad3cso1842979137.0 for ; Tue, 25 Jul 2023 03:02:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1690279309; x=1690884109; 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=KmRaQGQO/ykEbUOXzwvpBNx/v0912ojC9mEjp/4/XZ4=; b=Qi1lkQH/Eqrd09mX1PkGfF3B0qgBle4ZBvZNUyuUe2JjHQJPcDbJ9lu5ln/f/JGoIq moKwi5gKq4lv06CVL6JEv9YcwR/0bqhm3CUoO02eaEsqoUaqxvtoTgbc+HnM6AjvUtW1 cprXi6hpeDl7hCD5RlRStLp5PdYBzZH/rp3ysgSWc+fHfHgWdX+Tf5kYpfQLxt7XmLJT 3WF95FbJ1Ic9P4S7JumdBNwiYqMr1yRf5BE4836KQgWrtbHkCLkdoge5gtaH/HEIieup uBV9x8qqK9gsvuoTtzt11iUguXSoA10uex/RzVMYHPHnsiU4jaZPQuMI+zduFqwa727e 82rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690279309; x=1690884109; 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=KmRaQGQO/ykEbUOXzwvpBNx/v0912ojC9mEjp/4/XZ4=; b=jUx99oP+HzW3VXCk4n426Cnni2P6FhdVrqBL1L6c3BQm1FFjxNZ6fI2D+1nsVaq8uq AOqrlGP898EmzIMVeDMtAJ83nI/+nzMEmRGA/ZVyNbsVdxs/3ODRGMS7lDMeiBtJGgzI ZAe8+U0vDJxZ/sT03jMJtbzPl0X4YUGl1o+NtXhz+g+u6sCeE6imyTnLQrz4F/pPdLKP WsShjMIEDK31yOs3viTi3yPq8L+d/ModViGwu4Psxhuzfj9bn9aXE821Nn7yRhV8oMsy g7sj+L7Yg8DOy9AGtIuGSSbQeoFbh7sQ+rxQQO9PWXjlPTlO43KQD6XtccsZv8DJ4Wjg fKxw== X-Gm-Message-State: ABy/qLbmnBtR4pzu31Io0ssjv2MUa3AuqBk7DVsLhxJFIRIlpbn/6OUi ysPNJ7K81Okj9sNuF7yernwvQ8kMoIVZxbTYKPIdtg== X-Received: by 2002:a67:fa46:0:b0:443:7a85:8fbd with SMTP id j6-20020a67fa46000000b004437a858fbdmr3926469vsq.32.1690279309555; Tue, 25 Jul 2023 03:01:49 -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: Bartosz Golaszewski Date: Tue, 25 Jul 2023 12:01:38 +0200 Message-ID: Subject: Re: [PATCH v3 0/4] gpio: sifive: Module support To: Samuel Holland Cc: Linus Walleij , 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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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, Jul 25, 2023 at 2: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. > > 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 > Applied, thanks! Bartosz