aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMichael Albaugh <Michael.Albaugh@Qlogic.com>2008-05-07 13:56:47 -0400
committerRoland Dreier <rolandd@cisco.com>2008-05-07 13:56:47 -0400
commit5f51efc195dfb860c60fafb4e47fe4b7cad2626d (patch)
tree72efa481bbe7e3952920626c025df4444e053fe2 /drivers
parent273748cc908a901d082b4da5a16b2541c9d78a02 (diff)
IB/ipath: Only warn about prototype chip during init
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_iba7220.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_iba7220.c b/drivers/infiniband/hw/ipath/ipath_iba7220.c
index e3ec0d1bdf50..5f693de66542 100644
--- a/drivers/infiniband/hw/ipath/ipath_iba7220.c
+++ b/drivers/infiniband/hw/ipath/ipath_iba7220.c
@@ -870,8 +870,9 @@ static int ipath_7220_boardname(struct ipath_devdata *dd, char *name,
870 "revision %u.%u!\n", 870 "revision %u.%u!\n",
871 dd->ipath_majrev, dd->ipath_minrev); 871 dd->ipath_majrev, dd->ipath_minrev);
872 ret = 1; 872 ret = 1;
873 } else if (dd->ipath_minrev == 1) { 873 } else if (dd->ipath_minrev == 1 &&
874 /* Rev1 chips are prototype. Complain, but allow use */ 874 !(dd->ipath_flags & IPATH_INITTED)) {
875 /* Rev1 chips are prototype. Complain at init, but allow use */
875 ipath_dev_err(dd, "Unsupported hardware " 876 ipath_dev_err(dd, "Unsupported hardware "
876 "revision %u.%u, Contact support@qlogic.com\n", 877 "revision %u.%u, Contact support@qlogic.com\n",
877 dd->ipath_majrev, dd->ipath_minrev); 878 dd->ipath_majrev, dd->ipath_minrev);