Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6065105rwp; Mon, 17 Jul 2023 14:19:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlHbxLRiADM5xUZyRBrQmoQ1e/F8Czs0K2i5EoxhBT6ntz3xD3RatLf89oEmhvW+UDhLt4b/ X-Received: by 2002:ac2:54aa:0:b0:4f8:7734:8dd0 with SMTP id w10-20020ac254aa000000b004f877348dd0mr7432077lfk.2.1689628774302; Mon, 17 Jul 2023 14:19:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689628774; cv=none; d=google.com; s=arc-20160816; b=h+vQoWjJIuSh97ivQSytS9ecNAOcj7x5fSDkJqK+A5WSQqsGC12hhZ+UkdLALECYyp JdysB51cohU+wljrBUOTNUIJTOoIFkaYU+0zGTXMgUBEdYMRd21NS8+DXII7QcdZn7uW 5YegtBqiERCU2GvvY9bFxeoCwmagd7zujCqEI+xi33hwdIVOVdwRy0iivex3MMBMLoVc 24B47B5wvZxvmMRPDV+fzCTIXf6bMI4S8r1RHSR15dpTavMOb1qLyAwr8FPhRUm2f6dn Yf+EnbgvKfO/MB2y1qBCLPQ/06Venu7MnFggR8+oeWgxQ2NdcI9T6eJcaiNepb9K/yOB jiSA== 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=Oyy/hqOdv+k0nTAkjs+7RYMgFYdulT0nhGoNzbzeMig=; fh=pi5BOb/2kBNQz+vGafryIMbYwm9s0WcnSX+pLT8J3kw=; b=AgchH0NFwuWKW1EHdwHbevAswfeLC9RV6XfcihjZ0aAtjaWq4FhEQWX95IpZV/JUfy 9vQIKmeoSzqL9twkrQrAiwnrpH5iSngtiy5KtMBmI4/XAho+cMpRVlRlGT/f6eg9FAog xJNXB2Oo8GwI0ZELePM5JOWO2mF0p4lq6bci337oT/09tWKtzE/lblrK+yQW/RtREXdq WbHQZEUGHt8/STF2M12DybtRK0Hzy47BGHpsCMVaFNDpi50PXVqkpj+oJKF+8WoYTV2R 1RRQ99FG7vjZGyx9p4rhBY0p7whcnTAZG45PTbs/LPQihFSWXGrg5w3NLcrQetGle5Ox y0rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=KJTf9YmZ; 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 d26-20020a056402079a00b005218239ce17si154786edy.216.2023.07.17.14.19.10; Mon, 17 Jul 2023 14:19:34 -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=KJTf9YmZ; 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 S230236AbjGQUyV (ORCPT + 99 others); Mon, 17 Jul 2023 16:54:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231332AbjGQUyB (ORCPT ); Mon, 17 Jul 2023 16:54:01 -0400 Received: from mail-oa1-x2f.google.com (mail-oa1-x2f.google.com [IPv6:2001:4860:4864:20::2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B79D510C4 for ; Mon, 17 Jul 2023 13:53:59 -0700 (PDT) Received: by mail-oa1-x2f.google.com with SMTP id 586e51a60fabf-1b730eb017bso3386038fac.1 for ; Mon, 17 Jul 2023 13:53:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; t=1689627239; x=1692219239; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Oyy/hqOdv+k0nTAkjs+7RYMgFYdulT0nhGoNzbzeMig=; b=KJTf9YmZ+opwlSlKQtj4qmVAgcviWKLlE18bPJ9PK2xx2vbd1cglf/B19eHyMCF/iu Eo/LO0A/WooxN5UAWv3ScN8m/gCHPScAd1o8ZsTnssQOVautf5+DNwlXfqz2MzgkWZ/e bX5C/SPhH1uy1+IfbnoAxp108QlYMtrHQK59JmnuHeuXgWbVGu3YO42QzGuG5u7RkEdr oHzNxQ4hcPd/NvOcdLGlAatT1hr1aZ0yu1Letu3MtHfILsfG72e/s4DAm48dG6rMbobc NpbivKFS98tExj0Qk/X0qClcS/8nQ5Rz0KBZRGMZH8gxRbYknPYghwWTPxJqFzB+Soz4 MlHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689627239; x=1692219239; 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=Oyy/hqOdv+k0nTAkjs+7RYMgFYdulT0nhGoNzbzeMig=; b=HOq+JEZrSHAeIa1WqpWTHZoDLo7kNe8KRXBeVPMtyZSke24Orqk2Ef0ZiiMmHyoQUQ 21IRqmkh+GJ27FaMXfHEoeQtmYJoAuORFTwJWMLXxC85Q/qSP4O1KGHUn6VOEG5z7hFT 48++RZcv+QHDY5uYurJNacAcNyrxcMlQHwzeWPg0yTgXNMbOh5tR81r6r6btgUUFtFfa 2rQh1c2rNTRTTgDzmww9BqxJvJNXrbF5EMhRkzLEeqtvbZvBv1vS+A5VwhoB4xYlPMAE Cr83eyr7I8dG0guVldBFkoKTYyDRCBAOEnSdWYJ4THEio8T+BBW/DBw3qENGI+ZRhB4B X6Vg== X-Gm-Message-State: ABy/qLYj0LoX5BQR3+m5LYa4t66N5AltELc6Wj2FsOSjnLaHXW/PhDvt FqS78v/SXdDrp+2SDA3bka58z9q6c2fBwhjjjJX66w== X-Received: by 2002:a05:6870:fba0:b0:1b4:4a2e:b698 with SMTP id kv32-20020a056870fba000b001b44a2eb698mr13093826oab.47.1689627239068; Mon, 17 Jul 2023 13:53:59 -0700 (PDT) Received: from sw06.internal.sifive.com ([64.62.193.194]) by smtp.gmail.com with ESMTPSA id z8-20020a63b048000000b0053031f7a367sm206991pgo.85.2023.07.17.13.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Jul 2023 13:53:58 -0700 (PDT) From: Samuel Holland To: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Frank Rowand Cc: Samuel Holland , Palmer Dabbelt , Paul Walmsley , devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: [PATCH 0/2] gpio: sifive: Module support Date: Mon, 17 Jul 2023 13:53:55 -0700 Message-Id: <20230717205357.2779473-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_BLOCKED, 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 With of_irq_count() exported, 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). Samuel Holland (2): of/irq: Export of_irq_count() gpio: sifive: Allow building the driver as a module drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-sifive.c | 4 +++- drivers/of/irq.c | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) -- 2.40.1