IB/qib: Minor fixes to qib per SFF 8636
PATCH 1/1 IB/qib: Minor fixes to qib per SFF 8636
From: Easwar Hariharan <[email protected]>
Minor errors found via code inspection during future development. SFF 8636 defines bit position 2 to hold the status indication of QSFP memory paging. The mask used to test for the value was incorrect and is fixed in this patch. Additionally, the dump function had a mismatch between the field being printed out and the field used to source the data which was fixed.
--- drivers/infiniband/hw/qib/qib_qsfp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/infiniband/hw/qib/qib_qsfp.c +2 -2
@@ -292,7 +292,7 @@ int qib_refresh_qsfp_cache(struct qib_pportdata *ppd, struct qib_qsfp_cache *cp)qib_dev_porterr (ppd->dd, ppd->port,"QSFP byte0 is 0x%02X, S/B 0x0C/D\n" , peek[0 ]); -if ((peek[2 ] &2 ) ==0 ) { +if ((peek[2 ] &4 ) ==0 ) {/* * If cable is paged, rather than "flat memory", we need to * set the page to zero, Even if it already appears to be zero.
@@ -538,7 +538,7 @@ int qib_qsfp_dump(struct qib_pportdata *ppd, char *buf, int len) sofar +=scnprintf (buf + sofar, len - sofar,"Date:%.*s\n" ,QSFP_DATE_LEN , cd.date); sofar +=scnprintf (buf + sofar, len - sofar,"Lot:%.*s\n" , -QSFP_LOT_LEN , cd.date); +QSFP_LOT_LEN , cd.lot);while (bidx <QSFP_DEFAULT_HDR_CNT ) {int iidx;
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 9 lines · Mike Marciniszyn
From: Easwar Hariharan <[email protected]>
Minor errors found via code inspection during future development. SFF 8636 defines bit position 2 to hold the status indication of QSFP memory paging. The mask used to test for the value was incorrect and is fixed in this patch. Additionally, the dump function had a mismatch between the field being printed out and the field used to source the data which was fixed.
Quoted 5 lines
Reviewed-by Mitko Haralanov <[email protected]>Reviewed-by Mike Marciniszyn <[email protected]>Reported-by Easwar Hariharan <[email protected]>Signed-off-by Easwar Hariharan <[email protected]>Signed-off-by Mike Marciniszyn <[email protected]>
Pulled in for 4.4-rc. Thanks.
Signature · 2 lines
Doug Ledford <[email protected]> GPG KeyID: 0E572FDD