diff mbox

: Output FW warning in pci_read/write_vpd

Message ID 4BF18A0A.3020802@redhat.com (mailing list archive)
State Accepted, archived
Headers show

Commit Message

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

Patch

diff --git a/drivers/pci/access.c b/drivers/pci/access.c
index 2f646fe..26e9c19 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 r/w failed.  This is likely a firmware "
+				   "bug on this device.  Contact the card "
+				   "vendor for a firmware update.");
 			return -ETIMEDOUT;
+		}
 		if (fatal_signal_pending(current))
 			return -EINTR;
 		if (!cond_resched())