Re: [PATCH v2 6/9] net/mlx5: Use RMW accessors for changing LNKCTL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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 Wunner<lukas@xxxxxxxxx>
Signed-off-by: Ilpo Järvinen<ilpo.jarvinen@xxxxxxxxxxxxxxx>
Cc:stable@xxxxxxxxxxxxxxx
Reviewed-by: Moshe Shemesh <moshe@xxxxxxxxxx>

Thanks!




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux