drivers/bus: remove unused modular code from non-modular drivers
Subsystems (2)
cover drivers/bus: remove unused modular code from non-modular drivers
The drivers/bus doesn't have a strict maintainer entry, but since all the changes here are for ARM platforms, I'm Cc'ing arm-kernel and hoping it makes sense to vector these few changes through the arm-soc. [Olof, Will, Arnd? Seems you guys handle most of it...]
My ongoing audit looking for non-modular code that needlessly uses modular macros (vs. built-in equivalents) and/or has dead code relating to module unloading that can never be executed led to the creation of these four commits.
Two are of the trivial kind, where we substitute in the non-modular versions that CPP would have put in place anyway, resulting in no actual changes, even at the binary output level.
The other two are of the kind where there was a ".remove" function registered into the driver struct. Being non-modular, these functions will never be called via a normal module_exit path.
However, since it was possible (but largely pointless, and without a real use case) to unbind these drivers via sysfs, we explicitly disallow the unbind as part of the removal of the ".remove" itself.
For anyone new to the underlying goal of this cleanup, we are trying to not use module support for code that can never be built as a module since:
(1) it is easy to accidentally write unused module_exit and remove code
(2) it can be misleading when reading the source, thinking it can be modular when the Makefile and/or Kconfig prohibit it
(3) it requires the include of the module.h header file which in turn includes nearly everything else, thus adding to CPP overhead.
(4) it gets copied/replicated into other code and spreads like weeds.
Build tested for arm and arm64 on v4.6-rc1 to ensure no silly typos that would break compilation crept in.
---
Paul Gortmaker (4):
drivers/bus: make brcmstb_gisb.c driver explicitly non-modular drivers/bus: make imx-weim.c explicitly non-modular drivers/bus: make simple-pm-bus.c explicitly non-modular drivers/bus: make arm-ccn.c driver explicitly non-modular
drivers/bus/arm-ccn.c | 41 +++++------------------------------------ drivers/bus/brcmstb_gisb.c | 4 +--- drivers/bus/imx-weim.c | 9 ++------- drivers/bus/simple-pm-bus.c | 22 +++++----------------- 4 files changed, 13 insertions(+), 63 deletions(-)
Signature · 1 line
2.6.1
PATCH 1/4 drivers/bus: make brcmstb_gisb.c driver explicitly non-modular
The Kconfig for this driver is currently:
config BRCMSTB_GISB_ARB
bool "Broadcom STB GISB bus arbiter"
...meaning that it currently is not being built as a module by anyone. Lets remove all modular references, so that when reading the driver there is no doubt it is builtin-only.
Since module_init translates to device_initcall in the non-modular case, the init ordering remains unchanged with this commit.
--- drivers/bus/brcmstb_gisb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/bus/brcmstb_gisb.c +1 -3
@@ -13,7 +13,6 @@#include <linux/init.h> #include <linux/types.h> -#include <linux/module.h> #include <linux/platform_device.h> #include <linux/interrupt.h> #include <linux/sysfs.h>
@@ -408,5 +407,4 @@ static int __init brcm_gisb_driver_init(void)return platform_driver_probe (&brcmstb_gisb_arb_driver, brcmstb_gisb_arb_probe); } - -module_init (brcm_gisb_driver_init); +device_initcall (brcm_gisb_driver_init);
Signature · 1 line
2.6.1
Re: [PATCH 1/4] drivers/bus: make brcmstb_gisb.c driver explicitly non-modular
Quoted 9 lines · Paul Gortmaker
The
Kconfigfor this driver is currently:config
BRCMSTB_GISB_ARB
bool "Broadcom STB GISB bus arbiter"...meaning that it currently is not being built as a module by anyone. Lets remove all modular references, so that when reading the driver there is no doubt it is builtin-only.
Quoted 8 lines
Since
module_inittranslates todevice_initcallin the non-modular case, the init ordering remains unchanged with this commit.Cc Brian Norris <[email protected]>Cc Gregory Fong <[email protected]>Cc Florian Fainelli <[email protected]>Cc linux-arm-kernel at lists.infradead.orgSigned-off-by Paul Gortmaker <[email protected]>
I think this driver probably doesn't make too much sense as a module anyway (among other things, we can't hook the ARM fault handler beyond init time, as it's marked __init). So:
Might be good to get Florian's ack though, as I'm not using this platform any more.
Brian
Quoted 26 lines
--- drivers/bus/brcmstb_gisb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/bus/brcmstb_gisb.c +1
-3@@ -13,7 +13,6 @@#include <linux/init.h> #include <linux/types.h> -#include <linux/module.h> #include <linux/platform_device.h> #include <linux/interrupt.h> #include <linux/sysfs.h> @@ -408,5 +407,4 @@ static int __init brcm_gisb_driver_init(void)return platform_driver_probe (&brcmstb_gisb_arb_driver, brcmstb_gisb_arb_probe); } - -module_init (brcm_gisb_driver_init); +device_initcall (brcm_gisb_driver_init);Signature · 1 line
2.6.1
Florian Fainelli
Acked-byRe: [PATCH 1/4] drivers/bus: make brcmstb_gisb.c driver explicitly non-modular
Quoted 19 lines · Brian Norris
Quoted 9 lines · Paul Gortmaker
The
Kconfigfor this driver is currently:config
BRCMSTB_GISB_ARB
bool "Broadcom STB GISB bus arbiter"...meaning that it currently is not being built as a module by anyone. Lets remove all modular references, so that when reading the driver there is no doubt it is builtin-only.
Quoted 8 lines
Since
module_inittranslates todevice_initcallin the non-modular case, the init ordering remains unchanged with this commit.Cc Brian Norris <[email protected]>Cc Gregory Fong <[email protected]>Cc Florian Fainelli <[email protected]>Cc linux-arm-kernel at lists.infradead.orgSigned-off-by Paul Gortmaker <[email protected]>
Quoted 8 lines
I think this driver probably doesn't make too much sense as a module anyway (among other things, we can't hook the ARM fault handler beyond init time, as it's marked
__init). So:Acked-by Brian Norris <[email protected]>Might be good to get Florian's ack though, as I'm not using this platform any more.
I concur with Brian here, your changes look good:
Thanks Paul
Signature · 1 line
Florian
PATCH 2/4 drivers/bus: make imx-weim.c explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
drivers/bus/Kconfig:config IMX_WEIMdrivers/bus/Kconfig: bool "Freescale EIM DRIVER
...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only.
Since module_platform_driver() uses the same init level priority as builtin_platform_driver() the init ordering remains unchanged with this commit.
Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
We also delete the MODULE_LICENSE tag etc. since all that information is already contained at the top of the file in the comments.
--- drivers/bus/imx-weim.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-)
drivers/bus/imx-weim.c +2 -7
@@ -7,7 +7,7 @@* License version 2. This program is licensed "as is" without any * warranty of any kind, whether express or implied. */ -#include <linux/module.h> +#include <linux/init.h> #include <linux/clk.h> #include <linux/io.h> #include <linux/of_device.h>
@@ -57,7 +57,6 @@ static const struct of_device_id weim_id_table[] = { { .compatible = "fsl,imx51-weim", .data = &imx51_weim_devtype, }, { } }; -MODULE_DEVICE_TABLE (of, weim_id_table);static int __init imx_weim_gpr_setup (struct platform_device *pdev) {
@@ -210,8 +209,4 @@ static struct platform_driver weim_driver = { .of_match_table = weim_id_table, }, }; -module_platform_driver_probe (weim_driver, weim_probe); - -MODULE_AUTHOR ("Freescale Semiconductor Inc." ); -MODULE_DESCRIPTION ("i.MX EIM Controller Driver" ); -MODULE_LICENSE ("GPL" ); +builtin_platform_driver_probe (weim_driver, weim_probe);
Signature · 1 line
2.6.1
Re: [PATCH 2/4] drivers/bus: make imx-weim.c explicitly non-modular
Quoted 14 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:drivers/bus/Kconfig:config
IMX_WEIMdrivers/bus/Kconfig: bool "Freescale EIM DRIVER...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only.
Since
module_platform_driver()uses the same init level priority asbuiltin_platform_driver()the init ordering remains unchanged with this commit.
Quoted 6 lines
Also note that
MODULE_DEVICE_TABLEis a no-op for non-modular code.We also delete the
MODULE_LICENSEtag etc. since all that information is already contained at the top of the file in the comments.Cc Shawn Guo <[email protected]>
Quoted 5 lines
Cc Alison Chaiken <[email protected]>Cc Sascha Hauer <[email protected]>Cc Wolfram Sang <[email protected]>Cc linux-arm-kernel at lists.infradead.orgSigned-off-by Paul Gortmaker <[email protected]>
PATCH 3/4 drivers/bus: make simple-pm-bus.c explicitly non-modular
In reply to Paul GortmakerThe Kconfig currently controlling compilation of this code is:
config SIMPLE_PM_BUS
bool "Simple Power-Managed Bus Driver"
...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only.
We explicitly disallow a driver unbind, since that doesn't have a sensible use case anyway, and it allows us to drop the ".remove" code for non-modular drivers.
Since module_init translates to device_initcall in the non-modular case, the init ordering remains unchanged with this commit.
Also note that MODULE_DEVICE_TABLE is a no-op for non-modular code.
We also delete the MODULE_LICENSE tag etc. since all that information was (or is now) contained at the top of the file in the comments.
--- drivers/bus/simple-pm-bus.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-)
drivers/bus/simple-pm-bus.c +5 -17
@@ -1,6 +1,8 @@/* * Simple Power-Managed Bus Driver * +* Author: Geert Uytterhoeven <[email protected]> +* * Copyright (C) 2014-2015 Glider bvba * * This file is subject to the terms and conditions of the GNU General Public
@@ -8,7 +10,7 @@* for more details. */ -#include <linux/module.h> +#include <linux/init.h> #include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/pm_runtime.h>
@@ -28,31 +30,17 @@ static int simple_pm_bus_probe(struct platform_device *pdev)return 0 ; } -static int simple_pm_bus_remove (struct platform_device *pdev) -{ -dev_dbg (&pdev->dev,"%s\n" , __func__); - -pm_runtime_disable (&pdev->dev); -return 0 ; -} -static const struct of_device_id simple_pm_bus_of_match[] = { { .compatible ="simple-pm-bus" , }, {/* sentinel */ } }; -MODULE_DEVICE_TABLE (of, simple_pm_bus_of_match);static struct platform_driver simple_pm_bus_driver = { .probe = simple_pm_bus_probe, - .remove = simple_pm_bus_remove, .driver = { .name ="simple-pm-bus" , .of_match_table = simple_pm_bus_of_match, + .suppress_bind_attrs = true, }, }; - -module_platform_driver (simple_pm_bus_driver); - -MODULE_DESCRIPTION ("Simple Power-Managed Bus Driver" ); -MODULE_AUTHOR ("Geert Uytterhoeven <[email protected]>" ); -MODULE_LICENSE ("GPL v2" ); +builtin_platform_driver (simple_pm_bus_driver);
Signature · 1 line
2.6.1
Re: [PATCH 3/4] drivers/bus: make simple-pm-bus.c explicitly non-modular
Hi Paul,
Quoted 5 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:config
SIMPLE_PM_BUS
bool "Simple Power-Managed Bus Driver"
Quoted 8 lines
...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only.
We explicitly disallow a driver unbind, since that doesn't have a sensible use case anyway, and it allows us to drop the ".remove" code for non-modular drivers.
Be prepared for the fallout. There are test farms running bind/unbind cycles on random drivers.
Quoted 5 lines
Since
module_inittranslates todevice_initcallin the non-modular case, the init ordering remains unchanged with this commit.Also note that
MODULE_DEVICE_TABLEis a no-op for non-modular code.
Quoted 8 lines
We also delete the
MODULE_LICENSEtag etc. since all that information was (or is now) contained at the top of the file in the comments.Cc Geert Uytterhoeven <[email protected]>Cc Kevin Hilman <[email protected]>Cc Simon Horman <[email protected]>Cc linux-arm-kernel at lists.infradead.orgSigned-off-by Paul Gortmaker <[email protected]>
NAK.
IIRC, I did test unbind.
The real and productive fix is to change "bool" to "tristate" in Kconfig.
All of these "make ... explicitly non-modular" may have to be reverted again when our kernels become too big to boot.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Re: [PATCH 3/4] drivers/bus: make simple-pm-bus.c explicitly non-modular
Quoted 14 lines · [Re: [PATCH 3/4] drivers/bus: make simple-pm-bus.c explicitly non-modular] On…
Hi Paul,
Quoted 10 lines · Paul Gortmaker
The
Kconfigcurrently controlling compilation of this code is:config
SIMPLE_PM_BUS
bool "Simple Power-Managed Bus Driver"...meaning that it currently is not being built as a module by anyone.
Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only.
Quoted 6 lines
Quoted 3 lines
We explicitly disallow a driver unbind, since that doesn't have a sensible use case anyway, and it allows us to drop the ".remove" code for non-modular drivers.
Be prepared for the fallout. There are test farms running bind/unbind cycles on random drivers.
If you say so. I find that a rather odd assertion. Can you point me at some automated test results showing bind/unbind being cycled across all drivers at random? I would expect many instances of runtime failures.
A while back even LinusW suggested in passing that a blanket blocking unbind for built-in might make sense ; he was worried that bad things would happen if people unbind drivers supplying core resources.[1] But I noted the PCI pass through case is one valid use case for unbind while built-in.
The point being that yes there are some valid use cases, but on the whole they mostly don't make sense for an end user or for most drivers. So we deal with it case by case currently.
Quoted 15 lines
Quoted 6 lines
Since
module_inittranslates todevice_initcallin the non-modular case, the init ordering remains unchanged with this commit.Also note that
MODULE_DEVICE_TABLEis a no-op for non-modular code.Quoted 8 lines
We also delete the
MODULE_LICENSEtag etc. since all that information was (or is now) contained at the top of the file in the comments.Cc Geert Uytterhoeven <[email protected]>Cc Kevin Hilman <[email protected]>Cc Simon Horman <[email protected]>Cc linux-arm-kernel at lists.infradead.orgSigned-off-by Paul Gortmaker <[email protected]>
Quoted 5 lines
NAK.
IIRC, I did test unbind.
The real and productive fix is to change "bool" to "tristate" in
Kconfig.
Fine, I'll drop this patch and welcome your conversion to tristate. As I've said several times in the past, authors and/or people with hardware to test are welcome to convert to tristate, but I personally can't be extending that functionality myself to all these drivers that are currently limited to bool/built-in only, but misrepresenting as modular.
Quoted 3 lines
All of these "make ... explicitly non-modular" may have to be reverted again when our kernels become too big to boot.
I think that is alarmist and not based on reality, but lets say for the sake of argument that a handful of drivers do get converted to tristate down the road. If that is done on demand, i.e. where the need and testing is provided by someone who cares, then great! The code remains consistent with the Makefile/Kconfig infrastructure in such a change.
But currently there is a significant disconnect between driver code and the controlling Makefile/Kconfig -- and people just copy that disconnect into their new driver without even thinking whether they want modular support or not. We need to fix that, and we need to be asking as part of the review of new drivers "Did you actually mean/want tristate here?" We also should be asking if they expect a valid bind/unbind use case.
Paul.
--
[1] http://lkml.iu.edu/hypermail/linux/kernel/1506.0/02323.html
Quoted 11 lines
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.orgIn personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
PATCH 4/4 drivers/bus: make arm-ccn.c driver explicitly non-modular
In reply to Paul GortmakerThe Kconfig for this driver is currently:
config ARM_CCN
bool "ARM CCN driver support"
...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only.
We explicitly disallow a driver unbind, since that doesn't have a sensible use case anyway, and it allows us to drop the ".remove" code for non-modular drivers.
Since module_init translates to device_initcall in the non-modular case, the init ordering remains unchanged with this commit.
We exchange module.h for moduleparam.h here since the driver uses module_param_named, and for now the easiest way to remain compatible with existing bootargs use cases is to leave this as-is.
We also delete the MODULE_LICENSE tag etc. since all that information was (or is now) contained at the top of the file in the comments.
--- drivers/bus/arm-ccn.c | 41 +++++------------------------------------ 1 file changed, 5 insertions(+), 36 deletions(-)
drivers/bus/arm-ccn.c +5 -36
@@ -9,6 +9,8 @@* GNU General Public License for more details. * * Copyright (C) 2014 ARM Limited +* +* Author: Pawel Moll <[email protected]> */ #include <linux/ctype.h>
@@ -16,7 +18,7 @@#include <linux/idr.h> #include <linux/interrupt.h> #include <linux/io.h> -#include <linux/module.h> +#include <linux/moduleparam.h> #include <linux/perf_event.h> #include <linux/platform_device.h> #include <linux/slab.h>
@@ -1302,20 +1304,6 @@ error_cpu_notifier:return err; } -static void arm_ccn_pmu_cleanup (struct arm_ccn *ccn) -{ -int i; - -irq_set_affinity (ccn->irq, cpu_possible_mask); -unregister_cpu_notifier (&ccn->dt.cpu_nb); -for (i =0 ; i < ccn->num_xps; i++) -writel (0 , ccn->xp[i].base +CCN_XP_DT_CONTROL ); -writel (0 , ccn->dt.base +CCN_DT_PMCR ); -perf_pmu_unregister (&ccn->dt.pmu); -ida_simple_remove (&arm_ccn_pmu_ida, ccn->dt.id); -} - -static int arm_ccn_for_each_valid_region (struct arm_ccn *ccn,int (*callback)(struct arm_ccn *ccn,int region,void __iomem *base,u32 type,u32 id))
@@ -1507,15 +1495,6 @@ static int arm_ccn_probe(struct platform_device *pdev)return arm_ccn_pmu_init (ccn); } -static int arm_ccn_remove (struct platform_device *pdev) -{ -struct arm_ccn *ccn =platform_get_drvdata (pdev); - -arm_ccn_pmu_cleanup (ccn); - -return 0 ; -} -static const struct of_device_id arm_ccn_match[] = { { .compatible ="arm,ccn-504" , }, {},
@@ -1525,9 +1504,9 @@ static struct platform_driver arm_ccn_driver = { .driver = { .name = "arm-ccn", .of_match_table = arm_ccn_match, + .suppress_bind_attrs = true, }, .probe = arm_ccn_probe, - .remove = arm_ccn_remove, };static int __init arm_ccn_init (void )
@@ -1539,14 +1518,4 @@ static int __init arm_ccn_init(void)return platform_driver_register (&arm_ccn_driver); } - -static void __exit arm_ccn_exit(void) -{ -platform_driver_unregister (&arm_ccn_driver); -} - -module_init (arm_ccn_init); -module_exit (arm_ccn_exit); - -MODULE_AUTHOR ("Pawel Moll <[email protected]>" ); -MODULE_LICENSE ("GPL" ); +device_initcall (arm_ccn_init);
Signature · 1 line
2.6.1
Re: [PATCH 4/4] drivers/bus: make arm-ccn.c driver explicitly non-modular
Quoted 16 lines · Paul Gortmaker
The
Kconfigfor this driver is currently:config
ARM_CCN
bool "ARM CCN driver support"...meaning that it currently is not being built as a module by anyone. Lets remove the modular code that is essentially orphaned, so that when reading the driver there is no doubt it is builtin-only.
We explicitly disallow a driver unbind, since that doesn't have a sensible use case anyway, and it allows us to drop the ".remove" code for non-modular drivers.
Since
module_inittranslates todevice_initcallin the non-modular case, the init ordering remains unchanged with this commit.
Quoted 6 lines
We exchange
module.hformoduleparam.hhere since the driver usesmodule_param_named, and for now the easiest way to remain compatible with existing bootargs use cases is to leave this as-is.We also delete the
MODULE_LICENSEtag etc. since all that information was (or is now) contained at the top of the file in the comments.
I'd much rather fix the driver to build as a module, if at all possible. Suzuki (CC'd) is taking a look at that, so please drop this patch for now.
Will
Re: [PATCH 4/4] drivers/bus: make arm-ccn.c driver explicitly non-modular
Dnia 2016-03-29, Tue o godzinie 12:45 +0100, Will Deacon pisze:
Quoted 4 lines
I'd much rather fix the driver to build as a module, if at all possible.
Suzuki (CC'd) is taking a look at that, so please drop this patch for now.
There's no problem with building arm-ccn.c as a module - all it's really doing today is providing a PMU driver. I don't even know why have I made it bool-only in the first place...
Pawel
Re: [PATCH 4/4] drivers/bus: make arm-ccn.c driver explicitly non-modular
Quoted 9 lines · Pawel Moll
Dnia 2016-03-29, Tue o godzinie 12:45 +0100, Will Deacon pisze:
Quoted 4 lines
I'd much rather fix the driver to build as a module, if at all possible.
Suzuki (CC'd) is taking a look at that, so please drop this patch for now.There's no problem with building
arm-ccn.cas a module - all it's really doing today is providing a PMU driver. I don't even know why have I made it bool-only in the first place...
Probably because it doesn't compile due to the irq_set_affinity call.
Will
Re: [PATCH 4/4] drivers/bus: make arm-ccn.c driver explicitly non-modular
Quoted 8 lines · Will Deacon
Quoted 7 lines · Pawel Moll
Dnia 2016-03-29, Tue o godzinie 12:45 +0100, Will Deacon pisze:
Quoted 5 lines
I'd much rather fix the driver to build as a module, if at all possible.
Suzuki (CC'd) is taking a look at that, so please drop this patch for
now.
Quoted 5 lines
Quoted 3 lines
There's no problem with building
arm-ccn.cas a module - all it's really doing today is providing a PMU driver. I don't even know why have I made it bool-only in the first place...Probably because it doesn't compile due to the
irq_set_affinitycall.
The original arm-ccn.c did not call it at all. My guess is that I copied ARM_CCI stanza without thinking. But I'm glad Suzuki will straighten it out :-)
Pawe?
Re: [PATCH 4/4] drivers/bus: make arm-ccn.c driver explicitly non-modular
In reply to Pawel MollQuoted 9 lines · [Re: [PATCH 4/4] drivers/bus: make arm-ccn.c driver explicitly non-modular] On…
Dnia 2016-03-29, Tue o godzinie 12:45 +0100, Will Deacon pisze:
Quoted 4 lines
I'd much rather fix the driver to build as a module, if at all possible.
Suzuki (CC'd) is taking a look at that, so please drop this patch for now.There's no problem with building
arm-ccn.cas a module - all it's really doing today is providing a PMU driver. I don't even know why have I made it bool-only in the first place...
My guess is that like many other instances, it originally starts out as an innocent copy and paste during early driver development -- hence the desire to get the code and Kconfigs consistent tree wide.
Anyway, thanks guys for tackling the conversion ; I'll shelf this patch and watch for the conversion to hit linux-next.
Paul.
--
Quoted 2 lines
Pawel
Quoted 4 lines · Paul Gortmaker
The
drivers/busdoesn't have a strict maintainer entry, but since all the changes here are for ARM platforms, I'm Cc'ing arm-kernel and hoping it makes sense to vector these few changes through the arm-soc. [Olof, Will, Arnd? Seems you guys handle most of it...]
I plan to move the parts that are simply perf drivers under drivers/perf, so that should remove some of the code from drivers/bus. There's a fiddly part with the CCI, which has both perf code and bus initialisation code that need prying apart.
Will