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:
3e76187
)
generic: ar8216: use mdiobus_write in ar8236_hw_init
author
Gabor Juhos
<juhosg@openwrt.org>
Wed, 7 Mar 2012 16:32:31 +0000
(16:32 +0000)
committer
Gabor Juhos
<juhosg@openwrt.org>
Wed, 7 Mar 2012 16:32:31 +0000
(16:32 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30838
3c298f89
-4303-0410-b956-
a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/ar8216.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/ar8216.c
b/target/linux/generic/files/drivers/net/phy/ar8216.c
index
fe329d8
..
1183cbc
100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/
target/linux/generic/files/drivers/net/phy/ar8216.c
@@
-643,10
+643,10
@@
ar8236_hw_init(struct ar8216_priv *priv) {
/* Initialize the PHYs */
bus = priv->phy->bus;
for (i = 0; i < 5; i++) {
-
bus->
write(bus, i, MII_ADVERTISE,
- ADVERTISE_ALL | ADVERTISE_PAUSE_CAP |
- ADVERTISE_PAUSE_ASYM);
-
bus->
write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
+
mdiobus_
write(bus, i, MII_ADVERTISE,
+
ADVERTISE_ALL | ADVERTISE_PAUSE_CAP |
+
ADVERTISE_PAUSE_ASYM);
+
mdiobus_
write(bus, i, MII_BMCR, BMCR_RESET | BMCR_ANENABLE);
}
msleep(1000);