Re: [PATCH 5/6] spi: spi-uclass: Fix spi_claim_bus() speed/mode setup logic

2020-12-12 Thread Simon Glass
On Sun, 6 Dec 2020 at 14:24, Ovidiu Panait wrote: > > Currently, when different spi slaves claim the bus consecutively using > spi_claim_bus(), spi_set_speed_mode() will only be executed on the first > two calls, leaving the bus in a bad state starting with the third call. > > This patch drops spi

[PATCH 5/6] spi: spi-uclass: Fix spi_claim_bus() speed/mode setup logic

2020-12-06 Thread Ovidiu Panait
Currently, when different spi slaves claim the bus consecutively using spi_claim_bus(), spi_set_speed_mode() will only be executed on the first two calls, leaving the bus in a bad state starting with the third call. This patch drops spi_slave->speed member and adds caching of bus speed/mode in dm_