From: Kevin Hilman <khilman@deeprootsystems.com>
To: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Cc: netdev@vger.kernel.org,
davinci-linux-open-source@linux.davincidsp.com,
davem@davemloft.net
Subject: Re: [PATCH] TI DaVinci EMAC: delay DaVinci EMAC initialization
Date: Tue, 25 Aug 2009 14:21:46 +0300 [thread overview]
Message-ID: <87fxbgjfzp.fsf@deeprootsystems.com> (raw)
In-Reply-To: <1250714395-9588-1-git-send-email-sudhakar.raj@ti.com> (Sudhakar Rajashekhara's message of "Wed\, 19 Aug 2009 16\:39\:55 -0400")
Sudhakar Rajashekhara <sudhakar.raj@ti.com> writes:
> 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>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.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
>
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
next prev parent reply other threads:[~2009-08-25 11:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-19 20:39 [PATCH] TI DaVinci EMAC: delay DaVinci EMAC initialization Sudhakar Rajashekhara
2009-08-25 11:21 ` Kevin Hilman [this message]
2009-08-29 7:20 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fxbgjfzp.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=davem@davemloft.net \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=netdev@vger.kernel.org \
--cc=sudhakar.raj@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).