net: dsa: microchip: ksz8: Enable MIIM PHY Control reg access
authorOleksij Rempel <o.rempel@pengutronix.de>
Thu, 19 Oct 2023 11:14:58 +0000 (13:14 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Oct 2023 10:50:46 +0000 (11:50 +0100)
commitf600bb612b06adf70ccdefbd3294c71275b650c2
tree6543d9e6159b923e24429480c3152606fdab1b59
parentc0518571545d2befdd978a39c490575f3e3dd15a
net: dsa: microchip: ksz8: Enable MIIM PHY Control reg access

Provide access to MIIM PHY Control register (Reg. 31) through
ksz8_r_phy_ctrl() and ksz8_w_phy_ctrl() functions. Necessary for
upcoming micrel.c patch to address forced link mode configuration.

Closes: https://lore.kernel.org/oe-kbuild-all/202310112224.iYgvjBUy-lkp@intel.com/
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/ksz8795.c
include/linux/micrel_phy.h