]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ssb: pci: trivial: correct amount of maximum retries
authorRafał Miłecki <zajec5@gmail.com>
Tue, 19 Apr 2011 20:40:22 +0000 (22:40 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Apr 2011 18:50:13 +0000 (14:50 -0400)
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/driver_pcicore.c

index 1ba9f0ee6f94978a1935e498d5e5d87ee6b1dafb..dbda168e501bb447d28143267dd6335b51c278e6 100644 (file)
@@ -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);