aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/infiniband/hw/ipath/ipath_driver.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_driver.c b/drivers/infiniband/hw/ipath/ipath_driver.c
index 5e1dcb3dbc57..1245180f210c 100644
--- a/drivers/infiniband/hw/ipath/ipath_driver.c
+++ b/drivers/infiniband/hw/ipath/ipath_driver.c
@@ -2006,11 +2006,16 @@ bail:
2006 return ret; 2006 return ret;
2007} 2007}
2008 2008
2009int ipath_set_lid(struct ipath_devdata *dd, u32 arg, u8 lmc) 2009int ipath_set_lid(struct ipath_devdata *dd, u32 lid, u8 lmc)
2010{ 2010{
2011 dd->ipath_lid = arg; 2011 dd->ipath_lid = lid;
2012 dd->ipath_lmc = lmc; 2012 dd->ipath_lmc = lmc;
2013 2013
2014 dd->ipath_f_set_ib_cfg(dd, IPATH_IB_CFG_LIDLMC, lid |
2015 (~((1U << lmc) - 1)) << 16);
2016
2017 dev_info(&dd->pcidev->dev, "We got a lid: 0x%x\n", lid);
2018
2014 return 0; 2019 return 0;
2015} 2020}
2016 2021