From patchwork Fri Aug 12 17:44:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Hilman X-Patchwork-Id: 597248 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1DBF8C00140 for ; Fri, 12 Aug 2022 17:44:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230128AbiHLRoY (ORCPT ); Fri, 12 Aug 2022 13:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230105AbiHLRoX (ORCPT ); Fri, 12 Aug 2022 13:44:23 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC5C12616 for ; Fri, 12 Aug 2022 10:44:21 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id l64so1390907pge.0 for ; Fri, 12 Aug 2022 10:44:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=eg4O+lUqSgQjO8nXVbPprUy9GOqPze3ptelQzcMBZ3E=; b=dgbQUeUBzObk/twVOnvdV2e4rxd1DIB2foGp9FDqbzd3U/rLQxAjKY/go2bZAqy7re bnQgLOn7k+f+di33ZH0eQh5u168u2s0sfnZvfjsGN0BnVFN6Lh+WtNHXKFeQ/iWxstxo wiIhtBoiHXZbtT6bxCyVBRx9AhL8z/TFlv3djQGDKx6ir9rTHz+OIVd2QoWBEJtFrqIw 1siruUlQRX3mejoJ3L+j7abj6vk9oCqRlt+YcfCg5wV7FfBjpSi2Nyx766leAm7c/fWx mvcESQmUlDRnUHFNKbzZMSNrrJnqu/0CcbbQPHg5OAsxpGaTI3FLHgaIUUCvzIum2MCj UEWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=eg4O+lUqSgQjO8nXVbPprUy9GOqPze3ptelQzcMBZ3E=; b=dBElGG1WvS5NsMPsJsScPlWwoSmyTAt8ZVSmNBY9SB3PObIRZmtmpUuSmj86C8T7zS ALvO6HjZ9D8g/7AQ80oXZvz1r6LnED0wL8jVlJlN2+bnCK9j1KjxDSmjt+lQw1MAbo70 Z3D9JwV/Du+gxwWHaBIKZFDd2KDnF1sB5drm6G2rRphiwAldbmOLvjN9cT0Tt6v6CxKM AxF64/tIfE4T/fBgGriFcVg4WRu1+AmN0VQL4/1nd3uuc9XnbGTdGdOfU58Kup1Ckd6P v1y1Lh+km1o2ehm1qVxXKi2DjQIqRqr0BQgHLmLUFhcAWOdxox/u3fTR31nVkya61SmZ vRWg== X-Gm-Message-State: ACgBeo3xqkXJNyPMTYuDhhUXL7wc0vtdaj/TX2QUYWd2Cu6tanBC9F6k hXphNaGlbSUnz7iS9q3CQ9OCCQ== X-Google-Smtp-Source: AA6agR7Dyd+8rj/dm58maQ2aj+yUNIPdvdd8c5R3h1OiaobrEVcOKAVBj0ukowd0+VHQYAKAho49QA== X-Received: by 2002:a65:648e:0:b0:41d:fc09:4a5c with SMTP id e14-20020a65648e000000b0041dfc094a5cmr3930463pgv.262.1660326261083; Fri, 12 Aug 2022 10:44:21 -0700 (PDT) Received: from localhost ([76.146.1.42]) by smtp.gmail.com with ESMTPSA id 1-20020a170902c20100b0016b81679c1fsm2023174pll.216.2022.08.12.10.44.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Aug 2022 10:44:20 -0700 (PDT) From: Kevin Hilman To: Rob Herring , Frank Rowand , devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, =?utf-8?q?P=C3=A9ter_Ujfalusi?= , Matthias Brugger , linux-omap@vger.kernel.org Subject: [PATCH] of: irq: Export of_msi_get_domain Date: Fri, 12 Aug 2022 10:44:20 -0700 Message-Id: <20220812174420.2706827-1-khilman@baylibre.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Matthias Brugger Export of_mis_get_domain to enable it for users from outside. Signed-off-by: Matthias Brugger Acked-by: Rob Herring Signed-off-by: Peter Ujfalusi Link: https://lore.kernel.org/r/20200122104723.16955-1-peter.ujfalusi@ti.com Signed-off-by: Kevin Hilman --- Peter tried to resurrect this in 2020 (c.f. Link tag in log) but it didn't work. Here's one more attempt. I need this enable building some TI DMA drivers as modules. drivers/of/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/of/irq.c b/drivers/of/irq.c index d22f605fa7ee..c9308baa32c5 100644 --- a/drivers/of/irq.c +++ b/drivers/of/irq.c @@ -727,6 +727,7 @@ struct irq_domain *of_msi_get_domain(struct device *dev, return NULL; } +EXPORT_SYMBOL_GPL(of_msi_get_domain); /** * of_msi_configure - Set the msi_domain field of a device