Don't assume that only the driver would be accessing LNKCTL of theReviewed-by: Moshe Shemesh <moshe@xxxxxxxxxx>
upstream bridge. ASPM policy changes can trigger write to LNKCTL
outside of driver's control.
Use RMW capability accessors which do proper locking to avoid losing
concurrent updates to the register value.
Fixes: eabe8e5e88f5 ("net/mlx5: Handle sync reset now event")
Suggested-by: Lukas Wunner<lukas@xxxxxxxxx>
Signed-off-by: Ilpo Järvinen<ilpo.jarvinen@xxxxxxxxxxxxxxx>
Cc:stable@xxxxxxxxxxxxxxx