Skip to content

Commit d8210dc

Browse files
author
Kelvin Cao
committed
Check peer partition for crosslink enable
1 parent e5e2038 commit d8210dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ntb_hw_switchtec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ static int crosslink_is_enabled(struct switchtec_ntb *sndev)
472472
{
473473
struct ntb_info_regs __iomem *inf = sndev->mmio_ntb;
474474

475-
return ioread8(&inf->ntp_info[sndev->self_partition].xlink_enabled);
475+
return ioread8(&inf->ntp_info[sndev->peer_partition].xlink_enabled);
476476
}
477477

478478
static void crosslink_init_dbmsgs(struct switchtec_ntb *sndev)

0 commit comments

Comments
 (0)