Patrice Chotard 3feea0ba19 spi: spi_flash_probe_bus_cs() rely on DT for spi speed and mode
Now, spi_flash_probe_bus_cs() relies on DT for spi speed and mode
and logically calls spi_get_bus_and_cs(). In case spi mode and speed are
not read from DT, make usage of spi_flash_probe() instead.

To sum-up:
 - Previous call tree was:
    spi_flash_probe() -> spi_flash_probe_bus_cs() -> spi_get_bus_and_cs()

 - Current call tree is:
    spi_flash_probe() -> _spi_get_bus_and_cs()
    spi_flash_probe_bus_cs() -> spi_get_bus_and_cs()

This patch impacts the following :
  - cmd/sf.c: if spi mode and/or speed is passed in argument of
    do_spi_flash_probe(), call spi_flash_probe() otherwise call
    spi_flash_probe_bus_cs().

  - drivers/net/fm/fm.c: as by default spi speed and mode was set to
    0 and a comment indicates that speed and mode are read from DT,
    use spi_flash_probe_bus_cs().

  - drivers/net/pfe_eth/pfe_firmware.c: spi speed and mode are not read
    from DT by all platforms using this driver, so keep legacy and replace
    spi_flash_probe_bus_cs() by spi_flash_probe();

  - drivers/net/sni_netsec.c : spi speed and mode are not read from DT,
    so replace spi_flash_probe_bus_cs() by spi_flash_probe().

  - drivers/usb/gadget/max3420_udc.c: Can't find any platform which make
    usage of this driver, nevertheless, keep legacy and replace
    spi_get_bus_and_cs() by _spi_get_bus_and_cs().

  - env/sf.c: a comment indicates that speed and mode are read
    from DT. So use spi_flash_probe_bus_cs().

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>

Cc: Marek Behun <marek.behun@nic.cz>
Cc: Jagan Teki <jagan@amarulasolutions.com>
Cc: Vignesh R <vigneshr@ti.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Lukasz Majewski <lukma@denx.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Stefan Roese <sr@denx.de>
Cc: "Pali Rohár" <pali@kernel.org>
Cc: Konstantin Porotchkin <kostap@marvell.com>
Cc: Igal Liberman <igall@marvell.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Pratyush Yadav <p.yadav@ti.com>
Cc: Sean Anderson <seanga2@gmail.com>
Cc: Anji J <anji.jagarlmudi@nxp.com>
Cc: Biwen Li <biwen.li@nxp.com>
Cc: Priyanka Jain <priyanka.jain@nxp.com>
Cc: Chaitanya Sakinam <chaitanya.sakinam@nxp.com>
2022-05-23 09:33:10 -04:00
..
2017-02-08 15:56:28 -05:00
2022-05-05 15:06:02 -04:00
2022-02-05 15:49:00 +01:00
2021-08-26 08:08:11 +02:00
2022-04-25 10:00:04 -04:00
2022-04-25 10:00:04 -04:00
2022-03-31 14:12:23 -04:00
2022-04-25 10:00:04 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2022-02-25 01:41:04 -05:00
2022-03-28 20:14:24 +02:00
2020-05-18 18:36:55 -04:00
2020-12-18 20:32:21 -07:00
2022-01-19 18:11:34 +01:00
2022-01-19 18:11:34 +01:00
2020-05-18 18:36:55 -04:00
2022-01-15 10:57:22 +01:00
2021-11-16 14:35:09 -05:00
2022-03-15 16:19:29 -04:00
2020-05-18 18:36:55 -04:00
2022-03-10 08:28:36 -05:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2020-10-23 13:33:07 -04:00
2022-05-05 15:06:02 -04:00
2022-01-21 14:01:35 -05:00
2022-04-20 11:14:39 -04:00
2022-05-06 14:39:15 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2021-12-05 09:23:15 -07:00
2021-08-30 14:10:07 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00
2022-01-19 18:11:34 +01:00
2020-05-18 18:36:55 -04:00
2022-04-25 10:00:04 -04:00
2021-11-28 16:51:51 -07:00
2022-05-05 15:06:02 -04:00
2022-01-19 18:11:34 +01:00
2020-10-28 11:49:31 -04:00
2020-05-18 18:36:55 -04:00
2022-05-05 15:06:02 -04:00
2020-07-08 17:21:46 -04:00
2022-01-15 10:57:22 +01:00
2022-01-19 18:11:34 +01:00
2020-05-18 18:36:55 -04:00
2020-12-18 20:32:21 -07:00
2020-05-18 18:36:55 -04:00
2022-01-19 18:11:34 +01:00
2021-09-24 14:30:46 -04:00
2020-08-07 22:31:32 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 18:36:55 -04:00
2021-10-21 07:39:05 +02:00
2022-01-19 18:11:34 +01:00
2021-10-09 13:09:56 -04:00
2020-05-18 18:36:55 -04:00
2020-05-18 18:36:55 -04:00