commit | f6bdbcc138ffa7cf00f4e75b1db246099bef13da | [log] [tgz] |
---|---|---|
author | Marek Vasut <marek.vasut+renesas@gmail.com> | Tue Apr 10 16:58:46 2018 +0200 |
committer | Marek Vasut <marex@denx.de> | Wed Apr 11 23:19:51 2018 +0200 |
tree | 2c219f551d7faf96fe46ce9060853aead8915757 | |
parent | 11d106c722744b3d157e3ee19a144ce1981e5991 [diff] |
spi: sh_qspi: Replace ad hoc waiting with wait_for_bit Replace the ad-hoc endless loops with wait_for_bit() with reasonable timeout. Note that the loops had internal 10uS delays, although there is no reason for those on this HW, so they are dropped. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com> Cc: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>