[lkml]   [2018]   [May]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Patch in this message
Subject[PATCH 1/4] amba: Export amba_bustype
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 <>
Cc: Alex Williamson <>
Cc: Eric Auger <>
Cc: Russell King <>
Cc: Greg Kroah-Hartman <>
Cc: Todd Kjos <>
Cc: Geert Uytterhoeven <>
Cc: Thierry Reding <>
Cc: Robin Murphy <>
Signed-off-by: Kim Phillips <>
There was a prior patch submitted by Alex W. here:

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

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

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,

static int __init amba_init(void)
 \ /
  Last update: 2018-05-08 21:07    [W:0.146 / U:3.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site