[PATCH 2/2] pci: host: new driver for Marvell Armada 7K/8K PCIe controller

Arnd Bergmann arnd at arndb.de
Mon Mar 28 14:21:57 PDT 2016


On Sunday 27 March 2016 11:30:58 Thomas Petazzoni wrote:
> +       /* Wait until the link becomes active again */
> +       while (timeout) {
> +               if (armada8k_pcie_link_up(pp))
> +                       break;
> +               udelay(1);
> +               timeout--;
> +       }
> 

Why the busy-loop here?

Maybe just do a single msleep(1) here to wait for the link to
come up instead?

	Arnd



More information about the linux-arm-kernel mailing list