]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: spi: Check cs number before accessing slaves
authorBin Meng <bmeng.cn@gmail.com>
Mon, 9 Sep 2019 13:00:02 +0000 (06:00 -0700)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 27 Jan 2020 16:57:21 +0000 (22:27 +0530)
commit7bacce524d48594dae399f9ee9280ab105f6c8cf
treea9cdb8e947d511b199db7647361b272ea6262a27
parent383fded70c4f14370bc5525bdb9f547393876e31
dm: spi: Check cs number before accessing slaves

Add chip select number check in spi_find_chip_select().

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Jagan Teki <jagan@amarulasolutions.com> # SoPine
drivers/spi/spi-uclass.c
include/spi.h