]> git.baikalelectronics.ru Git - uboot.git/commit
spi: sh_qspi: Replace ad hoc waiting with wait_for_bit
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 10 Apr 2018 14:58:46 +0000 (16:58 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 11 Apr 2018 21:19:51 +0000 (23:19 +0200)
commit0b492f719f6c4224d0d9ad62f07175d875ef68fe
tree2c219f551d7faf96fe46ce9060853aead8915757
parent16c3ecbe8d9eb05a92e42a9bdc331a04052c16f4
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>
drivers/spi/sh_qspi.c