Yes, but you'd need to call it in a loop. It will be effective if doneAgreed (as above). wrt cpu_relax() I believe this was added to improve the performance of other HW threads.+int rcar_pcie_wait_for_dl(struct rcar_pcie *pcie)This has same problem. Plus, I don't believe cpu_relax() is good idea
inside udelay(), but not like this.
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany