]> git.baikalelectronics.ru Git - uboot.git/commit
spi: fsl_qspi: Add controller busy check before new spi operation
authorSuresh Gupta <suresh.gupta@nxp.com>
Wed, 30 Aug 2017 14:36:33 +0000 (20:06 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 25 Sep 2017 07:19:56 +0000 (12:49 +0530)
commit59d71237573bb8d0a79a31b924ddd95b3f2b1b20
tree024549b066804b69daccbace8bd733abc1cc78b5
parent4cb04316f702c721508a0bb9a6ce8a37b6302c63
spi: fsl_qspi: Add controller busy check before new spi operation

It is recommended to check either controller is free to take
new spi action. The IP_ACC and AHB_ACC bits indicates that
the controller is busy in IP or AHB mode respectively.
And the BUSY bit indicates that controller is currently
busy handling a transaction to an external flash device

Signed-off-by: Suresh Gupta <suresh.gupta@nxp.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/spi/fsl_qspi.c
drivers/spi/fsl_qspi.h