Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] amba: Export amba_bustype
@ 2018-05-08 19:06 Kim Phillips
  2018-05-09 13:38 ` Robin Murphy
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Kim Phillips @ 2018-05-08 19:06 UTC (permalink / raw)
  To: linux-arm-kernel

This patch is provided in the context of allowing the Coresight driver
subsystem to be loaded as modules.  Coresight uses amba_bus in its call
to bus_find_device() in of_coresight_get_endpoint_device() when
searching for a configurable endpoint device.  This patch allows
Coresight to reference amba_bustype when built as a module.

Cc: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: Alex Williamson <alex.williamson@redhat.com>
Cc: Eric Auger <eric.auger@redhat.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Todd Kjos <tkjos@google.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Thierry Reding <treding@nvidia.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Kim Phillips <kim.phillips@arm.com>
---
There was a prior patch submitted by Alex W. here:

https://lkml.org/lkml/2017/6/19/811

But I can't tell its fate - presume simply delayed?

Coresight uses amba_bus in its call to bus_find_device() here:

https://lxr.missinglinkelectronics.com/linux/drivers/hwtracing/coresight/of_coresight.c#L51

Grepping for bus_type and EXPORT shows other busses exporting their
type, so I don't think this is the wrong approach.  If, OTOH, Coresight
needs to do something differently, please comment.

 drivers/amba/bus.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index 594c228d2f02..12283bd06733 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -197,6 +197,7 @@ struct bus_type amba_bustype = {
 	.pm		= &amba_pm,
 	.force_dma	= true,
 };
+EXPORT_SYMBOL_GPL(amba_bustype);
 
 static int __init amba_init(void)
 {
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-05-16 11:12 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-08 19:06 [PATCH 1/4] amba: Export amba_bustype Kim Phillips
2018-05-09 13:38 ` Robin Murphy
2018-05-09 15:40   ` Mathieu Poirier
2018-05-09 16:02     ` Robin Murphy
2018-05-14 21:49       ` Kim Phillips
2018-05-15  6:59 ` Ulf Hansson
2018-05-15 13:15   ` Kim Phillips
2018-05-15 13:48     ` Russell King - ARM Linux
2018-05-15 14:37       ` Kim Phillips
2018-05-15 15:07         ` Mathieu Poirier
2018-05-15 13:41   ` Russell King - ARM Linux
2018-05-16  8:57     ` Ulf Hansson
2018-05-16  9:16 ` Andy Shevchenko
2018-05-16  9:18   ` Russell King - ARM Linux
2018-05-16 11:12     ` Robin Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox