]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
fix typo in command value in drivers/net/phy/mdio-bitbang.
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Sun, 1 Apr 2018 20:52:55 +0000 (22:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Apr 2018 00:54:41 +0000 (20:54 -0400)
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>
drivers/net/phy/mdio-bitbang.c

index 61a543c788cc1b67fafe3eceab17b2b4d20af413..403b085f0a89a5bcb464a4674a19818c35ee9827 100644 (file)
@@ -113,7 +113,7 @@ static void mdiobb_cmd(struct mdiobb_ctrl *ctrl, int op, u8 phy, u8 reg)
        for (i = 0; i < 32; i++)
                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
           read/write */
        mdiobb_send_bit(ctrl, 0);