]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: spi-mem: Claim SPI bus before spi mem access
authorVignesh R <vigneshr@ti.com>
Tue, 5 Feb 2019 05:59:14 +0000 (11:29 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 7 Feb 2019 10:03:21 +0000 (15:33 +0530)
commit76094485e462d1bed6c37ed465d1fcb341d94531
tree433dd1488db6d07fe7b6cc6d35db50206b105329
parent12563f768ed7357d52bc15773b76cbeca6407d92
spi: spi-mem: Claim SPI bus before spi mem access

It is necessary to call spi_claim_bus() before starting any SPI
transactions and this restriction would also apply when calling spi-mem
operations. Therefore claim and release bus before requesting transfer
via exec_op.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Tested-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Tested-by: Stefan Roese <sr@denx.de>
Tested-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> #zynq-microzed
drivers/spi/spi-mem.c