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

2019-09-06 Thread Jagan Teki
On Fri, Aug 2, 2019 at 7:16 PM Patrice Chotard wrote: > > From: Christophe Kerello > > 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 N

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

2019-08-02 Thread Patrice Chotard
From: Christophe Kerello 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 GPI