projects
/
openwrt
/
svn-archive
/
archive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f33e4bf
)
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)
SVN-Revision: 30838
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 fe329d8f1de13114063dd6ec87a09323092da180..1183cbc52d285ad3031ae933588fc4578b5f334f 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);