Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88525
b: refs/heads/master
c: 0ab6b2b
h: refs/heads/master
i:
  88523: 9533dd2
v: v3
  • Loading branch information
Dave Olson authored and Roland Dreier committed Apr 17, 2008
1 parent c3a517e commit a7fd976
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b3e8f541072ec688738abf8de4ef158127a6b5f2
refs/heads/master: 0ab6b2b9abb692919902edb6606c3b898f2dac17
9 changes: 7 additions & 2 deletions trunk/drivers/infiniband/hw/ipath/ipath_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -2006,11 +2006,16 @@ int ipath_set_mtu(struct ipath_devdata *dd, u16 arg)
return ret;
}

int ipath_set_lid(struct ipath_devdata *dd, u32 arg, u8 lmc)
int ipath_set_lid(struct ipath_devdata *dd, u32 lid, u8 lmc)
{
dd->ipath_lid = arg;
dd->ipath_lid = lid;
dd->ipath_lmc = lmc;

dd->ipath_f_set_ib_cfg(dd, IPATH_IB_CFG_LIDLMC, lid |
(~((1U << lmc) - 1)) << 16);

dev_info(&dd->pcidev->dev, "We got a lid: 0x%x\n", lid);

return 0;
}

Expand Down

0 comments on commit a7fd976

Please sign in to comment.