diff options
| author | Ilpo Järvinen <[email protected]> | 2024-05-03 13:36:40 +0000 |
|---|---|---|
| committer | Leon Romanovsky <[email protected]> | 2024-05-05 13:11:40 +0000 |
| commit | 8f3b7103b41314d26e2653e9ccca29480123a204 (patch) | |
| tree | 0626a6c5fd5c6c3417fc2c00f1919303ac9eaf75 /rust/helpers.c | |
| parent | RDMA/mana_ib: implement uapi for creation of rnic cq (diff) | |
| download | kernel-8f3b7103b41314d26e2653e9ccca29480123a204.tar.gz kernel-8f3b7103b41314d26e2653e9ccca29480123a204.zip | |
RDMA/hfi1: Use RMW accessors for changing LNKCTL2
Convert open coded RMW accesses for LNKCTL2 to use
pcie_capability_clear_and_set_word() which makes its easier to
understand what the code tries to do.
In addition, this futureproofs the code. LNKCTL2 is not really owned by
any driver because it is a collection of control bits that PCI core
might need to touch. RMW accessors already have support for proper
locking for a selected set of registers to avoid losing concurrent
updates (LNKCTL2 is not yet among the registers that need protection
but likely will be in the future).
Suggested-by: Lukas Wunner <[email protected]>
Signed-off-by: Ilpo Järvinen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Dean Luick <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions
