diff mbox

: Output FW warning in pci_read/write_vpd

Message ID 20100517175830.17298.84619.sendpatchset@prarit.bos.redhat.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Prarit Bhargava May 17, 2010, 6:02 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/pci/access.c b/drivers/pci/access.c
index 2f646fe..5ea8aaf 100644
--- a/drivers/pci/access.c
+++ b/drivers/pci/access.c
@@ -220,8 +220,13 @@  static int pci_vpd_pci22_wait(struct pci_dev *dev)
 			return 0;
 		}
 
-		if (time_after(jiffies, timeout))
+		if (time_after(jiffies, timeout)) {
+			dev_printk(KERN_DEBUG, &dev->dev,
+				   "vpd read failed.  This is likely a FW bug "
+				   "on this device.  Contact the card vendor "
+				   "a FW update.");
 			return -ETIMEDOUT;
+		}
 		if (fatal_signal_pending(current))
 			return -EINTR;
 		if (!cond_resched())