[U-Boot] [PATCH] spi: soft_spi: Fix data abort if slave is not probed

Jagan Teki jagan at amarulasolutions.com
Fri Sep 6 18:37:22 UTC 2019

On Fri, Aug 2, 2019 at 7:16 PM Patrice Chotard <patrice.chotard at st.com> wrote:
> From: Christophe Kerello <christophe.kerello at st.com>
> In case spi_get_bus_and_cs callback is used, spi bus is first probed
> then slave devices are probed. To avoid a data abort in soft_spi probe
> function, we need to check that (slave != NULL).
> If slave is NULL, cs_flags and clk_flags will be initialized with
> respectively GPIOD_ACTIVE_LOW and 0.
> Signed-off-by: Christophe Kerello <christophe.kerello at st.com>
> Signed-off-by: Patrice Chotard <patrice.chotard at st.com>
> ---

Applied to u-boot-spi/master

More information about the U-Boot mailing list