Re: [PATCH] spi: Update speed/mode on change

2021-02-26 Thread Marek Vasut
On 2/26/21 2:07 PM, Patrick DELAUNAY wrote: Hi Marek, On 2/25/21 9:52 PM, Marek Vasut wrote: The spi_get_bus_and_cs() may be called on the same bus and chipselect with different frequency or mode. This is valid usecase, but the code fails to notify the controller of such a configuration

Re: [PATCH] spi: Update speed/mode on change

2021-02-26 Thread Patrick DELAUNAY
Hi Marek, On 2/25/21 9:52 PM, Marek Vasut wrote: The spi_get_bus_and_cs() may be called on the same bus and chipselect with different frequency or mode. This is valid usecase, but the code fails to notify the controller of such a configuration change. Call spi_set_speed_mode() in case bus

[PATCH] spi: Update speed/mode on change

2021-02-25 Thread Marek Vasut
The spi_get_bus_and_cs() may be called on the same bus and chipselect with different frequency or mode. This is valid usecase, but the code fails to notify the controller of such a configuration change. Call spi_set_speed_mode() in case bus frequency or bus mode changed to let the controller