]> err.no Git - linux-2.6/commitdiff
IB/ipath: Only warn about prototype chip during init
authorMichael Albaugh <Michael.Albaugh@Qlogic.com>
Wed, 7 May 2008 17:56:47 +0000 (10:56 -0700)
committerRoland Dreier <rolandd@cisco.com>
Wed, 7 May 2008 17:56:47 +0000 (10:56 -0700)
We warn about prototype chips, but the function that checks for
support is also called as a result of a get_portinfo request, which
can clutter the logs.

Restrict warning to only appear during initialization.

Signed-off-by: Michael Albaugh <michael.albaugh@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_iba7220.c

index e3ec0d1bdf505ae50d592174bfb2633a6d48b522..5f693de66542b866c6e5418dfc7cb9cb69a154f0 100644 (file)
@@ -870,8 +870,9 @@ static int ipath_7220_boardname(struct ipath_devdata *dd, char *name,
                              "revision %u.%u!\n",
                              dd->ipath_majrev, dd->ipath_minrev);
                ret = 1;
-       } else if (dd->ipath_minrev == 1) {
-               /* Rev1 chips are prototype. Complain, but allow use */
+       } else if (dd->ipath_minrev == 1 &&
+               !(dd->ipath_flags & IPATH_INITTED)) {
+               /* Rev1 chips are prototype. Complain at init, but allow use */
                ipath_dev_err(dd, "Unsupported hardware "
                              "revision %u.%u, Contact support@qlogic.com\n",
                              dd->ipath_majrev, dd->ipath_minrev);