Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2044124rwb; Fri, 12 Aug 2022 10:54:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR7zOeN1BDd4Vef1y3jVnUoTOSKNu97+FTGGjCOKob94jX7L3QC1x5UiRKrTqIJ0mslPP7HH X-Received: by 2002:a63:65c2:0:b0:419:8146:b1a7 with SMTP id z185-20020a6365c2000000b004198146b1a7mr4048385pgb.210.1660326894086; Fri, 12 Aug 2022 10:54:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660326894; cv=none; d=google.com; s=arc-20160816; b=GB/bcKByAOyccvPX0TvGbrqA6IpNpX5ZUX1zRbPLMPw04zLAbs3MKQT5/9svDqa7D2 FuOHGSxZ9FD9OcBchkkvzsmFJOp1134ScSjJ1uR79PEgBCz+SxbKQV3YwRwkJTt6lhCw Udi7bAKo/dIqGhp7U6qMiNdObhS0bRoqrDo4Z28zqXdhLeTjGAt4l3ZJv7H61FbvftXU 43bYR/zZA5ZZ21vQceLg1g1FNc43kn+uktvT7HwrMEAEvlKb0snXAfOnfei8/uTBfXVE GWbASkfJGazzeVWCqeNlBpS/+fFTauN4Oz+EseJVFyYE9qBp485PTJnpVyTUeQ7O+4ND y+KQ== 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=eg4O+lUqSgQjO8nXVbPprUy9GOqPze3ptelQzcMBZ3E=; b=mi/BWC5CMkWlPtwS9OuvO87bN7h1UsP1AaBqXNIiOrBxkYZtWlBh+wl0XZflMZmQBZ r8TUCpFCZRdc4gHuVnKIH/L0ZNNq0uDcZ5PHqljqozoNDXsUxix8FKZE7vtPZ6l69rAk pYgQSOdPJ1ctxDNJVL5EAn38xlBinl91SziRVAYRV4E3ygeBQDM/Xdpkd3IUF0kq61yY 5dweQHvIQG8nQd8QIxvWUjV+4NDX820sRbCILH0cYAIuHk2H8A7nM8HsJABMYUDF40Uw qySpGayje6ADpXb9XkELpG8l5KTm5MLJgs4dYtYMUf9IbXbeC77PXM/dggmMhheN1dXR 6FwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=dgbQUeUB; 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 f5-20020a170902860500b0016d28b3f3e8si2659301plo.89.2022.08.12.10.54.43; Fri, 12 Aug 2022 10:54:54 -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=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=dgbQUeUB; 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 S234542AbiHLRoZ (ORCPT + 99 others); Fri, 12 Aug 2022 13:44:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229719AbiHLRoX (ORCPT ); Fri, 12 Aug 2022 13:44:23 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D46710FF8 for ; Fri, 12 Aug 2022 10:44:21 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id s206so1364855pgs.3 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=DMXhUzMwlJBHxdY5KH9SaPM+87gU2lKdZyZiBdwPBLeiCQfJ8dnGOxpHZOpb//anM5 4BNIlIR+1VXSk7n1iIZ7rrEXZ3PA58gN52ILszvhd71aJjm3lP6lf3I79qdbQtPWSeiy hMQ6O17xXJk9SvAkLptOs0CAPA+jEKUSO0d8cp/xQ9vAgaPFsNhXgM1DZoywv64UcBSQ Tq0UXw2esD2YcF5lY2cuNwjMZQrol7kfCvdXojOBBYkuspFwkF2qb+6bcx4NlqKi6jzB tB7dlfgzobm2zRFuC/YRUYkXR1tx2YLZi8uvAvjJORdn9lzGZf7ePgKwtxXwecN4H3AU fEng== X-Gm-Message-State: ACgBeo0apBeZ5P0cD1qqJCk19nKnX3DBNrIkqNJVGbqJdVq4D4wTB+dY NOjaAcQzbDcYH2Mps7StIF5JHep4LisGZA== 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=20Ujfalusi?= , 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 Content-Transfer-Encoding: 8bit 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_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 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 -- 2.34.0