Commit 874bdbfe authored by Zhang Jiaming's avatar Zhang Jiaming Committed by David S. Miller

net: hns: Fix spelling mistakes in comments.

Fix spelling of 'waitting' in comments.
remove unnecessary space of 'MDIO_COMMAND_REG 's'.
Signed-off-by: default avatarZhang Jiaming <jiaming@nfschina.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent fd4b96c4
...@@ -174,7 +174,7 @@ static int hns_mdio_wait_ready(struct mii_bus *bus) ...@@ -174,7 +174,7 @@ static int hns_mdio_wait_ready(struct mii_bus *bus)
u32 cmd_reg_value; u32 cmd_reg_value;
int i; int i;
/* waitting for MDIO_COMMAND_REG 's mdio_start==0 */ /* waiting for MDIO_COMMAND_REG's mdio_start==0 */
/* after that can do read or write*/ /* after that can do read or write*/
for (i = 0; i < MDIO_TIMEOUT; i++) { for (i = 0; i < MDIO_TIMEOUT; i++) {
cmd_reg_value = MDIO_GET_REG_BIT(mdio_dev, cmd_reg_value = MDIO_GET_REG_BIT(mdio_dev,
...@@ -319,7 +319,7 @@ static int hns_mdio_read(struct mii_bus *bus, int phy_id, int regnum) ...@@ -319,7 +319,7 @@ static int hns_mdio_read(struct mii_bus *bus, int phy_id, int regnum)
MDIO_C45_READ, phy_id, devad); MDIO_C45_READ, phy_id, devad);
} }
/* Step 5: waitting for MDIO_COMMAND_REG 's mdio_start==0,*/ /* Step 5: waiting for MDIO_COMMAND_REG's mdio_start==0,*/
/* check for read or write opt is finished */ /* check for read or write opt is finished */
ret = hns_mdio_wait_ready(bus); ret = hns_mdio_wait_ready(bus);
if (ret) { if (ret) {
......
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