u-boot/drivers
Marek Vasut 19e189b1de mtd: spi-nor: Remove recently added nor->addr_width == 3 test
Remove undocumented nor->addr_width == 3 test. This was added in commit
5d40b3d384 ("mtd: spi-nor: Add parallel and stacked memories support")
without any explanation in the commit message. Remove it.

This also has a bad side-effect which breaks READ operation of every SPI NOR
which does not use addr_width == 3, e.g. s25fs512s does not work at all. This
is because if addr_width != 3, rem_bank_len is always 0, and if rem_bank_len
is 0, then read_len is 0 and if read_len is 0, then the spi_nor_read() returns
-EIO.

Basic reproducer is as follows:
"
=> sf probe ; sf read 0x50000000 0 0x10000
SF: Detected s25fs512s with page size 256 Bytes, erase size 256 KiB, total 64 MiB
device 0 offset 0x0, size 0x10000
SF: 65536 bytes @ 0x0 Read: ERROR -5
"

Fixes: 5d40b3d384 ("mtd: spi-nor: Add parallel and stacked memories support")
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
2024-10-31 10:49:47 -06:00
..
adc adc: rockchip-saradc: Use vdd-microvolts prop as fallback 2024-10-26 10:46:48 +08:00
ata global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
axi Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
bios_emulator drivers: bios_emulator: Remove duplicate newlines 2024-07-22 10:53:04 -06:00
block block: make blk_create_device() static 2024-10-24 11:20:58 -06:00
bootcount Prepare v2024.10-rc5 2024-09-16 14:48:13 -06:00
bus global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
button Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
cache global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
clk Merge tag 'u-boot-rockchip-20241026' of https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip 2024-10-26 08:10:31 -06:00
core Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
cpu cpu: imx8_cpu: Avoid revision to corrupt device tree 2024-10-18 09:41:09 -03:00
crypto drivers/crypto: aspeed: Add Caliptra ECDSA384 support 2024-10-21 17:52:52 -06:00
ddr imx: Support i.MX93 9X9 QSB board 2024-10-25 09:07:16 -03:00
demo Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
dfu dfu: sf: rely on DT for spi speed and mode 2024-10-24 09:42:00 +02:00
dma dma: ti: k3-udma: Move DMA channel[0] allocation to probe and add udma_remove() 2024-10-17 18:21:19 -06:00
extcon Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
fastboot net: introduce alternative implementation as net/lwip/ 2024-10-16 11:11:56 -06:00
firmware global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
fpga drivers: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD 2024-10-11 11:44:48 -06:00
fuzz Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
fwu-mdata Merge patch series "FWU: Add support for FWU metadata version 2" 2024-05-24 13:42:07 -06:00
gpio mcp230xx_gpio.c: Add a missing include file. 2024-10-24 11:19:31 -06:00
hwspinlock Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
i2c i2c: mxc_i2c: Convert to use livetree API for fdt access 2024-10-25 09:07:39 -03:00
input global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
iommu iommu: qcom-smmu: add sc7280-smmu-500 compatible 2024-09-06 10:47:47 +02:00
led led: include cyclic.h in led_sw_blink.c 2024-10-23 06:52:38 +02:00
mailbox global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
memory memory: ti-gpmc: use printf to dump settings/timings 2024-06-07 14:07:23 -06:00
mfd mfd: syscon: atmel-smc: Add new helpers to ease SMC regs manipulation 2022-12-08 18:06:27 +02:00
misc Merge patch series "Add AVS support for J721S2" 2024-10-21 17:52:40 -06:00
mmc mmc: fsl_esdhc: Convert to use livetree API for fdt access 2024-10-25 09:07:43 -03:00
mtd mtd: spi-nor: Remove recently added nor->addr_width == 3 test 2024-10-31 10:49:47 -06:00
mux Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
net net: lwip: add DHCP support and dhcp commmand 2024-10-16 11:11:56 -06:00
nvme global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
pch Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
pci pci: Add TI K3 Cadence PCIe Controller 2024-10-21 17:51:51 -06:00
pci_endpoint Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
phy Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
pinctrl pinctrl: imx: Convert to use livetree API for fdt access 2024-10-25 09:07:30 -03:00
power imx: power-domain: Convert to use livetree API for fdt access 2024-10-25 09:07:35 -03:00
pwm pwm: imx: Don't drop the enable bit once set 2024-09-11 17:02:36 -03:00
qe qe: Add <asm/ppc.h> on PowerPC 2023-11-07 14:50:51 -05:00
ram Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
reboot-mode Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
remoteproc global: Rename SPL_ to XPL_ 2024-10-11 11:44:48 -06:00
reset global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
rng global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
rtc Merge patch series "Tidy up use of 'SPL' and CONFIG_SPL_BUILD" 2024-10-11 12:23:25 -06:00
scsi global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
serial Merge patch series "some serial rx buffer patches" 2024-10-16 15:54:38 -06:00
sm Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
smem Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
soc soc: qcom: rpmh-rsc: add back __tcs_set_trigger() for SM8550/SM8650 2024-09-06 10:47:46 +02:00
sound drivers: sound: Remove duplicate newlines 2024-07-22 10:53:06 -06:00
spi spi: zynq_qspi: Add missing prototype for update_stripe 2024-10-25 16:19:55 +02:00
spmi spmi: msm: correct max_channels for v5 controllers 2024-07-05 12:07:37 +02:00
sysinfo Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
sysreset global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
tee tee: sandbox: check for buffer size 2024-04-26 08:28:35 +03:00
thermal drivers: thermal: Remove duplicate newlines 2024-07-22 10:53:06 -06:00
timer x86: Sync up tsc_timer with Linux 2024-10-18 14:10:21 -06:00
tpm global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00
ufs ufs: Add Support for Qualcomm UFS HC driver 2024-10-14 08:56:03 +02:00
usb Merge tag 'u-boot-dfu-20241017' of https://source.denx.de/u-boot/custodians/u-boot-dfu 2024-10-17 08:34:01 -06:00
video video: simplefb: Fix build warn with CONFIG_FDT_64BIT=n 2024-10-22 20:56:28 +02:00
virtio virtio: blk: introduce virtio-block erase support 2024-10-18 14:10:21 -06:00
w1 Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
w1-eeprom Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
watchdog watchdog: introduce separate SPL symbol for WDT_GPIO 2024-10-23 07:02:25 +02:00
xen Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Kconfig drivers: introduce Secure Monitor uclass 2023-10-15 12:23:48 +02:00
Makefile global: Rename SPL_TPL_ to PHASE_ 2024-10-11 11:44:48 -06:00