diff options
author | Roland Dreier <roland@topspin.com> | 2005-04-16 18:26:31 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:26:31 -0400 |
commit | 6bd6228eed52ef188ebe46865ccff72da936c968 (patch) | |
tree | 412f864dba16f32a65496fde887db74db0485395 /drivers | |
parent | e0f5fdca1ca9d1659b920827e5cf6dbad20e5391 (diff) |
[PATCH] IB/mthca: tweaks to mthca_cmd.c
Minor tweaks to firmware command handling: kill off an unused get of a value,
and add a little more info to debug output.
Signed-off-by: Roland Dreier <roland@topspin.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/infiniband/hw/mthca/mthca_cmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/mthca/mthca_cmd.c b/drivers/infiniband/hw/mthca/mthca_cmd.c index a18468015f38..3c1cfc466522 100644 --- a/drivers/infiniband/hw/mthca/mthca_cmd.c +++ b/drivers/infiniband/hw/mthca/mthca_cmd.c | |||
@@ -989,7 +989,6 @@ int mthca_QUERY_DEV_LIM(struct mthca_dev *dev, | |||
989 | dev_lim->hca.arbel.resize_srq = field & 1; | 989 | dev_lim->hca.arbel.resize_srq = field & 1; |
990 | MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_SG_RQ_OFFSET); | 990 | MTHCA_GET(field, outbox, QUERY_DEV_LIM_MAX_SG_RQ_OFFSET); |
991 | dev_lim->max_sg = min_t(int, field, dev_lim->max_sg); | 991 | dev_lim->max_sg = min_t(int, field, dev_lim->max_sg); |
992 | MTHCA_GET(size, outbox, QUERY_DEV_LIM_MTT_ENTRY_SZ_OFFSET); | ||
993 | MTHCA_GET(size, outbox, QUERY_DEV_LIM_MPT_ENTRY_SZ_OFFSET); | 992 | MTHCA_GET(size, outbox, QUERY_DEV_LIM_MPT_ENTRY_SZ_OFFSET); |
994 | dev_lim->mpt_entry_sz = size; | 993 | dev_lim->mpt_entry_sz = size; |
995 | MTHCA_GET(field, outbox, QUERY_DEV_LIM_PBL_SZ_OFFSET); | 994 | MTHCA_GET(field, outbox, QUERY_DEV_LIM_PBL_SZ_OFFSET); |
@@ -1297,8 +1296,8 @@ int mthca_MAP_ICM_page(struct mthca_dev *dev, u64 dma_addr, u64 virt, u8 *status | |||
1297 | pci_free_consistent(dev->pdev, 16, inbox, indma); | 1296 | pci_free_consistent(dev->pdev, 16, inbox, indma); |
1298 | 1297 | ||
1299 | if (!err) | 1298 | if (!err) |
1300 | mthca_dbg(dev, "Mapped page at %llx for ICM.\n", | 1299 | mthca_dbg(dev, "Mapped page at %llx to %llx for ICM.\n", |
1301 | (unsigned long long) virt); | 1300 | (unsigned long long) dma_addr, (unsigned long long) virt); |
1302 | 1301 | ||
1303 | return err; | 1302 | return err; |
1304 | } | 1303 | } |