Commit 781492ab authored by Frans Meulenbroeks's avatar Frans Meulenbroeks Committed by David S. Miller

fix typo in command value in drivers/net/phy/mdio-bitbang.

mdio-bitbang mentioned 10 for both read and write.
However mdio read opcode is 10 and write opcode is 01
Fixed comment.
Signed-off-by: default avatarFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent afb13363
...@@ -113,7 +113,7 @@ static void mdiobb_cmd(struct mdiobb_ctrl *ctrl, int op, u8 phy, u8 reg) ...@@ -113,7 +113,7 @@ static void mdiobb_cmd(struct mdiobb_ctrl *ctrl, int op, u8 phy, u8 reg)
for (i = 0; i < 32; i++) for (i = 0; i < 32; i++)
mdiobb_send_bit(ctrl, 1); mdiobb_send_bit(ctrl, 1);
/* send the start bit (01) and the read opcode (10) or write (10). /* send the start bit (01) and the read opcode (10) or write (01).
Clause 45 operation uses 00 for the start and 11, 10 for Clause 45 operation uses 00 for the start and 11, 10 for
read/write */ read/write */
mdiobb_send_bit(ctrl, 0); mdiobb_send_bit(ctrl, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment