u-boot/drivers
Eugen Hristev 73c16692bc i2c: at91: fix crash when using 'i2c probe'
When issuing 'i2c probe', the driver was crashing, because at probe
there is a request with zero length buffer to write to i2c bus.
The xfer_msg function assumes the buffer is always there, and never
checks for the buffer length.

=> i2c dev 0
Setting bus to 0
=> i2c probe
Valid chip addresses:
data abort
pc : [<7ffa97dc>]          lr : [<7ffa96f8>]
reloc pc : [<66f277dc>]    lr : [<66f276f8>]
sp : 7fb7c110  ip : 7ff87a28     fp : 7ff99938
r10: 00000002  r9 : 7fb7dec0     r8 : 00000000
r7 : e181c600  r6 : 7fb88c20     r5 : 00000000  r4 : 7fb7c128
r3 : 00000000  r2 : 00000001     r1 : 00000000  r0 : 00000009
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32
Code: eb0092f4 e1a00005 e8bd81f0 e594300c (e5d33000)
Resetting CPU ...

Fixes: 8800e0fa20 ("i2c: atmel: add i2c driver")
Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
2021-02-21 06:05:08 +01:00
..
adc - sync amlogic GX & AXG DT to Linux 5.10 2021-01-13 07:32:02 -05:00
ata common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
axi
bios_emulator common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
block common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bootcount common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
bus bus: ti: am33xx: add pwm subsystem driver 2021-01-12 10:58:05 +05:30
button
cache common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
clk Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
core dm: Introduce DMA constraints into the core device model 2021-02-18 11:56:25 +01:00
cpu common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
crypto common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ddr common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
demo common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
dfu dfu: dfu_sf: use correct print code 2021-02-07 19:22:54 +01:00
dma dma: bcm6348: incorrect buffer allocation 2021-01-18 15:23:06 -05:00
fastboot fastboot: reinit partition after storing GPT or MBR 2021-02-07 19:22:55 +01:00
firmware firmware: smci: possible NULL dereference 2021-02-03 03:38:41 -07:00
fpga image: Adjust the workings of fit_check_format() 2021-02-15 22:31:52 -05:00
gpio Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
hwspinlock common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
i2c i2c: at91: fix crash when using 'i2c probe' 2021-02-21 06:05:08 +01:00
input common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
led
mailbox common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
memory memory: stm32-fmc2: migrate trace to dev and log macro 2021-01-13 09:52:58 +01:00
misc common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mmc mmc: rockchip_dw_mmc: use mmc_pwrseq instead of rockchip_mmc_pwrseq 2021-02-19 15:11:08 +08:00
mtd Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
mux
net drivers: net: Add Felix DSA switch driver 2021-02-16 12:38:36 -05:00
nvme Prepare v2021.01-rc5 2021-01-05 16:20:26 -05:00
pch
pci pci: pcie-brcmstb: Fix inbound window configurations 2021-02-18 11:56:25 +01:00
pci_endpoint common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
phy Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
pinctrl Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
power common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
pwm common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
qe common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ram common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
remoteproc Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
reset common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
rng config: Enable iProc RNG200 driver in RPi4 configs 2021-02-18 11:56:20 +01:00
rtc sandbox: keep time offset when resetting 2021-01-30 14:25:42 -07:00
scsi
serial Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
smem Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
soc
sound common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
spi Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
spmi common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
sysinfo
sysreset common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
tee drivers: tee: sandbox: add rpc test ta emulation 2021-02-16 11:48:20 -05:00
thermal common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
timer common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
tpm tpm: cr50: Rename driver to work with of-platdata 2021-01-30 14:25:41 -07:00
ufs
usb xhci: translate virtual addresses into the bus's address space 2021-02-18 11:56:26 +01:00
video video: arm: rpi: Add brcm,bcm2711-hdmi0 compatible 2021-02-18 11:59:08 +01:00
virtio
w1 w1: mxc: fix build 2021-01-23 11:30:31 +01:00
w1-eeprom
watchdog Merge branch '2021-02-02-drop-asm_global_data-when-unused' 2021-02-15 10:16:45 -05:00
xen common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
Kconfig
Makefile bootcount: allow to use this feature on TPL 2021-01-27 16:58:57 -05:00