]> git.dujemihanovic.xyz Git - u-boot.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)
commit1c631da459a82f4f82a063f5b4ff339ca5384d11
tree024549b066804b69daccbace8bd733abc1cc78b5
parent994266bdff7903279b8e43ddbf220b04a4e1411f
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