Searched hist:"0962 b023d2d6ce91e09d5793aec36770a6bfec1e" (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/drivers/spi/ |
| H A D | spi-uclass.c | 0962b023d2d6ce91e09d5793aec36770a6bfec1e Thu Nov 21 04:38:47 UTC 2019 Marcin Wojtas <mw@semihalf.com> UPSTREAM: spi: prevent overriding established bus settings
The SPI stack relies on a proper bus speed/mode configuration by calling dm_spi_claim_bus(). However the hitherto code allowed to accidentally override those settings in the spi_get_bus_and_cs() routine.
The initially established speed could be discarded by using the slave platdata, which turned out to be an issue on the platforms whose slave maximum supported frequency is not on par with the maximum frequency of the bus controller.
This patch fixes above issue by configuring the bus from spi_get_bus_and_cs() only in case it was not done before.
Change-Id: I7b8268046ae5e086de8dd456a5e13ba8b7dc0f5c Signed-off-by: Marcin Wojtas <mw@semihalf.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Jagan Teki <jagan@amarulasolutions.com> Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit f7dd5370986087af9b9cfa601f34b344ec910b87)
|