Received: by 10.192.165.148 with SMTP id m20csp4672555imm; Tue, 8 May 2018 12:15:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpDX0oNrYVM/5MSczsT8dztqIh6j6MKFWDVCDoNhM8sPAo7pUMlLTwjX7zid76ux6a8n4H/ X-Received: by 2002:a17:902:e8:: with SMTP id a95-v6mr42705042pla.274.1525806945324; Tue, 08 May 2018 12:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525806945; cv=none; d=google.com; s=arc-20160816; b=lrzeXDIp4jP1QA9ZxkgLTEzSbkvI/Ki7ue+W5DCcT11urf6DAdEloKEUn6AOQKcLnB WTs08ERNHlq5wuaUdUoP0+S+0pQymZt1Qqkx0gYVot5i9BEO0IvK8sGXB7exn71ZjUfm IEyZ9o0JpiPGvetZ4GMKdcFe/WY7gC3vBXMpDfNdUQiUz55XZ/wk3CQm4Qs7gv9+3WVy 0BuOJhg4XGIdeo6tEXV9UytywMpfLS+0dBdjRxoINNH4yEXejA9XxzMuurjrvP1ITcva 1aJcEyExk1Xz/bHzC4OQ5I8O59apszI7eCbAUlHYlocKFJlVWPbRtIG/9AfMxByLQVEr BoOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:message-id:subject:cc:to:from:date :arc-authentication-results; bh=LIhtYwwPvnmngHBCsIts07w5IqqcIgFOnk5EGtWXIl4=; b=CzhfxHw/UJbR0eR8dyPQbgsR+H0YSgubkXRxcRcviPwhgmhrrookmBBa0xnH4teRza bveySixE/YKAZUZY+YCIohO4jBq5lbZg/TmM2g8Y6V612nEoEMcISz1YpoDjh9uioT/1 48A4vSGpj8vuHH02qos14QQ4/YbOn4q527LhzFrrjaPOQuSiUOIGy9McrjuHB6WPCwxe g1hgVqbqBlLnXU+dJOfqGyyoLQi2DQ/YjnG7mIFyP1FQXPPYqWiwGMozAbTz1WSNLD6Y Xdt08AWJPSbFomrwHXiEzT0E0bN9bMjjG78wQeCV7BMXt4lwayiK3QSvc63mT5CwS9wa T1bQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s22-v6si7885999pgv.333.2018.05.08.12.15.17; Tue, 08 May 2018 12:15:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755904AbeEHTGb (ORCPT + 99 others); Tue, 8 May 2018 15:06:31 -0400 Received: from foss.arm.com ([217.140.101.70]:34480 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754866AbeEHTGa (ORCPT ); Tue, 8 May 2018 15:06:30 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 202B01529; Tue, 8 May 2018 12:06:30 -0700 (PDT) Received: from dupont (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D2C1B3F58C; Tue, 8 May 2018 12:06:28 -0700 (PDT) Date: Tue, 8 May 2018 14:06:28 -0500 From: Kim Phillips To: Mathieu Poirier Cc: Alexander Shishkin , Alex Williamson , Andrew Morton , David Howells , Eric Auger , Eric Biederman , Gargi Sharma , Geert Uytterhoeven , Greg Kroah-Hartman , Kefeng Wang , Kim Phillips , Kirill Tkhai , Mike Rapoport , Oleg Nesterov , Pavel Tatashin , Rik van Riel , Robin Murphy , Russell King , Thierry Reding , Todd Kjos , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] amba: Export amba_bustype Message-Id: <20180508140628.f30774c70c4c481bff3f8000@arm.com> Organization: Arm X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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: 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