Commit f1a9c1e6 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by John W. Linville

bcma: pci: trivial: correct amount of maximum retries

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9ba7f4f5
...@@ -81,7 +81,7 @@ static u16 bcma_pcie_mdio_read(struct bcma_drv_pci *pc, u8 device, u8 address) ...@@ -81,7 +81,7 @@ static u16 bcma_pcie_mdio_read(struct bcma_drv_pci *pc, u8 device, u8 address)
pcicore_write32(pc, mdio_data, v); pcicore_write32(pc, mdio_data, v);
/* Wait for the device to complete the transaction */ /* Wait for the device to complete the transaction */
udelay(10); udelay(10);
for (i = 0; i < 200; i++) { for (i = 0; i < max_retries; i++) {
v = pcicore_read32(pc, mdio_control); v = pcicore_read32(pc, mdio_control);
if (v & 0x100 /* Trans complete */) { if (v & 0x100 /* Trans complete */) {
udelay(10); udelay(10);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment