commit | 9573db654d1999a1dfde6469782aa8d7cf3d589f | [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 | 118226495249268a35e604b2e6309801699f6224 [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>