spi: Add spi_write_then_read
authorJagan Teki <jagan@amarulasolutions.com>
Mon, 22 Jul 2019 11:52:56 +0000 (17:22 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 16 Sep 2019 02:39:22 +0000 (08:09 +0530)
commit8473b32127232d8b602d905a2ed26ed48d352f6e
tree82042e052a45f86951a769e161eb0eac6a6671fa
parent6bd6c21693547f1887b516bee11481e95e239ecb
spi: Add spi_write_then_read

Add support for SPI synchronous write followed by read,
this is common interface call from spi-nor to spi drivers.

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Tested-by: Adam Ford <aford173@gmail.com> #da850-evm
drivers/spi/spi-uclass.c
include/spi.h