projects
/
15.05
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14f91a5
)
ar71xx: reset the switch on AR934x before ethernet device registration
author
Gabor Juhos
<juhosg@openwrt.org>
Tue, 13 Mar 2012 17:29:33 +0000
(17:29 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Tue, 13 Mar 2012 17:29:33 +0000
(17:29 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30922
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
patch
|
blob
|
history
diff --git
a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
index
cae5af1
..
2a55d33
100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
+++ b/
target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c
@@
-797,6
+797,10
@@
void __init ath79_register_eth(unsigned int id)
pdata->set_speed = ath79_set_speed_dummy;
pdata->switch_data = &ath79_switch_data;
+
+ /* reset the built-in switch */
+ ath79_device_reset_set(AR934X_RESET_ETH_SWITCH);
+ ath79_device_reset_clear(AR934X_RESET_ETH_SWITCH);
}
pdata->ddr_flush = ath79_ddr_no_flush;