diff options
author | Frans Meulenbroeks <fransmeulenbroeks@gmail.com> | 2018-04-01 16:52:55 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-01 20:54:41 -0400 |
commit | 781492abce1bd3ef3fb01271772d6b77e260d193 (patch) | |
tree | 5a53575daaeb21eeb7e69eeb54f17aa6c56d23c4 | |
parent | afb133637071be6deeb8b3d0e55593ffbf63c527 (diff) |
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: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/phy/mdio-bitbang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio-bitbang.c b/drivers/net/phy/mdio-bitbang.c index 61a543c788cc..403b085f0a89 100644 --- a/drivers/net/phy/mdio-bitbang.c +++ b/drivers/net/phy/mdio-bitbang.c | |||
@@ -113,7 +113,7 @@ static void mdiobb_cmd(struct mdiobb_ctrl *ctrl, int op, u8 phy, u8 reg) | |||
113 | for (i = 0; i < 32; i++) | 113 | for (i = 0; i < 32; i++) |
114 | mdiobb_send_bit(ctrl, 1); | 114 | mdiobb_send_bit(ctrl, 1); |
115 | 115 | ||
116 | /* send the start bit (01) and the read opcode (10) or write (10). | 116 | /* send the start bit (01) and the read opcode (10) or write (01). |
117 | Clause 45 operation uses 00 for the start and 11, 10 for | 117 | Clause 45 operation uses 00 for the start and 11, 10 for |
118 | read/write */ | 118 | read/write */ |
119 | mdiobb_send_bit(ctrl, 0); | 119 | mdiobb_send_bit(ctrl, 0); |