linux/drivers/infiniband/hw
Mike Marciniszyn 72aa720aca IB/qib: Fix duplicate sysfs directory name
commit 32f57cb1b2 upstream.

The qib driver load has been failing with the following message:

  sysfs: cannot create duplicate filename '/devices/pci0000:80/0000:80:02.0/0000:81:00.0/infiniband/qib0/ports/1/linkcontrol'

The patch below has two "linkcontrol" names causing the duplication.

Fix by using the correct "diag_counters" name on the second instance.

Fixes: 4a7aaf88c8 ("RDMA/qib: Use attributes for the port sysfs")
Link: https://lore.kernel.org/r/1645106372-23004-1-git-send-email-mike.marciniszyn@cornelisnetworks.com
Cc: <stable@vger.kernel.org>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@cornelisnetworks.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@cornelisnetworks.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-03-02 11:48:08 +01:00
..
bnxt_re RDMA/bnxt_re: Scan the whole bitmap when checking if "disabling RCFW with pending cmd-bit" 2022-01-27 11:04:05 +01:00
cxgb4 RDMA/cxgb4: Set queue pair state when being queried 2022-01-27 11:04:19 +01:00
efa RDMA v5.15 merge window Pull Request 2021-09-02 14:47:21 -07:00
hfi1 IB/hfi1: Fix tstats alloc and dealloc 2022-02-08 18:34:08 +01:00
hns RDMA/hns: Modify the mapping attribute of doorbell to device 2022-01-27 11:05:23 +01:00
irdma RDMA/irdma: Don't arm the CQ more than two times if no CE for this CQ 2021-12-17 10:30:14 +01:00
mlx4 RDMA/mlx4: Don't continue event handler after memory allocation failure 2022-02-08 18:34:07 +01:00
mlx5 Revert "RDMA/mlx5: Fix releasing unallocated memory in dereg MR flow" 2022-01-11 15:35:12 +01:00
mthca RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
ocrdma RDMA: Globally allocate and release QP memory 2021-08-03 13:44:27 -03:00
qedr RDMA/qedr: Fix reporting max_{send/recv}_wr attrs 2022-01-27 11:04:11 +01:00
qib IB/qib: Fix duplicate sysfs directory name 2022-03-02 11:48:08 +01:00
usnic RDMA/usnic: Lock VF with mutex instead of spinlock 2021-09-24 10:55:28 -03:00
vmw_pvrdma RDMA: switch from 'pci_' to 'dma_' API 2021-08-23 13:43:54 -03:00
Makefile RDMA/irdma: Add irdma Kconfig/Makefile and remove i40iw 2021-06-02 20:06:36 -03:00