On 5/17/2023 1:52 PM, Ilpo Järvinen wrote:
Don't assume that only the driver would be accessing LNKCTL of the 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 Wunnerlukas@wunner.de Signed-off-by: Ilpo Järvinenilpo.jarvinen@linux.intel.com Cc:stable@vger.kernel.org
Reviewed-by: Moshe Shemesh moshe@nvidia.com
Thanks!