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:
4906f99
)
mdio-gpio: Add mdc pin direction initialization
author
Paulius Zaleckas
<paulius.zaleckas@teltonika.lt>
Sun, 8 Feb 2009 23:46:01 +0000
(23:46 +0000)
committer
David S. Miller
<davem@davemloft.net>
Wed, 11 Feb 2009 01:11:10 +0000
(17:11 -0800)
mdc pin should always be output. Initialize it as output,
so each board code does not need to do this.
Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-gpio.c
patch
|
blob
|
history
diff --git
a/drivers/net/phy/mdio-gpio.c
b/drivers/net/phy/mdio-gpio.c
index a439ebeb431926e7bec18d84dcd22a8bc30f5b53..af28ff7ae1767a2c9ec6491c36d48b5797286197 100644
(file)
--- a/
drivers/net/phy/mdio-gpio.c
+++ b/
drivers/net/phy/mdio-gpio.c
@@
-125,6
+125,8
@@
static int __devinit mdio_gpio_bus_init(struct device *dev,
if (gpio_request(bitbang->mdio, "mdio"))
goto out_free_mdc;
+ gpio_direction_output(bitbang->mdc, 0);
+
dev_set_drvdata(dev, new_bus);
ret = mdiobus_register(new_bus);