Skip to content

Commit 32c3d37

Browse files
jmpallottajonmason
authored andcommitted
ntb_hw_switchtec: Fix pff ioread to read into mmio_part_cfg_all
Array mmio_part_cfg_all holds the partition configuration of all partitions, with partition number as index. Fix this by reading into mmio_part_cfg_all for pff. Fixes: 0ee28f2 ("NTB: switchtec_ntb: Add link management") Signed-off-by: Jeremy Pallotta <[email protected]> Signed-off-by: Kelvin Cao <[email protected]> Signed-off-by: Jon Mason <[email protected]>
1 parent 78c5335 commit 32c3d37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/ntb/hw/mscc/ntb_hw_switchtec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,8 @@ static void switchtec_ntb_part_link_speed(struct switchtec_ntb *sndev,
419419
enum ntb_width *width)
420420
{
421421
struct switchtec_dev *stdev = sndev->stdev;
422-
423-
u32 pff = ioread32(&stdev->mmio_part_cfg[partition].vep_pff_inst_id);
422+
u32 pff =
423+
ioread32(&stdev->mmio_part_cfg_all[partition].vep_pff_inst_id);
424424
u32 linksta = ioread32(&stdev->mmio_pff_csr[pff].pci_cap_region[13]);
425425

426426
if (speed)

0 commit comments

Comments
 (0)