projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e90d400
)
emac: Fix clock control for 405EX and 405EXr chips
author
Benjamin Herrenschmidt
<
[email protected]
>
Fri, 13 Mar 2009 20:48:46 +0000
(13:48 -0700)
committer
David S. Miller
<
[email protected]
>
Fri, 13 Mar 2009 20:48:46 +0000
(13:48 -0700)
The EMAC variant in the 405EX and 405EXr chips needs the "440EP" type clock
control workaround to avoid lockups of the Rx side during reset.
Signed-off-by: Benjamin Herrenschmidt <
[email protected]
>
Tested-by: Felix Radensky <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ibm_newemac/core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ibm_newemac/core.c
b/drivers/net/ibm_newemac/core.c
index 87a706694fb35f6519e4933944b06df429849d48..6fd7aa61736ed8b49e7dfc282647819823976671 100644
(file)
--- a/
drivers/net/ibm_newemac/core.c
+++ b/
drivers/net/ibm_newemac/core.c
@@
-2594,6
+2594,9
@@
static int __devinit emac_init_config(struct emac_instance *dev)
if (of_device_is_compatible(np, "ibm,emac-460ex") ||
of_device_is_compatible(np, "ibm,emac-460gt"))
dev->features |= EMAC_FTR_460EX_PHY_CLK_FIX;
+ if (of_device_is_compatible(np, "ibm,emac-405ex") ||
+ of_device_is_compatible(np, "ibm,emac-405exr"))
+ dev->features |= EMAC_FTR_440EP_PHY_CLK_FIX;
} else if (of_device_is_compatible(np, "ibm,emac4")) {
dev->features |= EMAC_FTR_EMAC4;
if (of_device_is_compatible(np, "ibm,emac-440gx"))