* [PATCH 00/16] ARM: amba: Enable module alias autogeneration for AMBA drivers
@ 2011-10-05 16:04 Dave Martin
2011-10-05 16:05 ` [PATCH 11/16] spi: pl022: " Dave Martin
0 siblings, 1 reply; 4+ messages in thread
From: Dave Martin @ 2011-10-05 16:04 UTC (permalink / raw)
To: linux-arm-kernel
Cc: patches, Paweł Moll, Alan Cox, Alessandro Rubini,
Alessandro Zummo, alsa-devel, Chris Ball, Dan Williams,
Dmitry Torokhov, Grant Likely, Jaroslav Kysela, Julia Lawall,
Linus Walleij, linux-fbdev, linux-input, linux-mmc, linux-serial,
linux-watchdog, Paul Mundt, rtc-linux, Russell King,
spi-devel-general, Takashi Iwai, Vinod Koul, Wim Van Sebroeck
There's no special reason why AMBA device drivers should not be
auto-loadable via udev, but udev currently has no way to map AMBA
device IDs to drivers.
As part of the effort to help enable the building of multiple
ARM platforms into a single kernel image in the future, it's desirable
to be able to build any non-critical platform-specific drivers as
modules.
A straightforward solution is to use modaliases to allow udev to
identify the correct driver module to load.
This series enables the general infrastructure for modalias generation
to work for AMBA devices, and enables it in the affected drivers.
Briefly tested on Versatile Express, including aaci, mmci and amba-clcd
(which appears to have the most interesting modalias match pattern).
For me, the appropiate modules now get loaded at udev trigger time.
Any comments and feedback are welcome.
Dave Martin (16):
ARM: amba: Move definition of struct amba_id to mod_devicetable.h
ARM: amba: Auto-generate AMBA driver module aliases during modpost
hwrng: nomadik: Enable module alias autogeneration for AMBA drivers
dmaengine: pl08x: Enable module alias autogeneration for AMBA drivers
dmaengine: pl330: Enable module alias autogeneration for AMBA drivers
gpio: pl061: Enable module alias autogeneration for AMBA drivers
input: ambakmi: Enable module alias autogeneration for AMBA drivers
mmc: mmci: Enable module alias autogeneration for AMBA drivers
rtc: pl030: Enable module alias autogeneration for AMBA drivers
rtc: pl031: Enable module alias autogeneration for AMBA drivers
spi: pl022: Enable module alias autogeneration for AMBA drivers
serial: pl010: Enable module alias autogeneration for AMBA drivers
serial: pl011: Enable module alias autogeneration for AMBA drivers
fbdev: amba: Enable module alias autogeneration for AMBA drivers
watchdog: sp805: Enable module alias autogeneration for AMBA drivers
sound: aaci: Enable module alias autogeneration for AMBA drivers
drivers/amba/bus.c | 9 ++++-
drivers/char/hw_random/nomadik-rng.c | 2 +
drivers/dma/amba-pl08x.c | 2 +
drivers/dma/pl330.c | 2 +
drivers/gpio/gpio-pl061.c | 2 +
drivers/input/serio/ambakmi.c | 2 +
drivers/mmc/host/mmci.c | 2 +
drivers/rtc/rtc-pl030.c | 2 +
drivers/rtc/rtc-pl031.c | 2 +
drivers/spi/spi-pl022.c | 2 +
drivers/tty/serial/amba-pl010.c | 2 +
drivers/tty/serial/amba-pl011.c | 2 +
drivers/video/amba-clcd.c | 2 +
drivers/watchdog/sp805_wdt.c | 2 +
include/linux/amba/bus.h | 7 +---
include/linux/mod_devicetable.h | 18 ++++++++
scripts/mod/file2alias.c | 72 ++++++++++++++++++++++++++++++++++
sound/arm/aaci.c | 2 +
18 files changed, 127 insertions(+), 7 deletions(-)
--
1.7.4.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 11/16] spi: pl022: Enable module alias autogeneration for AMBA drivers
2011-10-05 16:04 [PATCH 00/16] ARM: amba: Enable module alias autogeneration for AMBA drivers Dave Martin
@ 2011-10-05 16:05 ` Dave Martin
2011-10-05 16:39 ` Grant Likely
[not found] ` <1317830707-17517-12-git-send-email-dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
0 siblings, 2 replies; 4+ messages in thread
From: Dave Martin @ 2011-10-05 16:05 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Grant Likely, spi-devel-general, Paweł Moll, patches
Signed-off-by: Dave Martin <dave.martin@linaro.org>
---
drivers/spi/spi-pl022.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index f103e470..43abaf2 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -2424,6 +2424,8 @@ static struct amba_id pl022_ids[] = {
{ 0, 0 },
};
+MODULE_DEVICE_TABLE(amba, pl022_ids);
+
static struct amba_driver pl022_driver = {
.drv = {
.name = "ssp-pl022",
--
1.7.4.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 11/16] spi: pl022: Enable module alias autogeneration for AMBA drivers
2011-10-05 16:05 ` [PATCH 11/16] spi: pl022: " Dave Martin
@ 2011-10-05 16:39 ` Grant Likely
[not found] ` <1317830707-17517-12-git-send-email-dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
1 sibling, 0 replies; 4+ messages in thread
From: Grant Likely @ 2011-10-05 16:39 UTC (permalink / raw)
To: Dave Martin; +Cc: spi-devel-general, Paweł Moll, linux-arm-kernel, patches
On Wed, Oct 5, 2011 at 10:05 AM, Dave Martin <dave.martin@linaro.org> wrote:
> Signed-off-by: Dave Martin <dave.martin@linaro.org>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
> ---
> drivers/spi/spi-pl022.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
> index f103e470..43abaf2 100644
> --- a/drivers/spi/spi-pl022.c
> +++ b/drivers/spi/spi-pl022.c
> @@ -2424,6 +2424,8 @@ static struct amba_id pl022_ids[] = {
> { 0, 0 },
> };
>
> +MODULE_DEVICE_TABLE(amba, pl022_ids);
> +
> static struct amba_driver pl022_driver = {
> .drv = {
> .name = "ssp-pl022",
> --
> 1.7.4.1
>
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <1317830707-17517-12-git-send-email-dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>]
* Re: [PATCH 11/16] spi: pl022: Enable module alias autogeneration for AMBA drivers
[not found] ` <1317830707-17517-12-git-send-email-dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
@ 2011-10-06 17:13 ` Linus Walleij
0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2011-10-06 17:13 UTC (permalink / raw)
To: Dave Martin
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f,
Paweł Moll,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r,
patches-QSEj5FYQhm4dnm+yROfE0A
2011/10/5 Dave Martin <dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>:
> Signed-off-by: Dave Martin <dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> ---
> drivers/spi/spi-pl022.c | 2 ++
> 1 files changed, 2 insertions(+), 0 deletions(-)
Acked-by: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Thanks,
Linus Walleij
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-06 17:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-05 16:04 [PATCH 00/16] ARM: amba: Enable module alias autogeneration for AMBA drivers Dave Martin
2011-10-05 16:05 ` [PATCH 11/16] spi: pl022: " Dave Martin
2011-10-05 16:39 ` Grant Likely
[not found] ` <1317830707-17517-12-git-send-email-dave.martin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2011-10-06 17:13 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).