Patrice Chotard acf9f03634 spi: stm32_qspi: Remove useless struct stm32_qspi_flash
Currently, in stm32_qspi_claim_bus(), QSPI_CR and QSPI_DCR registers
are saved in stm32_ospi_flash struct on first flash memory initialization
and restored on each flash accesses.

As the logic of spi-uclass.c changed since 'commit 741280e9accd
("spi: spi-uclass: Fix spi_claim_bus() speed/mode setup logic")'
set_speed() and set_mode() callbacks are called systematically when bus
speed or bus mode need to be updated, QSPI_CR and QSPI_DCR registers are
set accordingly.

So stm32_qspi_claim_bus() can be updated by removing QSPI_CR and QSPI_DCR
save/restore code and struct stm32_ospi_flash can be removed as well.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
2023-04-19 09:52:42 +02:00
..
2020-06-11 15:14:04 +05:30
2023-01-26 20:53:20 +05:30
2023-02-10 07:41:41 -05:00
2022-03-30 13:02:55 -04:00
2023-01-26 20:53:20 +05:30
2022-01-19 18:11:34 +01:00
2023-01-26 20:53:20 +05:30
2023-01-26 20:53:20 +05:30
2022-06-15 11:34:38 +02:00
2023-01-26 20:53:20 +05:30
2023-01-26 20:53:20 +05:30
2023-01-26 20:53:20 +05:30
2022-09-13 12:08:40 -04:00
2021-06-25 20:59:45 +05:30
2023-01-26 20:53:20 +05:30
2023-01-26 20:53:20 +05:30
2022-10-16 12:23:22 +02:00
2023-03-09 13:15:00 +01:00
2021-02-23 10:45:55 -05:00