Skip to content

Commit

Permalink
net: dsa: microchip: ksz8: move BMCR specific code to separate function
Browse files Browse the repository at this point in the history
Isolate the Basic Mode Control Register (BMCR) operations in the ksz8795
driver by moving the BMCR-related code segments from the ksz8_r_phy()
and ksz8_w_phy() functions to newly created ksz8_r_phy_bmcr() and
ksz8_w_phy_bmcr() functions.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Link: https://lore.kernel.org/r/20240124123314.734815-2-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Oleksij Rempel authored and Jakub Kicinski committed Jan 27, 2024
1 parent 92046e8 commit 0c657f8
Showing 1 changed file with 240 additions and 126 deletions.
Loading

0 comments on commit 0c657f8

Please sign in to comment.