]> git.ipfire.org Git - thirdparty/linux.git/commit
net: sparx5: change spx5_wr to spx5_rmw in cal update()
authorDaniel Machon <daniel.machon@microchip.com>
Wed, 23 Oct 2024 22:01:21 +0000 (00:01 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 31 Oct 2024 01:08:05 +0000 (18:08 -0700)
commit9324881cef519acee1d7b187fd9ed0f92fb28fe2
tree602871878bae6202d2de936448f3c7eba4f42376
parent1ebaa5e189151a396de3fcd280078eaf7b922920
net: sparx5: change spx5_wr to spx5_rmw in cal update()

In preparation for lan969x, use spx5_rmw() for enabling the update of
the calendar. This is required to not overwrite the DSM_TAXI_CAL_CFG
register, as an additional write will be added before this one, in a
subsequent patch.

Reviewed-by: Steen Hegelund <Steen.Hegelund@microchip.com>
Signed-off-by: Daniel Machon <daniel.machon@microchip.com>
Link: https://patch.msgid.link/20241024-sparx5-lan969x-switch-driver-2-v2-2-a0b5fae88a0f@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/microchip/sparx5/sparx5_calendar.c