realtek: mdio: add comment about c22/command register
The C22 aka command register is a wild bit mix. Avoid confusion for reviewers and add a comment. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/23204 Signed-off-by: Robert Marko <robimarko@gmail.com>
This commit is contained in:
parent
36abcb5fce
commit
178bf1d8b4
@ -308,6 +308,7 @@ static int rtmdio_run_cmd(struct mii_bus *bus, int cmd, void *smi_access, u32 *v
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
/* Use masks as C22 data and command bits share the same register. */
|
||||
ret = regmap_update_bits(ctrl->map, ctrl->cfg->cmd_reg,
|
||||
ctrl->cfg->cmd_mask, cmd | RTMDIO_RUN);
|
||||
if (ret)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user