All of lore.kernel.org
 help / color / mirror / Atom feed
From: dave.martin@linaro.org (Dave Martin)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 00/16] ARM: amba: Enable module alias autogeneration for AMBA drivers
Date: Thu, 13 Oct 2011 17:54:20 +0100	[thread overview]
Message-ID: <20111013165420.GA2422@localhost.localdomain> (raw)
In-Reply-To: <1317830707-17517-1-git-send-email-dave.martin@linaro.org>

Russell, did you have a view on this series?

Following your suggestion I was able to use the generic modpost
infrastructure instead of reinventing stuff, and it seemes to work out
quite neatly.

Hopefully the only possibly-contraversial change change is the
movement of struct amba_id.

If it's already on your queue to look at then there's no need to rush.

Thanks
---Dave

On Wed, Oct 05, 2011 at 05:04:51PM +0100, Dave Martin wrote:
> 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
> 

  parent reply	other threads:[~2011-10-13 16:54 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-05 16:04 [PATCH 00/16] ARM: amba: Enable module alias autogeneration for AMBA drivers Dave Martin
2011-10-05 16:04 ` Dave Martin
2011-10-05 16:04 ` Dave Martin
2011-10-05 16:04 ` [PATCH 01/16] ARM: amba: Move definition of struct amba_id to mod_devicetable.h Dave Martin
2011-10-05 16:04 ` [PATCH 02/16] ARM: amba: Auto-generate AMBA driver module aliases during modpost Dave Martin
2011-10-05 17:37   ` Pawel Moll
2011-10-05 16:04 ` [PATCH 03/16] hwrng: nomadik: Enable module alias autogeneration for AMBA drivers Dave Martin
2011-10-05 16:04 ` [PATCH 04/16] dmaengine: pl08x: " Dave Martin
2011-10-07  4:33   ` Vinod Koul
2011-10-05 16:04 ` [PATCH 05/16] dmaengine: pl330: " Dave Martin
2011-10-06  5:17   ` Jassi Brar
2011-10-07  4:32     ` Vinod Koul
2011-10-05 16:04 ` [PATCH 06/16] gpio: pl061: " Dave Martin
2011-10-05 16:39   ` Grant Likely
2011-10-05 16:04 ` [PATCH 07/16] input: ambakmi: " Dave Martin
2011-10-05 16:04   ` Dave Martin
2011-10-06  3:37   ` Dmitry Torokhov
2011-10-06  3:37     ` Dmitry Torokhov
2011-10-05 16:04 ` [PATCH 08/16] mmc: mmci: " Dave Martin
2011-10-05 16:04   ` Dave Martin
2011-10-05 16:05 ` [PATCH 09/16] rtc: pl030: " Dave Martin
2011-10-05 16:05 ` [PATCH 10/16] rtc: pl031: " Dave Martin
2011-10-05 16:05 ` [PATCH 11/16] spi: pl022: " Dave Martin
2011-10-05 16:05   ` Dave Martin
2011-10-05 16:39   ` Grant Likely
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
2011-10-06 17:13       ` Linus Walleij
2011-10-05 16:05 ` [PATCH 12/16] serial: pl010: " Dave Martin
2011-10-05 16:05   ` Dave Martin
2011-10-05 16:05 ` [PATCH 13/16] serial: pl011: " Dave Martin
2011-10-05 16:05   ` Dave Martin
2011-10-05 16:05 ` [PATCH 14/16] fbdev: amba: " Dave Martin
2011-10-05 16:05   ` Dave Martin
2011-10-05 16:05 ` [PATCH 15/16] watchdog: sp805: " Dave Martin
2011-10-05 16:05   ` Dave Martin
2011-10-05 16:05 ` [PATCH 16/16] sound: aaci: " Dave Martin
2011-10-05 16:05   ` Dave Martin
2011-10-13 16:54 ` Dave Martin [this message]
2011-10-13 17:24   ` [PATCH 00/16] ARM: amba: " Russell King - ARM Linux
2011-10-14  9:27     ` Dave Martin

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=20111013165420.GA2422@localhost.localdomain \
    --to=dave.martin@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.