u-boot/drivers/spi
Simon Goldschmidt 12bfb2e05f dm: spi: prevent setting a speed of 0 Hz
When the device tree is missing a correct spi slave description below
the bus (compatible "spi-flash" or spi-max-frequency are missing),
the 'set_speed' callback can be called with 'speed' == 0 Hz.
At least with cadence qspi, this leads to a division by zero.

Prevent this by initializing speed to 100 kHz in this case (same
fallback value as is done in 'dm_spi_claim_bus') and issue a warning
to console.

Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2018-11-20 19:14:22 -07:00
..
altera_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
atcspi200_spi.c Merge branch 'master' of git://git.denx.de/u-boot-spi 2018-05-30 14:51:37 -04:00
ath79_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
atmel_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
atmel_spi.h Revert "spi: atmel: Drop non-dm code" 2018-04-07 09:19:00 -04:00
bcm63xx_hsspi.c spi: bcm63xx_hsspi: convert to use live dt 2018-06-01 15:56:02 +02:00
bcm63xx_spi.c spi: bcm63xx_spi: convert to use live dt 2018-06-01 15:56:02 +02:00
bcmstb_spi.c board: arm: Add support for Broadcom BCM7445 2018-07-10 16:55:57 -04:00
cadence_qspi.c spi: cadence_qspi: Fix compilation warning 2018-07-12 09:22:11 +02:00
cadence_qspi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cadence_qspi_apb.c spi: cadence_qspi: Fix warning cast from pointer to integer of different size 2018-07-12 09:22:11 +02:00
cf_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
davinci_spi.c spi: davinci: Add platdata support 2018-10-10 11:35:06 +05:30
designware_spi.c spi: designware_spi: Add reset ctrl to driver 2018-10-02 22:13:58 +05:30
exynos_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsl_dspi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsl_espi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsl_qspi.c driver/spi: fsl_qspi: Remove non-DM stuff 2018-10-02 22:13:58 +05:30
fsl_qspi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ich.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ich.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig arm64: versal: Add support for new Xilinx Versal ACAPs 2018-10-16 16:53:21 +02:00
kirkwood_spi.c spi: kirkwood: add orion-spi compatible string 2018-08-03 11:14:02 +05:30
lpc32xx_ssp.c spi: lpc32xx: simplify logical expression 2018-05-16 19:19:06 +05:30
Makefile spi: Add SPI driver for MT76xx SoCs 2018-10-04 18:27:28 +05:30
mpc8xx_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mpc8xxx_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mt7621_spi.c spi: Add SPI driver for MT76xx SoCs 2018-10-04 18:27:28 +05:30
mvebu_a3700_spi.c spi: mvebu_a3700_spi: Use Armada 37xx clk driver for SPI clock frequency 2018-05-14 10:00:15 +02:00
mxc_spi.c spi: mxc_spi: Fix chipselect on DM_SPI driver uclass 2018-06-25 15:23:06 +05:30
mxs_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
omap3_spi.c spi: omap3: fix claim/release bus within DM 2018-06-28 19:54:10 +05:30
pic32_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pl022_spi.c spi: add support for ARM PL022 SPI controller 2018-09-25 21:49:18 -04:00
renesas_rpc_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk_spi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox_spi.c sandbox: spi: Add more logging 2018-10-09 04:40:27 -06:00
sh_qspi.c spi: sh_qspi: Add DM support to SH QSPI driver 2018-10-02 22:14:59 +05:30
sh_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sh_spi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
soft_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
soft_spi_legacy.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spi-emul-uclass.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spi-mem.c spi: Extend the core to ease integration of SPI memory controllers 2018-09-20 20:10:49 +05:30
spi-uclass.c dm: spi: prevent setting a speed of 0 Hz 2018-11-20 19:14:22 -07:00
spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
stm32_qspi.c spi: stm32_qspi: rework mode management 2018-07-23 14:33:21 -04:00
sun4i_spi.c arm: sunxi: Allwinner A10 SPI driver 2018-08-03 11:14:08 +05:30
tegra20_sflash.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tegra20_slink.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tegra114_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tegra210_qspi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
tegra_spi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ti_qspi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
xilinx_spi.c spi: xilinx_spi: convert to livetree 2018-07-16 14:01:20 +05:30
zynq_qspi.c spi: zynq_qspi: Fixed incorrect return value error 2018-06-25 14:13:57 +05:30
zynq_spi.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
zynqmp_gqspi.c spi: zynqmp_gqspi: Add support for ZynqMP qspi driver 2018-07-16 14:01:47 +05:30