* [PATCH v3 0/4] usb: host: Fix module autoload for OF platform drivers
@ 2015-09-19 13:10 Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 1/4] usb: host: ehci-spear: Fix module autoload for OF platform driver Luis de Bethencourt
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Luis de Bethencourt @ 2015-09-19 13:10 UTC (permalink / raw)
To: linux-kernel
Cc: gregkh, stern, nikhil.badola, ramneek.mehresh, wsa, linux,
linux-usb, Luis de Bethencourt
Hi,
Resending the whole series as Greg asked, and also doing it as a thread
patch series. Sorry for not doing this properly before, I'm learning the
development process. I was using mutt but now I switched to git send-email.
Hopefully procedure will be correct this time.
These patches add the missing MODULE_DEVICE_TABLE() for OF to export
the information so modules have the correct aliases built-in and
autoloading works correctly.
A longer explanation by Javier Canillas can be found here:
https://lkml.org/lkml/2015/7/30/519
Thanks,
Luis
Luis de Bethencourt (4):
usb: host: ehci-spear: Fix module autoload for OF platform driver
usb: host: fsl-mph-dr-of: Fix module autoload for OF platform driver
usb: host: ohci-spear: Fix module autoload for OF platform driver
usb: host: uhci-platform: Fix module autoload for OF platform driver
drivers/usb/host/ehci-spear.c | 1 +
drivers/usb/host/fsl-mph-dr-of.c | 1 +
drivers/usb/host/ohci-spear.c | 1 +
drivers/usb/host/uhci-platform.c | 1 +
4 files changed, 4 insertions(+)
--
2.5.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v3 1/4] usb: host: ehci-spear: Fix module autoload for OF platform driver
2015-09-19 13:10 [PATCH v3 0/4] usb: host: Fix module autoload for OF platform drivers Luis de Bethencourt
@ 2015-09-19 13:10 ` Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 2/4] usb: host: fsl-mph-dr-of: " Luis de Bethencourt
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Luis de Bethencourt @ 2015-09-19 13:10 UTC (permalink / raw)
To: linux-kernel
Cc: gregkh, stern, nikhil.badola, ramneek.mehresh, wsa, linux,
linux-usb, Luis de Bethencourt
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.
Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
drivers/usb/host/ehci-spear.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/ehci-spear.c b/drivers/usb/host/ehci-spear.c
index 34e1474..3c4e525 100644
--- a/drivers/usb/host/ehci-spear.c
+++ b/drivers/usb/host/ehci-spear.c
@@ -149,6 +149,7 @@ static const struct of_device_id spear_ehci_id_table[] = {
{ .compatible = "st,spear600-ehci", },
{ },
};
+MODULE_DEVICE_TABLE(of, spear_ehci_id_table);
static struct platform_driver spear_ehci_hcd_driver = {
.probe = spear_ehci_hcd_drv_probe,
--
2.5.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 2/4] usb: host: fsl-mph-dr-of: Fix module autoload for OF platform driver
2015-09-19 13:10 [PATCH v3 0/4] usb: host: Fix module autoload for OF platform drivers Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 1/4] usb: host: ehci-spear: Fix module autoload for OF platform driver Luis de Bethencourt
@ 2015-09-19 13:10 ` Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 3/4] usb: host: ohci-spear: " Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 4/4] usb: host: uhci-platform: " Luis de Bethencourt
3 siblings, 0 replies; 5+ messages in thread
From: Luis de Bethencourt @ 2015-09-19 13:10 UTC (permalink / raw)
To: linux-kernel
Cc: gregkh, stern, nikhil.badola, ramneek.mehresh, wsa, linux,
linux-usb, Luis de Bethencourt
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.
Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
drivers/usb/host/fsl-mph-dr-of.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/fsl-mph-dr-of.c b/drivers/usb/host/fsl-mph-dr-of.c
index 534c4c5..0c38265 100644
--- a/drivers/usb/host/fsl-mph-dr-of.c
+++ b/drivers/usb/host/fsl-mph-dr-of.c
@@ -351,6 +351,7 @@ static const struct of_device_id fsl_usb2_mph_dr_of_match[] = {
#endif
{},
};
+MODULE_DEVICE_TABLE(of, fsl_usb2_mph_dr_of_match);
static struct platform_driver fsl_usb2_mph_dr_driver = {
.driver = {
--
2.5.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 3/4] usb: host: ohci-spear: Fix module autoload for OF platform driver
2015-09-19 13:10 [PATCH v3 0/4] usb: host: Fix module autoload for OF platform drivers Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 1/4] usb: host: ehci-spear: Fix module autoload for OF platform driver Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 2/4] usb: host: fsl-mph-dr-of: " Luis de Bethencourt
@ 2015-09-19 13:10 ` Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 4/4] usb: host: uhci-platform: " Luis de Bethencourt
3 siblings, 0 replies; 5+ messages in thread
From: Luis de Bethencourt @ 2015-09-19 13:10 UTC (permalink / raw)
To: linux-kernel
Cc: gregkh, stern, nikhil.badola, ramneek.mehresh, wsa, linux,
linux-usb, Luis de Bethencourt
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.
Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
drivers/usb/host/ohci-spear.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/ohci-spear.c b/drivers/usb/host/ohci-spear.c
index 707437c..56478ed 100644
--- a/drivers/usb/host/ohci-spear.c
+++ b/drivers/usb/host/ohci-spear.c
@@ -161,6 +161,7 @@ static const struct of_device_id spear_ohci_id_table[] = {
{ .compatible = "st,spear600-ohci", },
{ },
};
+MODULE_DEVICE_TABLE(of, spear_ohci_id_table);
/* Driver definition to register with the platform bus */
static struct platform_driver spear_ohci_hcd_driver = {
--
2.5.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH v3 4/4] usb: host: uhci-platform: Fix module autoload for OF platform driver
2015-09-19 13:10 [PATCH v3 0/4] usb: host: Fix module autoload for OF platform drivers Luis de Bethencourt
` (2 preceding siblings ...)
2015-09-19 13:10 ` [PATCH v3 3/4] usb: host: ohci-spear: " Luis de Bethencourt
@ 2015-09-19 13:10 ` Luis de Bethencourt
3 siblings, 0 replies; 5+ messages in thread
From: Luis de Bethencourt @ 2015-09-19 13:10 UTC (permalink / raw)
To: linux-kernel
Cc: gregkh, stern, nikhil.badola, ramneek.mehresh, wsa, linux,
linux-usb, Luis de Bethencourt
This platform driver has a OF device ID table but the OF module
alias information is not created so module autoloading won't work.
Signed-off-by: Luis de Bethencourt <luisbg@osg.samsung.com>
---
drivers/usb/host/uhci-platform.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/uhci-platform.c b/drivers/usb/host/uhci-platform.c
index 3a3e3ee..32a6f3d 100644
--- a/drivers/usb/host/uhci-platform.c
+++ b/drivers/usb/host/uhci-platform.c
@@ -140,6 +140,7 @@ static const struct of_device_id platform_uhci_ids[] = {
{ .compatible = "platform-uhci", },
{}
};
+MODULE_DEVICE_TABLE(of, platform_uhci_ids);
static struct platform_driver uhci_platform_driver = {
.probe = uhci_hcd_platform_probe,
--
2.5.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-19 13:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-19 13:10 [PATCH v3 0/4] usb: host: Fix module autoload for OF platform drivers Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 1/4] usb: host: ehci-spear: Fix module autoload for OF platform driver Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 2/4] usb: host: fsl-mph-dr-of: " Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 3/4] usb: host: ohci-spear: " Luis de Bethencourt
2015-09-19 13:10 ` [PATCH v3 4/4] usb: host: uhci-platform: " Luis de Bethencourt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox