drivers/spi: fsl_qspi: improve timeout calculation
authorThomas Schaefer <thomas.schaefer@kontron.com>
Mon, 1 Jul 2019 15:37:35 +0000 (17:37 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 18 Jul 2019 11:41:16 +0000 (17:11 +0530)
commit733391e84bd9d67582b2ecd719b35585b70fe74c
treea61f49dffda80e10f15c2c70436f9f34f1036dee
parentc6d0c5eb30b5d677a6eeca5079a4e9a27630b530
drivers/spi: fsl_qspi: improve timeout calculation

Use readl_poll_timeout instead of explicit calculation

Signed-off-by: Thomas Schaefer <thomas.schaefer@kontron.com>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/fsl_qspi.c