u-boot-brain/drivers
Tudor Ambarus 790c1699b2 spi: spi-mem: Add SPI_MEM_NO_DATA to the spi_mem_data_dir enum
Commit: 0ebb261a0b2d ("spi: spi-mem: Add SPI_MEM_NO_DATA to the spi_mem_data_dir enum")
in linux.

When defining spi_mem_op templates we don't necessarily know the size
that will be passed when the template is actually used, and basing the
supports_op() check on op->data.nbytes to know whether there will be
data transferred for a specific operation is not possible.

Add SPI_MEM_NO_DATA to the spi_mem_data_dir enum so that we can base
our checks on op->data.dir instead of op->data.nbytes.

This also fixes a bug identified with the atmel-quaspi driver.
The spi-nor core, when erasing sectors, fills the spi_mem_op template
using SPI_MEM_OP_NO_DATA, which initializes all the data members with
value zero. This is wrong because data.dir is treated as SPI_MEM_DATA_IN,
which translates in our driver to read accesses for erases (RICR), while
the controller expects write accesses (WICR).

Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
2020-04-29 01:44:35 +05:30
..
adc dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
ata Revert "ata: fsl_ahci: Add sata DM support for Freescale powerpc socs" 2020-02-25 10:16:05 +05:30
axi dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
bios_emulator bios_emulator: remove stray break 2019-08-09 22:24:02 +08:00
block block: ide: use definitions from include/libata.h 2020-04-17 12:32:36 -04:00
board drivers: board: Add get_fit_loadable() 2020-01-07 11:13:24 -05:00
bootcount bootcount_ext: Add flag to enable/disable bootcount 2020-04-24 10:10:00 -04:00
cache cache: l2x0: Fix write to incorrect shared-override bit 2020-04-24 16:40:09 -04:00
clk - fix sd-emmc controller A init on G12A/G12B/SM1 SoCs 2020-04-28 10:09:16 -04:00
core dm: core: add ofnode and dev function to iterate on node property 2020-04-16 23:06:54 -04:00
cpu cpu: Support querying the address width 2020-04-16 14:36:28 +08:00
crypto drivers: crypto: rsa_mod_exp: avoid DM_FLAG_PRE_RELOC 2020-04-16 08:12:32 +02:00
ddr arm: mvebu: drivers/ddr: remove redundant assignment 2020-04-14 13:16:42 +02:00
demo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfu dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
dma dma: ti: k3-udma: Mark flow id as valid parameter for RX channel config 2020-03-03 13:08:14 +05:30
fastboot fastboot: mt85xx: add command to flash/erase emmc hwpart 2020-01-25 12:04:36 -05:00
firmware Xilinx changes for v2020.07 2020-04-07 17:13:35 -04:00
fpga dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
gpio test: pinmux: add pincontrol-gpio for pin configuration 2020-04-16 23:06:54 -04:00
hwspinlock dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
i2c Merge tag 'for-v2020.07' of https://gitlab.denx.de/u-boot/custodians/u-boot-i2c 2020-04-21 08:28:13 -04:00
input input: Move input.o to be built only in some cases 2019-11-19 17:43:04 -05:00
led dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mailbox dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc sandbox: p2sb: Silence compiler warning 2020-04-16 08:07:57 -06:00
mmc dm: mmc: Update mmc_get_mmc_dev() to use const * 2020-04-24 16:40:09 -04:00
mtd mtd: nand: spi: add support for Toshiba TC58CVG2S0HRAIJ 2020-04-29 01:44:35 +05:30
net eth: mtk-eth: add mt7531 switch support in mediatek eth driver 2020-04-24 10:09:59 -04:00
nvme dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pch x86: Allow removal of standard PCH drivers 2019-12-15 11:44:16 +08:00
pci x86: Move acpi_s3.h to include/acpi/ 2020-04-16 14:36:28 +08:00
pci_endpoint pci_ep: Fix Coverity warning 2019-08-07 15:31:04 -04:00
phy phy: meson: add GXBB PHY driver 2020-04-28 10:23:10 +02:00
pinctrl dm: pinctrl: Use right device pointer for configuring pinctrl 2020-04-23 08:25:37 -04:00
power pmic: pfuze100: Change error message level to debug 2020-04-18 12:59:37 +02:00
pwm mediatek: pwm: add pwm driver for MediaTek SoCs 2020-04-17 12:32:36 -04:00
qe crc32: Use the crc.h header for crc functions 2019-12-02 18:23:08 -05:00
ram configs: stm32mp1: replace STM32MP1_TRUSTED by TFABOOT 2020-04-15 09:08:37 +02:00
remoteproc remoteproc: k3-r5: Fix rproc init failure on Split-mode _only_ devices 2020-03-16 12:33:19 +05:30
reset sandbox conversion to SDL2 2020-02-11 10:58:41 -05:00
rng drivers/rng: add Amlogic hardware RNG driver 2020-03-11 08:29:58 +01:00
rtc rtc: ds1374: typo Watchdog 2020-04-24 16:40:09 -04:00
scsi scsi: Add dma direction member to command structure 2019-10-23 20:47:12 -04:00
serial arm: dts: sync dts for Action Semi S900 2020-04-24 16:40:09 -04:00
smem dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
soc dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
sound dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
spi spi: spi-mem: Add SPI_MEM_NO_DATA to the spi_mem_data_dir enum 2020-04-29 01:44:35 +05:30
spmi dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sysreset sysreset: add reset controller based reboot driver 2020-04-27 20:29:33 +02:00
tee tee: optee: use dev_info in print_os_revision 2020-04-17 12:32:36 -04:00
thermal thermal: ti-bandgap: Fix adc value datatype 2020-01-20 10:10:28 +05:30
timer timer: sti: use clk API to get timer clock rate 2020-03-24 14:23:35 +01:00
tpm tpm: Don't cleanup unless an error happens 2020-04-16 14:36:28 +08:00
ufs dma-mapping: move dma_map_(un)single() to <linux/dma-mapping.h> 2020-02-19 21:27:30 +08:00
usb - fix sd-emmc controller A init on G12A/G12B/SM1 SoCs 2020-04-28 10:09:16 -04:00
video video: simple_panel: add boe,nv140fhmn49 display 2020-04-26 23:04:49 +02:00
virtio dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
w1 dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
w1-eeprom dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
watchdog watchdog: mpc8xx_wdt: Allow selection of watchdog mode through environment 2020-04-24 10:09:59 -04:00
Kconfig dm: rng: Add random number generator(rng) uclass 2020-01-07 18:08:21 +01:00
Makefile drivers: Descend to drivers/soc unconditionally 2020-03-03 13:08:13 +05:30