Re: [PATCH v3] spi: spi_flash_probe_bus_cs() rely on DT for spi speed and mode

2022-03-11 Thread Jagan Teki
Hi Patrice, On Mon, Mar 7, 2022 at 11:20 PM Patrice Chotard wrote: > > Since commit e2e95e5e2542 ("spi: Update speed/mode on change") > when calling "sf probe" or "env save" on SPI flash, > spi_set_speed_mode() is called twice. > > spi_get_bus_and_cs() > |--> spi_claim_bus() > |

[PATCH v3] spi: spi_flash_probe_bus_cs() rely on DT for spi speed and mode

2022-03-07 Thread Patrice Chotard
Since commit e2e95e5e2542 ("spi: Update speed/mode on change") when calling "sf probe" or "env save" on SPI flash, spi_set_speed_mode() is called twice. spi_get_bus_and_cs() |--> spi_claim_bus() | |--> spi_set_speed_mode(speed and mode from DT) ... |--> spi_set_speed_