Skip to content

Commit

Permalink
Merge branch 'backport_ubuntu_16.04.2_4.4.0-62-generic' into release_…
Browse files Browse the repository at this point in the history
…ubuntu_16.04.2_4.4.0-62-generic
  • Loading branch information
wesleywesley committed Jan 8, 2019
2 parents 89f109f + 719d64c commit d364845
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ntb_hw_switchtec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,6 +1456,9 @@ static int switchtec_ntb_reinit_peer(struct switchtec_ntb *sndev)
{
int rc;

if (crosslink_is_enabled(sndev))
return 0;

dev_info(&sndev->stdev->dev, "reinitialize shared memory window\n");
rc = config_rsvd_lut_win(sndev, sndev->mmio_peer_ctrl, 0,
sndev->self_partition,
Expand Down
5 changes: 3 additions & 2 deletions switchtec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1184,7 +1184,8 @@ static int mask_event(struct switchtec_dev *stdev, int eid, int idx)
if (!(hdr & SWITCHTEC_EVENT_OCCURRED && hdr & SWITCHTEC_EVENT_EN_IRQ))
return 0;

if (eid == SWITCHTEC_IOCTL_EVENT_LINK_STATE)
if (eid == SWITCHTEC_IOCTL_EVENT_LINK_STATE ||
eid == SWITCHTEC_IOCTL_EVENT_MRPC_COMP)
return 0;

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

if(!(ioread32(&stdev->mmio_mrpc->dma_ver)? true : false))
if (!ioread32(&stdev->mmio_mrpc->dma_ver))
return 0;

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

0 comments on commit d364845

Please sign in to comment.