Thread (1 message) 1 message, 1 author, 2023-12-06

Re: [PATCH net-next v1 2/3] net: dsa: microchip: Remove redundant optimization in ksz8_w_phy_bmcr

From: Vladimir Oltean <vladimir.oltean@nxp.com>
Date: 2023-12-06 22:37:14
Also in: lkml

On Tue, Nov 21, 2023 at 04:24:25PM +0100, Oleksij Rempel wrote:
Remove the manual checks for register value changes in the
ksz8_w_phy_bmcr function. Instead, rely on regmap_update_bits() for
optimizing register updates.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 drivers/net/dsa/microchip/ksz8795.c | 95 +++++++++--------------------
 1 file changed, 28 insertions(+), 67 deletions(-)
The diffstat is nice. It's good that we can benefit from the "(tmp != orig)"
check from _regmap_update_bits().

Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help