Skip to content

Commit d364845

Browse files
committed
Merge branch 'backport_ubuntu_16.04.2_4.4.0-62-generic' into release_ubuntu_16.04.2_4.4.0-62-generic
2 parents 89f109f + 719d64c commit d364845

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ntb_hw_switchtec.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,6 +1456,9 @@ static int switchtec_ntb_reinit_peer(struct switchtec_ntb *sndev)
14561456
{
14571457
int rc;
14581458

1459+
if (crosslink_is_enabled(sndev))
1460+
return 0;
1461+
14591462
dev_info(&sndev->stdev->dev, "reinitialize shared memory window\n");
14601463
rc = config_rsvd_lut_win(sndev, sndev->mmio_peer_ctrl, 0,
14611464
sndev->self_partition,

switchtec.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,8 @@ static int mask_event(struct switchtec_dev *stdev, int eid, int idx)
11841184
if (!(hdr & SWITCHTEC_EVENT_OCCURRED && hdr & SWITCHTEC_EVENT_EN_IRQ))
11851185
return 0;
11861186

1187-
if (eid == SWITCHTEC_IOCTL_EVENT_LINK_STATE)
1187+
if (eid == SWITCHTEC_IOCTL_EVENT_LINK_STATE ||
1188+
eid == SWITCHTEC_IOCTL_EVENT_MRPC_COMP)
11881189
return 0;
11891190

11901191
dev_dbg(&stdev->dev, "%s: %d %d %x\n", __func__, eid, idx, hdr);
@@ -1459,7 +1460,7 @@ static int switchtec_init_pci(struct switchtec_dev *stdev,
14591460
if (!use_dma_mrpc)
14601461
return 0;
14611462

1462-
if(!(ioread32(&stdev->mmio_mrpc->dma_ver)? true : false))
1463+
if (!ioread32(&stdev->mmio_mrpc->dma_ver))
14631464
return 0;
14641465

14651466
stdev->dma_mrpc = dma_zalloc_coherent(&stdev->pdev->dev, sizeof(*stdev->dma_mrpc),

0 commit comments

Comments
 (0)