From: Rafał Miłecki Date: Tue, 19 Apr 2011 20:40:22 +0000 (+0200) Subject: ssb: pci: trivial: correct amount of maximum retries X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9be1cb39c6551231a4f210097685da11aa6a537b;p=openwrt%2Fstaging%2Fblogic.git ssb: pci: trivial: correct amount of maximum retries Signed-off-by: Rafał Miłecki Signed-off-by: John W. Linville --- diff --git a/drivers/ssb/driver_pcicore.c b/drivers/ssb/driver_pcicore.c index 1ba9f0ee6f94..dbda168e501b 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);