]> git.baikalelectronics.ru Git - uboot.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)
commita544d2b3f6bf6d5cdb5bf9b27b174d16add2563a
tree433dd1488db6d07fe7b6cc6d35db50206b105329
parent2269c9f1c0473803a7d8e496048a9c450a025494
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