netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] TI DaVinci EMAC: delay DaVinci EMAC initialization
@ 2009-08-19 20:39 Sudhakar Rajashekhara
  2009-08-25 11:21 ` Kevin Hilman
  2009-08-29  7:20 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Sudhakar Rajashekhara @ 2009-08-19 20:39 UTC (permalink / raw)
  To: netdev
  Cc: davem, chaithrika, anantgole, davinci-linux-open-source,
	Sudhakar Rajashekhara

On TI's DA850/OMAP-L138 EVM, MAC address is stored in SPI
flash which is accessed using MTD interface.

This patch delays the initialization of DaVinci EMAC driver
by changing module_init to late_initcall. This helps SPI and
MTD drivers to get initialized before EMAC thereby enabling
EMAC driver to read the MAC address while booting and use it.

Tested with NFS on DM644x, DM6467, DA830/OMAP-L137 and
DA850/OMAP-L138 EVMs.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Reviewed-by: Chaithrika U S <chaithrika@ti.com>
---
 drivers/net/davinci_emac.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index 12fd446..5e6652b 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -2817,7 +2817,7 @@ static int __init davinci_emac_init(void)
 {
 	return platform_driver_register(&davinci_emac_driver);
 }
-module_init(davinci_emac_init);
+late_initcall(davinci_emac_init);
 
 /**
  * davinci_emac_exit: EMAC driver module exit
-- 
1.5.6


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

end of thread, other threads:[~2009-08-29  7:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19 20:39 [PATCH] TI DaVinci EMAC: delay DaVinci EMAC initialization Sudhakar Rajashekhara
2009-08-25 11:21 ` Kevin Hilman
2009-08-29  7:20 ` David Miller

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