summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2011-04-19 22:40:22 +0200
committerJohn W. Linville <linville@tuxdriver.com>2011-04-25 14:50:13 -0400
commit9be1cb39c6551231a4f210097685da11aa6a537b (patch)
tree8311c03678460e269a2f9f226ca3d5904fc7febb
parentbca04689a2260ca4da227e7f7fa35f28f40e6a00 (diff)
downloadop-kernel-dev-9be1cb39c6551231a4f210097685da11aa6a537b.zip
op-kernel-dev-9be1cb39c6551231a4f210097685da11aa6a537b.tar.gz
ssb: pci: trivial: correct amount of maximum retries
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/ssb/driver_pcicore.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ssb/driver_pcicore.c b/drivers/ssb/driver_pcicore.c
index 1ba9f0e..dbda168 100644
--- a/drivers/ssb/driver_pcicore.c
+++ b/drivers/ssb/driver_pcicore.c
@@ -522,7 +522,7 @@ static u16 ssb_pcie_mdio_read(struct ssb_pcicore *pc, u8 device, u8 address)
pcicore_write32(pc, mdio_data, v);
/* Wait for the device to complete the transaction */
udelay(10);
- for (i = 0; i < 200; i++) {
+ for (i = 0; i < max_retries; i++) {
v = pcicore_read32(pc, mdio_control);
if (v & 0x100 /* Trans complete */) {
udelay(10);
OpenPOWER on IntegriCloud