spi: nxp-fspi: Use new readl_poll_sleep_timeout API
authorKuldeep Singh <kuldeep.singh@nxp.com>
Mon, 27 Apr 2020 07:08:51 +0000 (12:38 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Sun, 10 May 2020 20:00:49 +0000 (01:30 +0530)
commit28029c768c4761d10815f94cafbbdc86272f1d8d
tree62a4e9faf05f2a6e0838e9af1288c093bfc473e6
parentce786ae3913f3a006ec959cc9538d6c4d4114345
spi: nxp-fspi: Use new readl_poll_sleep_timeout API

Board gets reset when performing burst read/write operations. On the
other hand, no such behaviour is observed on small size operations.

In Linux, readl_poll_timeout API already adds delay of 1us which is
further skipped in U-boot. Hence, use new "readl_poll_sleep_timeout" API
which adds delay alongwith timeout functionality.

Signed-off-by: Kuldeep Singh <kuldeep.singh@nxp.com>
drivers/spi/nxp_fspi.c