From: Dave Martin <dave.martin@linaro.org>
To: linux-arm-kernel@lists.infradead.org
Cc: patches@linaro.org, "Paweł Moll" <Pawel.Moll@arm.com>,
"Alan Cox" <alan@linux.intel.com>,
"Alessandro Rubini" <rubini@unipv.it>,
"Alessandro Zummo" <a.zummo@towertech.it>,
alsa-devel@alsa-project.org, "Chris Ball" <cjb@laptop.org>,
"Dan Williams" <dan.j.williams@intel.com>,
"Dmitry Torokhov" <dmitry.torokhov@gmail.com>,
"Grant Likely" <grant.likely@secretlab.ca>,
"Jaroslav Kysela" <perex@perex.cz>,
"Julia Lawall" <julia@diku.dk>,
"Linus Walleij" <linus.walleij@linaro.org>,
linux-fbdev@vger.kernel.org, linux-input@vger.kernel.org,
linux-mmc@vger.kernel.org, linux-serial@vger.kernel.org,
linux-watchdog@vger.kernel.org,
"Paul Mundt" <lethal@linux-sh.org>,
rtc-linux@googlegroups.com,
"Russell King" <linux@arm.linux.org.uk>,
spi-devel-general@lists.sourceforge.net,
"Takashi Iwai" <tiwai@suse.de>,
"Vinod Koul" <vinod.koul@intel.com>,
"Wim Van Sebroeck" <wim@iguana.be>
Subject: [PATCH 00/16] ARM: amba: Enable module alias autogeneration for AMBA drivers
Date: Wed, 5 Oct 2011 17:04:51 +0100 [thread overview]
Message-ID: <1317830707-17517-1-git-send-email-dave.martin@linaro.org> (raw)
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
next reply other threads:[~2011-10-05 16:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-05 16:04 Dave Martin [this message]
2011-10-05 16:04 ` [PATCH 07/16] input: ambakmi: Enable module alias autogeneration for AMBA drivers Dave Martin
2011-10-06 3:37 ` Dmitry Torokhov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1317830707-17517-1-git-send-email-dave.martin@linaro.org \
--to=dave.martin@linaro.org \
--cc=Pawel.Moll@arm.com \
--cc=a.zummo@towertech.it \
--cc=alan@linux.intel.com \
--cc=alsa-devel@alsa-project.org \
--cc=cjb@laptop.org \
--cc=dan.j.williams@intel.com \
--cc=dmitry.torokhov@gmail.com \
--cc=grant.likely@secretlab.ca \
--cc=julia@diku.dk \
--cc=lethal@linux-sh.org \
--cc=linus.walleij@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-input@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=patches@linaro.org \
--cc=perex@perex.cz \
--cc=rtc-linux@googlegroups.com \
--cc=rubini@unipv.it \
--cc=spi-devel-general@lists.sourceforge.net \
--cc=tiwai@suse.de \
--cc=vinod.koul@intel.com \
--cc=wim@iguana.be \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).