]> git.openfabrics.org - ~adrianc/mstflint.git/commitdiff
Fix bug with cr access for ConnectX-3 A1 chip
authorOren Kladnitsky <orenk@dev.mellanox.co.il>
Sun, 9 Oct 2011 10:40:11 +0000 (12:40 +0200)
committerOren Kladnitsky <orenk@dev.mellanox.co.il>
Sun, 9 Oct 2011 10:40:42 +0000 (12:40 +0200)
mtcr.h

diff --git a/mtcr.h b/mtcr.h
index cfe8431f4ce44afd13b59fa4d41fd9c62345a328..0cf6898f11ead7a2f0ba4eaed4a819862f52e404 100644 (file)
--- a/mtcr.h
+++ b/mtcr.h
@@ -275,7 +275,7 @@ int mtcr_check_signature(mfile *mf)
        switch (signature & 0xffff) {
        case 0x190 : /* 400 */
        case 0x1f5 :
-               if ((signature == 0xa00190 || signature == 0x1f5) && mf->ptr) {
+               if ((signature == 0xa00190 || (signature & 0xffff) == 0x1f5) && mf->ptr) {
                        mf->connectx_flush = 1;
                        mtcr_connectx_flush(mf->ptr);
                }