Skip to contentSkip to conversation

ARM: amba: Enable module alias autogeneration for AMBA drivers

PATCH New Dave Martin 8 participants 28 messages Oct 5, 2011 – Oct 14, 2011

Subsystems (20)
Sound Kbuild HID GPIO +16 more subsystems
lore
Share & tools
lore
#0 lore raw

cover ARM: amba: Enable module alias autogeneration for AMBA drivers

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(-)
Signature · 1 line
1.7.4.1
#1 lore raw

PATCH 1/16 ARM: amba: Move definition of struct amba_id to mod_devicetable.h

The general kernel infrastructure for adding module alises during module post processing expects the affected device type identification structures in a common header <linux/mod_devicetable.h>.

This patch simple moves struct amba_id to the common header, and adds the appropriate include in <linux/amba/bus.h>.

---
 include/linux/amba/bus.h        |    7 +------
 include/linux/mod_devicetable.h |   18 ++++++++++++++++++
 2 files changed, 19 insertions(+), 6 deletions(-)
include/linux/amba/bus.h +1 -6
index fcbbe71..724c69c 100644
@@ -16,6 +16,7 @@
 
 #include <linux/clk.h>
 #include <linux/device.h>
+#include <linux/mod_devicetable.h>
 #include <linux/err.h>
 #include <linux/resource.h>
 #include <linux/regulator/consumer.h>
@@ -35,12 +36,6 @@ struct amba_device {
 	unsigned int		irq[AMBA_NR_IRQS];
 };
 
-struct amba_id {
-	unsigned int		id;
-	unsigned int		mask;
-	void			*data;
-};
-
 struct amba_driver {
 	struct device_driver	drv;
 	int			(*probe)(struct amba_device *, const struct amba_id *);
include/linux/mod_devicetable.h +18 -0
index 468819c..83ac071 100644
@@ -542,4 +542,22 @@ struct isapnp_device_id {
 	kernel_ulong_t driver_data;	/* data private to the driver */
 };
 
+/**
+ * struct amba_id - identifies a device on an AMBA bus
+ * @id: The significant bits if the hardware device ID
+ * @mask: Bitmask specifying which bits of the id field are significant when
+ *	matching.  A driver binds to a device when ((hardware device ID) & mask)
+ *	== id.
+ * @data: Private data used by the driver.
+ */
+struct amba_id {
+	unsigned int		id;
+	unsigned int		mask;
+#ifndef __KERNEL__
+	kernel_ulong_t		data;
+#else
+	void			*data;
+#endif
+};
+
 #endif /* LINUX_MOD_DEVICETABLE_H */
Signature · 1 line
1.7.4.1
#2 lore raw

PATCH 2/16 ARM: amba: Auto-generate AMBA driver module aliases during modpost

In reply to Dave Martin

This patch adds the necessary support in file2alias.c to define suitable aliases based on the amba_id table in AMBA driver modules.

This should be sufficient to allow such modules to be auto-loaded via udev. The AMBA bus driver's uevent hotplug code is also modified to pass an approriate MODALIAS string in the event.

For simplicity, the AMBA ID is treated an an opaque 32-bit numeber. Module alises use patterns as appropriate to describe the value- mask pairs described in the driver's amba_id list.

The proposed alias format is (extended regex):

        ^amba:d(HEX){8}$

Where HEX is a single upper-case HEX digit or a pattern (? or [] expression) matching a single upper-case HEX digit, as expected by udev.

"d" is short for "device", following existing alias naming conventions for other device types. This adds some flexibility for unambiguously extending the alias format in the future by adding additional leading and trailing fields, if this turns out to be necessary.

---
 drivers/amba/bus.c       |    9 +++++-
 scripts/mod/file2alias.c |   72 ++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 80 insertions(+), 1 deletions(-)
drivers/amba/bus.c +8 -1
index bd230e8..a8c598c 100644
@@ -52,7 +52,14 @@ static int amba_uevent(struct device *dev, struct kobj_uevent_env *env)
 	int retval = 0;
 
 	retval = add_uevent_var(env, "AMBA_ID=%08x", pcdev->periphid);
-	return retval;
+	if (retval)
+		return retval;
+
+	retval = add_uevent_var(env, "MODALIAS=amba:d%08X", pcdev->periphid);
+	if (retval)
+		return retval;
+
+	return 0;
 }
 #else
 #define amba_uevent NULL
scripts/mod/file2alias.c +72 -0

84 lines not on this page · raw message

Signature · 1 line
1.7.4.1
#3 lore raw

PATCH 2/16 ARM: amba: Auto-generate AMBA driver module aliases during modpost

Quoted 19 lines · Dave Martin

This patch adds the necessary support in file2alias.c to define suitable aliases based on the amba_id table in AMBA driver modules.

This should be sufficient to allow such modules to be auto-loaded via udev. The AMBA bus driver's uevent hotplug code is also modified to pass an approriate MODALIAS string in the event.

For simplicity, the AMBA ID is treated an an opaque 32-bit numeber. Module alises use patterns as appropriate to describe the value- mask pairs described in the driver's amba_id list.

The proposed alias format is (extended regex):

        ^amba:d(HEX){8}$

Where HEX is a single upper-case HEX digit or a pattern (? or [] expression) matching a single upper-case HEX digit, as expected by udev.

Quoted 7 lines

"d" is short for "device", following existing alias naming conventions for other device types. This adds some flexibility for unambiguously extending the alias format in the future by adding additional leading and trailing fields, if this turns out to be necessary.

Cheers!

Pawel

#4 lore raw

PATCH 3/16 hwrng: nomadik: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/char/hw_random/nomadik-rng.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/char/hw_random/nomadik-rng.c +2 -0
index 52e08ca..3d3c1e6 100644
@@ -95,6 +95,8 @@ static struct amba_id nmk_rng_ids[] = {
 	{0, 0},
 };
 
+MODULE_DEVICE_TABLE(amba, nmk_rng_ids);
+
 static struct amba_driver nmk_rng_driver = {
 	.drv = {
 		.owner = THIS_MODULE,
Signature · 1 line
1.7.4.1
#5 lore raw

PATCH 4/16 dmaengine: pl08x: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/dma/amba-pl08x.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/dma/amba-pl08x.c +2 -0
index b7cbd1a..0698695 100644
@@ -2054,6 +2054,8 @@ static struct amba_id pl08x_ids[] = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, pl08x_ids);
+
 static struct amba_driver pl08x_amba_driver = {
 	.drv.name	= DRIVER_NAME,
 	.id_table	= pl08x_ids,
Signature · 1 line
1.7.4.1
#6 lore raw

PATCH 4/16 dmaengine: pl08x: Enable module alias autogeneration for AMBA drivers

Quoted 10 lines · Dave Martin
---
 drivers/dma/amba-pl08x.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/dma/amba-pl08x.c +0 -0
index b7cbd1a..0698695 100644

drivers/dma/amba-pl08x.c static struct amba_id pl08x_ids[] = { · line 2061

Quoted 8 lines
drivers/dma/amba-pl08x.c +2 -0
@@ -2054,6 +2054,8 @@ static struct amba_id pl08x_ids[] = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, pl08x_ids);
+
 static struct amba_driver pl08x_amba_driver = {
 	.drv.name	= DRIVER_NAME,
 	.id_table	= pl08x_ids,
Signature · 1 line
~Vinod
#7 lore raw

PATCH 5/16 dmaengine: pl330: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/dma/pl330.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/dma/pl330.c +2 -0
index 57104147..2d8d1b0 100644
@@ -990,6 +990,8 @@ static struct amba_id pl330_ids[] = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, pl330_ids);
+
 #ifdef CONFIG_PM_RUNTIME
 static int pl330_runtime_suspend(struct device *dev)
 {
Signature · 1 line
1.7.4.1
#8 lore raw

PATCH 5/16 dmaengine: pl330: Enable module alias autogeneration for AMBA drivers

Quoted 15 lines · Dave Martin

---
?drivers/dma/pl330.c | ? ?2 ++
?1 files changed, 2 insertions(+), 0 deletions(-)

drivers/dma/pl330.c +2 -0
index 57104147..2d8d1b0 100644
@@ -990,6 +990,8 @@ static struct amba_id pl330_ids[] = {
 ? ? ? ?{ 0, 0 },
 ?};
 
+MODULE_DEVICE_TABLE(amba, pl330_ids);
+
Quoted 3 lines

?#ifdef CONFIG_PM_RUNTIME
?static int pl330_runtime_suspend(struct device *dev) ?{

Thanks.

#9 lore raw

PATCH 5/16 dmaengine: pl330: Enable module alias autogeneration for AMBA drivers

Quoted 14 lines · Jassi Brar
Quoted 13 lines · Dave Martin
---
 drivers/dma/pl330.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/dma/pl330.c +0 -0
index 57104147..2d8d1b0 100644
@@ -990,6 +990,8 @@ static struct amba_id pl330_ids[] = {
       { 0, 0 },
 };
 
Quoted 8 lines

drivers/dma/pl330.c static struct amba_id pl330_ids[] = { · line 997

Quoted 5 lines
drivers/dma/pl330.c +2 -0
+MODULE_DEVICE_TABLE(amba, pl330_ids);
+
 #ifdef CONFIG_PM_RUNTIME
 static int pl330_runtime_suspend(struct device *dev)
 {
Signature · 1 line
~Vinod
#10 lore raw

PATCH 6/16 gpio: pl061: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/gpio/gpio-pl061.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/gpio/gpio-pl061.c +2 -0
index 2c5a18f..503e9d5 100644
@@ -339,6 +339,8 @@ static struct amba_id pl061_ids[] = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, pl061_ids);
+
 static struct amba_driver pl061_gpio_driver = {
 	.drv = {
 		.name	= "pl061_gpio",
Signature · 1 line
1.7.4.1
#11 lore raw

PATCH 6/16 gpio: pl061: Enable module alias autogeneration for AMBA drivers

Quoted 1 line · Dave Martin

Feel free to take this through the same tree that the rest of the patches go through.

g.

Quoted 21 lines

---
?drivers/gpio/gpio-pl061.c | ? ?2 ++
?1 files changed, 2 insertions(+), 0 deletions(-)

drivers/gpio/gpio-pl061.c +2 -1
index 2c5a18f..503e9d5 100644
@@ -339,6 +339,8 @@ static struct amba_id pl061_ids[] = {
 ? ? ? ?{ 0, 0 },
 ?};
 
+MODULE_DEVICE_TABLE(amba, pl061_ids);
+
 ?static struct amba_driver pl061_gpio_driver = {
 ? ? ? ?.drv = {
 ? ? ? ? ? ? ? ?.name ? = "pl061_gpio",
--

1.7.4.1

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
#12 lore raw

PATCH 7/16 input: ambakmi: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/input/serio/ambakmi.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/input/serio/ambakmi.c +2 -0
index 12abc50..8407d5b 100644
@@ -195,6 +195,8 @@ static struct amba_id amba_kmi_idtable[] = {
 	{ 0, 0 }
 };
 
+MODULE_DEVICE_TABLE(amba, amba_kmi_idtable);
+
 static struct amba_driver ambakmi_driver = {
 	.drv		= {
 		.name	= "kmi-pl050",
Signature · 1 line
1.7.4.1
maintainer
#13 lore raw

PATCH 7/16 input: ambakmi: Enable module alias autogeneration for AMBA drivers

Quoted 1 line · Dave Martin
Quoted 20 lines
---
 drivers/input/serio/ambakmi.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/input/serio/ambakmi.c +2 -0
index 12abc50..8407d5b 100644
@@ -195,6 +195,8 @@ static struct amba_id amba_kmi_idtable[] = {
 	{ 0, 0 }
 };
 
+MODULE_DEVICE_TABLE(amba, amba_kmi_idtable);
+
 static struct amba_driver ambakmi_driver = {
 	.drv		= {
 		.name	= "kmi-pl050",
Signature · 1 line
1.7.4.1
Signature · 1 line
Dmitry
#14 lore raw

PATCH 8/16 mmc: mmci: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/mmc/host/mmci.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/mmc/host/mmci.c +2 -0
index b16ea4a..a7d398c 100644
@@ -1496,6 +1496,8 @@ static struct amba_id mmci_ids[] = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, mmci_ids);
+
 static struct amba_driver mmci_driver = {
 	.drv		= {
 		.name	= DRIVER_NAME,
Signature · 1 line
1.7.4.1
#15 lore raw

PATCH 9/16 rtc: pl030: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/rtc/rtc-pl030.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/rtc/rtc-pl030.c +2 -0
index 1d28d44..02111fe 100644
@@ -174,6 +174,8 @@ static struct amba_id pl030_ids[] = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, pl030_ids);
+
 static struct amba_driver pl030_driver = {
 	.drv		= {
 		.name	= "rtc-pl030",
Signature · 1 line
1.7.4.1
#16 lore raw

PATCH 10/16 rtc: pl031: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/rtc/rtc-pl031.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/rtc/rtc-pl031.c +2 -0
index ff1b84bd..a952c8d 100644
@@ -420,6 +420,8 @@ static struct amba_id pl031_ids[] = {
 	{0, 0},
 };
 
+MODULE_DEVICE_TABLE(amba, pl031_ids);
+
 static struct amba_driver pl031_driver = {
 	.drv = {
 		.name = "rtc-pl031",
Signature · 1 line
1.7.4.1
#17 lore raw

PATCH 11/16 spi: pl022: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/spi/spi-pl022.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/spi/spi-pl022.c +2 -0
index f103e470..43abaf2 100644
@@ -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",
Signature · 1 line
1.7.4.1
#18 lore raw

PATCH 11/16 spi: pl022: Enable module alias autogeneration for AMBA drivers

Quoted 1 line · Dave Martin
Quoted 21 lines

---
?drivers/spi/spi-pl022.c | ? ?2 ++
?1 files changed, 2 insertions(+), 0 deletions(-)

drivers/spi/spi-pl022.c +2 -1
index f103e470..43abaf2 100644
@@ -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

Signature · 2 lines
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
#20 lore raw

PATCH 12/16 serial: pl010: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/tty/serial/amba-pl010.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/tty/serial/amba-pl010.c +2 -0
index efdf92c..0d91a54 100644
@@ -795,6 +795,8 @@ static struct amba_id pl010_ids[] = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, pl010_ids);
+
 static struct amba_driver pl010_driver = {
 	.drv = {
 		.name	= "uart-pl010",
Signature · 1 line
1.7.4.1
#21 lore raw

PATCH 13/16 serial: pl011: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/tty/serial/amba-pl011.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/tty/serial/amba-pl011.c +2 -0
index 00233af..6958594 100644
@@ -1994,6 +1994,8 @@ static struct amba_id pl011_ids[] = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, pl011_ids);
+
 static struct amba_driver pl011_driver = {
 	.drv = {
 		.name	= "uart-pl011",
Signature · 1 line
1.7.4.1
#22 lore raw

PATCH 14/16 fbdev: amba: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/video/amba-clcd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/video/amba-clcd.c +2 -0
index 2cda6ba..0a2cce7 100644
@@ -621,6 +621,8 @@ static struct amba_id clcdfb_id_table[] = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, clcdfb_id_table);
+
 static struct amba_driver clcd_driver = {
 	.drv 		= {
 		.name	= "clcd-pl11x",
Signature · 1 line
1.7.4.1
#23 lore raw

PATCH 15/16 watchdog: sp805: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 drivers/watchdog/sp805_wdt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/watchdog/sp805_wdt.c +2 -0
index cc2cfbe..c0a0ece 100644
@@ -359,6 +359,8 @@ static struct amba_id sp805_wdt_ids[] __initdata = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, sp805_wdt_ids);
+
 static struct amba_driver sp805_wdt_driver = {
 	.drv = {
 		.name	= MODULE_NAME,
Signature · 1 line
1.7.4.1
#24 lore raw

PATCH 16/16 sound: aaci: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin
---
 sound/arm/aaci.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
sound/arm/aaci.c +2 -0
index e518d38..b37b702a 100644
@@ -1097,6 +1097,8 @@ static struct amba_id aaci_ids[] = {
 	{ 0, 0 },
 };
 
+MODULE_DEVICE_TABLE(amba, aaci_ids);
+
 static struct amba_driver aaci_driver = {
 	.drv		= {
 		.name	= DRIVER_NAME,
Signature · 1 line
1.7.4.1
#25 lore raw

cover ARM: amba: Enable module alias autogeneration for AMBA drivers

In reply to Dave Martin

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

Quoted 62 lines · Dave Martin

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(-)
Signature · 1 line
1.7.4.1
#26 lore raw

cover ARM: amba: Enable module alias autogeneration for AMBA drivers

Quoted 8 lines · Dave Martin

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.

I think it looks fine - but I would like to see the first patch getting a wider distribution before accepting the series - I think it needs to go to at least lkml.org just in case someone has an issue with it.

#27 lore raw

cover ARM: amba: Enable module alias autogeneration for AMBA drivers

Quoted 7 lines · Russell King - ARM Linux
Quoted 6 lines · Dave Martin

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.

Quoted 6 lines
Quoted 2 lines

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

I think it looks fine - but I would like to see the first patch getting a wider distribution before accepting the series - I think it needs to go to at least lkml.org just in case someone has an issue with it.

OK, that makes sense. I tried to CC the appropriate people, but you're right-- posting it to lkml would be a better way to reach the right audience. I'll post and see.

Thanks
---Dave