u-boot/drivers/spi
Vignesh Raghavendra f3f83ad4ca spi: omap3_spi: Fix speed and mode selection
McSPI IP provides per CS specific speed and mode selection. Therefore it
is possible to apply these settings only after CS is known. But
set_speed and set_mode can be called without bus being claimed, this
would lead driver to set up wrong CS (or previously used CS).

Fix this by apply set_speed and set_mode only if bus is already claimed.

Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Tested-by: Miquel Raynal <miquel.raynal@bootlin.com>
2021-01-12 10:21:41 +05:30
..
altera_spi.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
atcspi200_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
ath79_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
atmel-quadspi.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
atmel_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
atmel_spi.h spi: atmel: Remove nondm code 2020-06-11 15:14:04 +05:30
bcm63xx_hsspi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
bcm63xx_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
bcmstb_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
ca_sflash.c spi: ca_sflash: Add CAxxxx SPI Flash Controller 2020-12-18 16:16:37 +05:30
cadence_qspi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
cadence_qspi.h dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
cadence_qspi_apb.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
cf_spi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
davinci_spi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
designware_spi.c Driver model: make some udevice fields private 2021-01-05 22:34:43 -05:00
exynos_spi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
fsl_dspi.c dm: core: Access device ofnode through functions 2021-01-05 12:24:41 -07:00
fsl_espi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
fsl_qspi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
ich.c x86: spl: Move priv/plat structs to headers 2021-01-05 12:24:41 -07:00
ich.h x86: spl: Move priv/plat structs to headers 2021-01-05 12:24:41 -07:00
Kconfig spi: ca_sflash: Add CAxxxx SPI Flash Controller 2020-12-18 16:16:37 +05:30
kirkwood_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
Makefile spi: ca_sflash: Add CAxxxx SPI Flash Controller 2020-12-18 16:16:37 +05:30
meson_spifc.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mpc8xx_spi.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mpc8xxx_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
mscc_bb_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
mt7621_spi.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mtk_snfi_spi.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mvebu_a3700_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
mxc_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
mxs_spi.c dm: Rename U_BOOT_DRIVER_ALIAS to DM_DRIVER_ALIAS 2021-01-05 12:26:35 -07:00
nxp_fspi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
octeon_spi.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
omap3_spi.c spi: omap3_spi: Fix speed and mode selection 2021-01-12 10:21:41 +05:30
pic32_spi.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
pl022_spi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
renesas_rpc_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
rk_spi.c dm: Rename U_BOOT_DRIVER_ALIAS to DM_DRIVER_ALIAS 2021-01-05 12:26:35 -07: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 test: spi: Add sandbox_spi_get_{speed, mode} interface 2020-12-22 20:39:26 -07:00
sh_qspi.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
soft_spi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07: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-nodm.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
spi-mem.c mtd: spi-mem: Drop dm.h header file 2020-08-03 22:19:54 -04:00
spi-qup.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
spi-sifive.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
spi-sunxi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
spi-uclass.c Driver model: make some udevice fields private 2021-01-05 22:34:43 -05: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 dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
stm32_spi.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
tegra20_sflash.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
tegra20_slink.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
tegra114_spi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
tegra210_qspi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
tegra_spi.h dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
ti_qspi.c spi: ti_qspi: Fix "spi-max-frequency" error path in ti_qspi_ofdata_to_platdata 2021-01-12 10:21:41 +05:30
uniphier_spi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
xilinx_spi.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
zynq_qspi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
zynq_spi.c dm: Use access methods for dev/uclass private data 2021-01-05 12:24:40 -07:00
zynqmp_gqspi.c Xilinx changes for v2021.04 2021-01-06 07:57:33 -05:00