PCI: rcar: Poll more often in rcar_pcie_wait_for_dl()
authorMarek Vasut <[email protected]>
Tue, 22 May 2018 12:24:20 +0000 (14:24 +0200)
committerLorenzo Pieralisi <[email protected]>
Thu, 24 May 2018 17:00:44 +0000 (18:00 +0100)
commit0353ff29b3881a8d9df65ce08a01e636868c1ef2
treeb6a5511d3bf0144a31371d9f8f183e5ee4700d03
parentf7e1c6461e04afb8574cd91864f316cfcb8969f4
PCI: rcar: Poll more often in rcar_pcie_wait_for_dl()

The data link active signal usually takes ~20 uSec to be asserted, poll
the bit more often to avoid useless delays in this function.

Use udelay() instead of usleep() for such a small delay as suggested by
the timer documentation.

Signed-off-by: Marek Vasut <[email protected]>
[[email protected]: updated commit log]
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Phil Edworthy <[email protected]>
Cc: Simon Horman <[email protected]>
Cc: Wolfram Sang <[email protected]>
Cc: [email protected]
drivers/pci/host/pcie-rcar.c