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

2020-12-23 Thread Simon Glass
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_

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

2020-12-14 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_