u-boot/drivers/spi
Pratyush Yadav 7d1ee7f194 spi: cadence-qspi: Do not use DMA for small reads
A very frequent operation is the Read Status Register command that is
executed repeatedly after doing an erase or page program. On the Cypress
S28HS512T flash this command expects 4 address bytes and so it does not
go via the STIG route. The command reads 2 bytes from the flash. Setting
up DMA for it is more hassle than it is worth. For small reads like
this, the speed gain, if any, will not be worth the extra overhead.

So do not use DMA for reads smaller than 16 bytes. This should cover
polling operations like SR polling.

It also fixes an issue on J721E and J7200 with the Cypress S28HS512T
flash where DMA would eventually freeze when writing or erasing because
of the constant bombardment of small, frequent reads.

Signed-off-by: Pratyush Yadav <p.yadav@ti.com>
2021-04-14 13:52:44 -05:00
..
Kconfig spi: cadence-qspi: Tune PHY to allow running at higher frequencies 2021-04-14 13:52:44 -05:00
Makefile spi: ca_sflash: Add CAxxxx SPI Flash Controller 2020-12-18 16:16:37 +05:30
altera_spi.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
atcspi200_spi.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
ath79_spi.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
atmel-quadspi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
atmel_spi.c treewide: convert (void *)devfdt_get_addr() to dev_read_addr_ptr() 2020-07-25 14:46:57 -06:00
atmel_spi.h spi: atmel: Remove nondm code 2020-06-11 15:14:04 +05:30
bcm63xx_hsspi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bcm63xx_spi.c
bcmstb_spi.c
ca_sflash.c spi: ca_sflash: Add CAxxxx SPI Flash Controller 2020-12-18 16:16:37 +05:30
cadence_qspi.c spi: cadence-qspi: Tune PHY to allow running at higher frequencies 2021-04-14 13:52:44 -05:00
cadence_qspi.h spi: cadence-qspi: Tune PHY to allow running at higher frequencies 2021-04-14 13:52:44 -05:00
cadence_qspi_apb.c spi: cadence-qspi: Do not use DMA for small reads 2021-04-14 13:52:44 -05:00
cf_spi.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
davinci_spi.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
designware_spi.c spi: dw: Add mem_ops 2020-12-18 16:16:37 +05:30
exynos_spi.c treewide: convert (void *)devfdt_get_addr() to dev_read_addr_ptr() 2020-07-25 14:46:57 -06:00
fsl_dspi.c Merge https://gitlab.denx.de/u-boot/custodians/u-boot-fsl-qoriq 2020-07-27 15:18:15 -04:00
fsl_espi.c dm: spi: Convert Freescale ESPI driver to driver model 2020-06-18 21:47:08 +05:30
fsl_qspi.c spi: fsl_qspi: Include device_compat.h 2020-10-16 09:44:27 -04:00
ich.c x86: apl: Enable SPI flash in TPL with APL_SPI_FLASH_BOOT 2020-10-29 14:42:18 -06:00
ich.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
kirkwood_spi.c treewide: convert (void *)devfdt_get_addr() to dev_read_addr_ptr() 2020-07-25 14:46:57 -06:00
meson_spifc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mpc8xx_spi.c
mpc8xxx_spi.c spi: mpc8xxx_spi.c: fix cs activate/deactivate 2020-09-22 11:05:32 -04:00
mscc_bb_spi.c spi: Drop duplicate dm.h inclusion 2020-08-03 22:19:54 -04:00
mt7621_spi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mtk_snfi_spi.c spi: spi-mem: allow specifying a command's extension 2021-04-14 13:52:43 -05:00
mvebu_a3700_spi.c spi: mvebu_a3700_spi: add support for cs-gpios 2020-10-14 07:55:56 +02:00
mxc_spi.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
mxs_spi.c drivers: avoid using aliases on drivers when OF_PLATDATA is enabled 2020-07-28 19:30:39 -06:00
nxp_fspi.c spi: nxp_fspi: Include device_compat.h 2020-10-16 09:44:27 -04:00
octeon_spi.c spi: octeon_spi: Use a fixed 100MHz input clock on Octeon TX2 2020-10-16 13:55:04 +02:00
omap3_spi.c spi: omap3_spi: Fix speed and mode selection 2021-03-16 13:04:01 -05:00
pic32_spi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pl022_spi.c
renesas_rpc_spi.c spi: renesas_rpc_spi: Add R-Car Gen3 and RZ/G2 fallback compatibility string 2020-10-20 12:56:46 +02:00
rk_spi.c drivers: spi: rk_spi: Add support for RK3328 2020-07-22 20:22:03 +08:00
rk_spi.h
sandbox_spi.c dm: acpi: Enhance acpi_get_name() 2020-07-17 14:32:24 +08:00
sh_qspi.c spi: Convert CONFIG_DM_SPI* to CONFIG_$(SPL_TPL_)DM_SPI* 2020-06-29 13:34:43 -04:00
soft_spi.c spi: add support for all spi modes with soft spi 2020-07-09 20:58:06 +05:30
spi-emul-uclass.c
spi-mem-nodm.c mtd: spi-nor-core: Rework hwcaps selection 2021-04-14 13:52:43 -05:00
spi-mem.c spi: spi-mem: Tell controller when device is ready for calibration 2021-04-14 13:52:44 -05:00
spi-qup.c spi: Add Qualcomm QUP SPI controller driver 2020-10-22 09:54:54 -04:00
spi-sifive.c mtd: spi-mem: Drop dm.h header file 2020-08-03 22:19:54 -04:00
spi-sunxi.c spi: sunxi: Fix not calling dev_err with a device 2020-09-30 08:53:45 -04:00
spi-uclass.c spi: migrate trace to dev and log macro in spi uclass 2020-12-18 16:16:36 +05:30
spi.c
stm32_qspi.c mtd: spi-mem: Drop dm.h header file 2020-08-03 22:19:54 -04:00
stm32_spi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tegra20_sflash.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
tegra20_slink.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
tegra114_spi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tegra210_qspi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tegra_spi.h
ti_qspi.c treewide: convert devfdt_get_addr() to dev_read_addr() 2020-07-25 14:46:57 -06:00
uniphier_spi.c treewide: convert devfdt_get_addr_ptr() to dev_read_addr_ptr() 2020-08-22 08:53:37 -06:00
xilinx_spi.c spi: xilinx_spi: remove unused local variable 2020-10-27 08:13:32 +01:00
zynq_qspi.c spi: zynq_qspi: Add function description 2020-10-27 08:13:33 +01:00
zynq_spi.c spi: zynq_spi: Use clk subsystem to get reference spi clk 2020-10-27 08:13:32 +01:00
zynqmp_gqspi.c spi: zynqmp_gqspi: Fix not calling dev_err with a device 2020-09-30 08:53:47 -04:00