Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1228442 > unrolled thread

[PATCH v3 0/4] usb: host: Fix module autoload for OF platform drivers

Started byLuis de Bethencourt <luisbg@osg.samsung.com>
First post2015-09-19 15:20 +0200
Last post2015-09-19 15:20 +0200
Articles 4 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH v3 0/4] usb: host: Fix module autoload for OF platform drivers Luis de Bethencourt <luisbg@osg.samsung.com> - 2015-09-19 15:20 +0200
    [PATCH v3 1/4] usb: host: ehci-spear: Fix module autoload for OF platform driver Luis de Bethencourt <luisbg@osg.samsung.com> - 2015-09-19 15:20 +0200
    [PATCH v3 4/4] usb: host: uhci-platform: Fix module autoload for OF platform driver Luis de Bethencourt <luisbg@osg.samsung.com> - 2015-09-19 15:20 +0200
    [PATCH v3 2/4] usb: host: fsl-mph-dr-of: Fix module autoload for OF platform driver Luis de Bethencourt <luisbg@osg.samsung.com> - 2015-09-19 15:20 +0200

#1228442 — [PATCH v3 0/4] usb: host: Fix module autoload for OF platform drivers

FromLuis de Bethencourt <luisbg@osg.samsung.com>
Date2015-09-19 15:20 +0200
Subject[PATCH v3 0/4] usb: host: Fix module autoload for OF platform drivers
Message-ID<qaqdA-2rI-5@gated-at.bofh.it>
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1228443 — [PATCH v3 1/4] usb: host: ehci-spear: Fix module autoload for OF platform driver

FromLuis de Bethencourt <luisbg@osg.samsung.com>
Date2015-09-19 15:20 +0200
Subject[PATCH v3 1/4] usb: host: ehci-spear: Fix module autoload for OF platform driver
Message-ID<qaqdA-2rI-7@gated-at.bofh.it>
In reply to#1228442
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1228444 — [PATCH v3 4/4] usb: host: uhci-platform: Fix module autoload for OF platform driver

FromLuis de Bethencourt <luisbg@osg.samsung.com>
Date2015-09-19 15:20 +0200
Subject[PATCH v3 4/4] usb: host: uhci-platform: Fix module autoload for OF platform driver
Message-ID<qaqdA-2rI-15@gated-at.bofh.it>
In reply to#1228442
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [next] | [standalone]


#1228445 — [PATCH v3 2/4] usb: host: fsl-mph-dr-of: Fix module autoload for OF platform driver

FromLuis de Bethencourt <luisbg@osg.samsung.com>
Date2015-09-19 15:20 +0200
Subject[PATCH v3 2/4] usb: host: fsl-mph-dr-of: Fix module autoload for OF platform driver
Message-ID<qaqdA-2rI-17@gated-at.bofh.it>
In reply to#1228442
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web