linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: amba: Enable module alias autogeneration for AMBA drivers
@ 2011-10-14 10:04 Dave Martin
  2011-10-14 10:04 ` [PATCH 1/2] ARM: amba: Move definition of struct amba_id to mod_devicetable.h Dave Martin
  2011-10-14 10:04 ` [PATCH 2/2] ARM: amba: Auto-generate AMBA driver module aliases during modpost Dave Martin
  0 siblings, 2 replies; 6+ messages in thread
From: Dave Martin @ 2011-10-14 10:04 UTC (permalink / raw)
  To: linux-arm-kernel

[This is a partial repost of a series previously posted to alkml.

This post contains the core changes.  The driver-specific changes
can be found on alkml.]

 --

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 (2):
  ARM: amba: Move definition of struct amba_id to mod_devicetable.h
  ARM: amba: Auto-generate AMBA driver module aliases during modpost

 drivers/amba/bus.c              |    9 ++++-
 include/linux/amba/bus.h        |    7 +---
 include/linux/mod_devicetable.h |   18 ++++++++++
 scripts/mod/file2alias.c        |   72 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 99 insertions(+), 7 deletions(-)

-- 
1.7.4.1

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH 0/2 REPOST] ARM: amba: Enable module alias autogeneration for AMBA drivers
@ 2011-11-21 10:48 Dave Martin
  2011-11-21 10:48 ` [PATCH 2/2] ARM: amba: Auto-generate AMBA driver module aliases during modpost Dave Martin
  0 siblings, 1 reply; 6+ messages in thread
From: Dave Martin @ 2011-11-21 10:48 UTC (permalink / raw)
  To: linux-arm-kernel

[This is a partial repost of a series previously posted to alkml.

This post contains the core changes.  The driver-specific changes
can be found on alkml.]

 --

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 (2):
  ARM: amba: Move definition of struct amba_id to mod_devicetable.h
  ARM: amba: Auto-generate AMBA driver module aliases during modpost

 drivers/amba/bus.c              |    9 ++++-
 include/linux/amba/bus.h        |    7 +---
 include/linux/mod_devicetable.h |   18 ++++++++++
 scripts/mod/file2alias.c        |   72 +++++++++++++++++++++++++++++++++++++++
 4 files changed, 99 insertions(+), 7 deletions(-)

-- 
1.7.4.1

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-11-21 14:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-14 10:04 [PATCH 0/2] ARM: amba: Enable module alias autogeneration for AMBA drivers Dave Martin
2011-10-14 10:04 ` [PATCH 1/2] ARM: amba: Move definition of struct amba_id to mod_devicetable.h Dave Martin
2011-10-14 10:04 ` [PATCH 2/2] ARM: amba: Auto-generate AMBA driver module aliases during modpost Dave Martin
  -- strict thread matches above, loose matches on Subject: below --
2011-11-21 10:48 [PATCH 0/2 REPOST] ARM: amba: Enable module alias autogeneration for AMBA drivers Dave Martin
2011-11-21 10:48 ` [PATCH 2/2] ARM: amba: Auto-generate AMBA driver module aliases during modpost Dave Martin
2011-11-21 13:10   ` Uwe Kleine-König
2011-11-21 14:18     ` Dave Martin

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).