1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-27 12:49:21 +01:00
Files
u-boot-megous/drivers
Marek Vasut e2e95e5e25 spi: Update speed/mode on change
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 update the configuration.

The problem can easily be triggered using the sspi command:
=> sspi 0:0@1000
=> sspi 0:0@2000
Without this patch, both transfers happen at 1000 Hz. With this patch,
the later transfer happens correctly at 2000 Hz.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
2021-06-30 08:06:30 -04:00
..
2021-03-08 10:32:34 +01:00
2021-05-24 14:21:30 -04:00
2021-04-10 08:04:42 -04:00
2021-04-12 17:44:55 -04:00
2021-03-27 13:59:36 +13:00
2021-06-30 08:06:30 -04:00
2021-05-04 07:57:18 -04:00
2021-03-13 13:14:52 -05:00
2020-11-06 10:18:20 +08:00