Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp8429373rwp; Wed, 19 Jul 2023 09:37:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlEna0dEFtc2eu6Rn1BtbnFFDE/2yklzGiHhEBeR3i7552R0ejVWHbtpTjsDF2ryCGIdjscY X-Received: by 2002:ac2:4c0d:0:b0:4f8:7055:6f7e with SMTP id t13-20020ac24c0d000000b004f870556f7emr286854lfq.44.1689784676465; Wed, 19 Jul 2023 09:37:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689784676; cv=none; d=google.com; s=arc-20160816; b=f87hGr+D9wIiZSrxsdpmtNW0oT1ASs6PaScIvxcNMwJ1jp08IqyMoWEtyhtoV2qim2 8lhT01lBjbf02KDouivDxPX1OZdCQHk8nNgHT2dyR3Dt03uhCSdhZEEZiy+igdJkpvvl hrtZvWMCYWpDF0DPTJ9rmQ3HNvszFuBTb677171S1S3PnmKN7gSxuYgrAyB7sBje3+cD 86LIGnRgZyQ81WLclJOC8q+af+EK+yRqFapmfJxPboFd1bB35gv6SQMiVlVdNXWbraND BGCYlumceVBQWGT+wM/JaWjmLL0lGhVmKiR4XcEREixz70lPU9w3QwAugNNJPvodqNvw YScg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OHD3s3Vv6K0BaM5EQ+IYYZEfsrjIJcH2yFqvTWy9ha0=; fh=7Iv+nmknwq0vzuxY/p9xeluMk1WnPOovtl66aotocHY=; b=DIGlOGn2EIC9tW3O0epORCf52AtmvE6EH9EVl+r4TbRgcEWyjcNIRgFICDDDUnyCLf ucWeL0iJ2cvotH7jqGrL3TrLMDgbs31/TzNpzQVmKy6qYMcXQseC55FMhSWnLxrwdtvT T5c+xlg1GS7KI6+h2CcJAraUojZZ5yDVDOc4v1igZ7JZJa+WPX2S10q/no+MdaYYCNH+ Asirh+lRNyt7Ru0jWusfaLwzDMhF0BFIruzRLS6ecDdb3BLGZ6RBoWn9T/MrD3oKs5zk w6rovg27+d9MGaQ/5KxVFQmmsHI+bR+GyrL2BP+Oi0ptRQk1BYQpK4Nxs4gnAqJ7AGTI yEUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=ZCsF62F6; 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=REJECT sp=REJECT dis=NONE) header.from=sifive.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i26-20020a50fc1a000000b005218bb04994si3117826edr.624.2023.07.19.09.37.32; Wed, 19 Jul 2023 09:37:56 -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=@sifive.com header.s=google header.b=ZCsF62F6; 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=REJECT sp=REJECT dis=NONE) header.from=sifive.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229624AbjGSQev (ORCPT + 99 others); Wed, 19 Jul 2023 12:34:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50786 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbjGSQet (ORCPT ); Wed, 19 Jul 2023 12:34:49 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1864F1BB for ; Wed, 19 Jul 2023 09:34:49 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1b8b318c5cfso56207235ad.1 for ; Wed, 19 Jul 2023 09:34:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1689784488; x=1690389288; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=OHD3s3Vv6K0BaM5EQ+IYYZEfsrjIJcH2yFqvTWy9ha0=; b=ZCsF62F6DzCb43m0ibFaEfnlJcU8sX/vUpG+pV5DIPQVyidywfnCi1lnyoPTKPPPmK LF0oBwTcENyStWLvAiUL/rJ0Hm0SO8je9WfYui6+niPD4ndOFHyDgdvMsPENOlBcOKwQ j5zsB5LP7VTXIJLD2g5bKyU7kFZObPep8lrqFsEM1KAOBirKzOiRu7jXTZUnIK6KAGDX 5QVJxWN8s99oI3eGBVpT+w9+9LGD3wnUqFC7RzeEo2pXyvW2QKW6Qip4/MZuzf4zrqIz CiZe3uCkCpN1Y1r8ShIge3v+scaAdCHSugF/ACFDa36MxfsuClkBIIB2r3ZOX9Cvk5UP 4DDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689784488; x=1690389288; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OHD3s3Vv6K0BaM5EQ+IYYZEfsrjIJcH2yFqvTWy9ha0=; b=a+hohzn70NjM+bP6u7JIQB3/BP7F+UDt+vCgvBIGH3tt2iaZST3/PS5itGY37g4/Zp 90EniCxw4ihVNe4pdEjfqUH3xCdcAOmtSWbXFitm2hJ8Gt28ZMAgJUbUi1qGwvqnVJyR KyK4vZvnQT2cjwkgHO3D1a8GMIc2WYWZBqYBHYe1AXa2SKpWYGIkWXBH9nPLWnIw9FZU Eswr2RtA+j9dscwq61YHBw67qoBD8gp1tVp9EPzCV22N+WL37Bpni0SBEidCQEEt3RnP LKOfaehIUHcE8baUa++J814CFZM1fcOeeulzo2u0qkwLBPB6AaduMV/Eqzur+8G/+ifC 9GWw== X-Gm-Message-State: ABy/qLaZsCcBEkYf8iK8ExfrSLU2kBBbyJKDbINxONRmFtELYlE65w2+ twpzaK0Fk+/0v9UMAXHE8Ogw4w== X-Received: by 2002:a17:902:e88d:b0:1b0:f8:9b2d with SMTP id w13-20020a170902e88d00b001b000f89b2dmr21365359plg.29.1689784488451; Wed, 19 Jul 2023 09:34:48 -0700 (PDT) Received: from sw06.internal.sifive.com ([64.62.193.194]) by smtp.gmail.com with ESMTPSA id x6-20020a1709027c0600b001b0358848b0sm4199276pll.161.2023.07.19.09.34.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 Jul 2023 09:34:48 -0700 (PDT) From: Samuel Holland To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko Cc: Emil Renner Berthing , Rob Herring , Frank Rowand , Samuel Holland , Palmer Dabbelt , Paul Walmsley , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH v2 0/4] gpio: sifive: Module support Date: Wed, 19 Jul 2023 09:34:41 -0700 Message-Id: <20230719163446.1398961-1-samuel.holland@sifive.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 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 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 | 45 +++++++++++++------------------------- 2 files changed, 16 insertions(+), 31 deletions(-) -- 2.40.1