dsa: lan9303: write reg only if necessary
authorJerry Ray <jerry.ray@microchip.com>
Tue, 17 Jan 2023 20:57:00 +0000 (14:57 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Jan 2023 08:53:13 +0000 (08:53 +0000)
commitde375aa860fb848eaabc76dce0af2e982630b421
treed9768734286346b600250006dc7a5dc1134f70af
parent601f574a1b449446a98d65cc3871a8eb2cb18bcf
dsa: lan9303: write reg only if necessary

As the regmap_write() is over a slow bus that will sleep, we can speed up
the boot-up time a bit by not bothering to clear a bit that is already
clear.

Signed-off-by: Jerry Ray <jerry.ray@microchip.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/lan9303-core.c