Thread (55 messages) flat view 55 messages, 4 authors, 2011-01-01
STALE5734d

[PATCH 09/10] ARM: mx28: read fec mac address from ocotp

From: Shawn Guo <hidden>
Date: 2010-12-30 08:33:19

Hi Uwe,

On Wed, Dec 29, 2010 at 01:45:06PM +0100, Uwe Kleine-K?nig wrote:
Hello Shawn,

On Wed, Dec 29, 2010 at 08:13:55PM +0800, Shawn Guo wrote:
quoted
On Wed, Dec 29, 2010 at 11:53:28AM +0100, Uwe Kleine-K?nig wrote:
quoted
On Tue, Dec 28, 2010 at 10:55:54PM +0800, Shawn Guo wrote:
quoted
Read fec mac address from ocotp and save it into fec_platform_data
mac field for fec driver to use.

Signed-off-by: Shawn Guo <redacted>
---
 arch/arm/mach-mxs/devices/platform-fec.c        |    2 +-
 arch/arm/mach-mxs/include/mach/devices-common.h |    2 +-
 arch/arm/mach-mxs/mach-mx28evk.c                |   31 +++++++++++++++++++++++
 3 files changed, 33 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-mxs/devices/platform-fec.c b/arch/arm/mach-mxs/devices/platform-fec.c
index c08168c..dc978ee 100644
--- a/arch/arm/mach-mxs/devices/platform-fec.c
+++ b/arch/arm/mach-mxs/devices/platform-fec.c
@@ -31,7 +31,7 @@ const struct mxs_fec_data mx28_fec_data[] __initconst = {
 
 struct platform_device *__init mxs_add_fec(
 		const struct mxs_fec_data *data,
-		const struct fec_platform_data *pdata)
+		struct fec_platform_data *pdata)
 {
 	struct resource res[] = {
 		{
diff --git a/arch/arm/mach-mxs/include/mach/devices-common.h b/arch/arm/mach-mxs/include/mach/devices-common.h
index fca0551..d206e0a 100644
--- a/arch/arm/mach-mxs/include/mach/devices-common.h
+++ b/arch/arm/mach-mxs/include/mach/devices-common.h
@@ -38,4 +38,4 @@ struct mxs_fec_data {
 };
 struct platform_device *__init mxs_add_fec(
 		const struct mxs_fec_data *data,
-		const struct fec_platform_data *pdata);
+		struct fec_platform_data *pdata);
Why that?
pdata->mac needs to get assigned by ocotp read function.
... which is done before mxs_add_fec is called.
My bad. Will add it back.

-- 
Regards,
Shawn
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help