Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp6089535rwp; Mon, 17 Jul 2023 14:51:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlF7f7u0TzkFUTge4byqoJ4Rakz3CNBvICxzRpLD8qcM+YL6KfcDpakwDZQqS1Yal9ZWV2i/ X-Received: by 2002:a17:903:2654:b0:1b0:e0a:b7ab with SMTP id je20-20020a170903265400b001b00e0ab7abmr10476587plb.31.1689630697097; Mon, 17 Jul 2023 14:51:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689630697; cv=none; d=google.com; s=arc-20160816; b=wtPbT5L0Cy2jTRCLthW63E0ohYddJCkNvYSrMnGhW/99w8UEAVjMJYvqI/gJltq9qr 6RmeUrZaeOue5S125gmHvOyHhB51SEwpxOc54i1HL1rpGxrL3lFKujO9f0UrosVETsh3 b7lPbpIdd99sUP1d0Lo1xXroqsxSgiqJJiQ1TtvoXms+bBnVUkHG2NPSqcPIPZqrEK5f Yyovfd7am+XWMQ1bez0wk1tWtBGLYfb5sWa2UPison7jmSV5lz937I7kaQPdqBFDWSTU RdtbSVmw7fSluyNZW0QEFhRLJKvwMnvEIUCHzST5b5LLHszDbNvcEXJmXJLuuCD2zyy5 IsKA== 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=oJvtasqqKaQL2h12DaU6LUoGc2FmpEmVYsuyHj/CRRg=; fh=TJ7+81JIOHnSKU9rXL0UIovKCyKoIcDVEFyVKmr6BF8=; b=HTkXK98KBwTdQeIk6fW21Fkrr1plbPK7GzTKSD0Od2S4AsGNdzMDdUj+CltMY9nqPT s3iSWeddlhQgbQecPn3VbwWwjG1gw1pR6fFCkbj5w0uv2f1+rTZXpsEmNfKxx+LlgYKx q693WpfRl3Z6YdUbfncG8n5v/9ixobYLObwbrmT4F3h9kW0gK5jLTHJZiApBlcsdCI+K T+I2PTPjn7++/dX4mZsbdTkuK2kQxw2dOn/kRuph1ei0ldT3tbU/j6xSy+mX1WK9iiDb 3QuAamb1MzM+Hj98WL/E7nxLc/K1rzDui/cV7nN/M8ZMu6cnqlb2fYvRlayEajguCS5e xoWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=duu9wh20; 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 y2-20020a17090322c200b001b9e38b8167si515017plg.169.2023.07.17.14.51.24; Mon, 17 Jul 2023 14:51:37 -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=duu9wh20; 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 S229797AbjGQVle (ORCPT + 99 others); Mon, 17 Jul 2023 17:41:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjGQVld (ORCPT ); Mon, 17 Jul 2023 17:41:33 -0400 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 278A5136; Mon, 17 Jul 2023 14:41:32 -0700 (PDT) Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-51f7fb9a944so7016104a12.3; Mon, 17 Jul 2023 14:41:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689630090; x=1692222090; 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=oJvtasqqKaQL2h12DaU6LUoGc2FmpEmVYsuyHj/CRRg=; b=duu9wh20NcF95Nck9xqBAxn04Ry/Dw+nqY0yUR6C0IeSbVveaTBmVj3rGX2QAr2eJl F+QuAAPfvoXtO6CVe1OyE7aeJNPF34U5RftZDXgG0nppZJzSDckPrsEIqv+/FBXVOBQC i9neGxH85O3m+3dyh6PRB8hGE4wWGVY8R4wiGAIurWhsPru5dOIimYza/PyClWynKO8T ecHeSR5oToqZGHRQzbq1tjuLKpP836Z1knplTTT0ENJSfyAFCMTlUzvSPJkzfIh06cCQ x5IzX4vIiUx8Lqv7eIwXgeHzJrGCsjf2mD5/eOtAjnHJ0B8YK5c+EfSEPUvOZr3JbIQA h1zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689630090; x=1692222090; 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=oJvtasqqKaQL2h12DaU6LUoGc2FmpEmVYsuyHj/CRRg=; b=BaaVYe5ocQnZVbkHAWz3tAm/n7Ggzuo4PHpJ++0S+4vpSo0R1sVOrzGa1tfKEn8tf/ 532KKm8ap5gmpvd+cLzgRUGolaCuRmKBXbJFBd+qaQklFY7A0/5SKzGvN90H2syR3+As 93CjoR9xMlQnT0ROzmHdGd5Zz285B7AFCILyzaZj5uf+bjfenynz6MvrZsJqQKNITQYu HY0YqsSNeZVyssk2TdUHcoLQPXlt5gxz6wweBzQZj3ZWGHYNe96NGpFhAQyozkzbetMq rfMx6Lj6/fD0HdbLRar0Sb+pGzYwA8rlNbXGmExYjWdy2aStqDQMU1rRTMbWTUYtZ8Xo U8Ag== X-Gm-Message-State: ABy/qLYN+eBf/a/b/z/kL8irxIb5jzK81sMWHO2MbIdMgOzdd6det+/x PadT/IlCMgf6CNLPyGqXhvjy221SbHobINDOeE5H8wPCt6I= X-Received: by 2002:aa7:c9d6:0:b0:51e:ebd:9f5b with SMTP id i22-20020aa7c9d6000000b0051e0ebd9f5bmr11115742edt.36.1689630089934; Mon, 17 Jul 2023 14:41:29 -0700 (PDT) MIME-Version: 1.0 References: <20230717205357.2779473-1-samuel.holland@sifive.com> <20230717205357.2779473-2-samuel.holland@sifive.com> In-Reply-To: <20230717205357.2779473-2-samuel.holland@sifive.com> From: Andy Shevchenko Date: Tue, 18 Jul 2023 00:40:53 +0300 Message-ID: Subject: Re: [PATCH 1/2] of/irq: Export of_irq_count() To: Samuel Holland Cc: Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Rob Herring , Frank Rowand , devicetree@vger.kernel.org, linux-kernel@vger.kernel.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_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 On Mon, Jul 17, 2023 at 11:54=E2=80=AFPM Samuel Holland wrote: > > This function is used by the SiFive GPIO driver. Export it so that > driver can be built as a module. Can we rather reduce use of of_*() APIs? For example, why not use platform_irq_count()? --=20 With Best Regards, Andy Shevchenko