u-boot/drivers/i2c
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
..
muxes common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
acpi_i2c.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
acpi_i2c.h dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
ast_i2c.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
ast_i2c.h i2c: ast_i2c: Update to use standard enums for speed 2020-01-27 07:22:41 +01:00
at91_i2c.c i2c: at91: fix crash when using 'i2c probe' 2021-02-21 06:05:08 +01:00
at91_i2c.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
cros_ec_ldo.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
cros_ec_tunnel.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
davinci_i2c.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
davinci_i2c.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
designware_i2c.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
designware_i2c.h dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
designware_i2c_pci.c i2c: desigware: Add an alias for Intel Apollo Lake 2021-01-30 14:25:41 -07:00
exynos_hs_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
fsl_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
i2c-cdns.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
i2c-cortina.c dm: treewide: Rename ofdata_to_platdata() to of_to_plat() 2020-12-13 16:51:09 -07:00
i2c-cortina.h i2c: i2c-cortina: added CAxxxx I2C support 2020-07-09 06:02:44 +02:00
i2c-emul-uclass.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
i2c-gpio.c i2c: i2c-gpio: Fix GPIO output 2021-02-21 06:04:49 +01:00
i2c-uclass.c dm: core: Use dev_has_ofnode() instead of dev_of_valid() 2021-01-05 12:24:41 -07:00
i2c-uniphier-f.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
i2c-uniphier.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
i2c-versatile.c i2c: Update for new sequence numbers 2020-12-18 20:32:21 -07:00
i2c_core.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ihs_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
imx_lpi2c.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
intel_i2c.c i2c: Update for new sequence numbers 2020-12-18 20:32:21 -07:00
iproc_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
iproc_i2c.h drivers: i2c: add brcm iproc I2C driver support 2020-04-20 06:52:28 +02:00
Kconfig arm: Remove ls2080a_simu board 2021-02-15 10:11:38 -05:00
kona_i2c.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
lpc32xx_i2c.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
Makefile sandbox: Disable I2C emulators in SPL 2021-01-30 14:25:41 -07:00
meson_i2c.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mv_i2c.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
mv_i2c.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mvtwsi.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mxc_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
nx_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ocores_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
octeon_i2c.c octeon: Don't attempt to set the sequence number 2020-12-18 20:32:21 -07:00
omap24xx_i2c.c dm: treewide: Rename ..._platdata variables to just ..._plat 2020-12-13 16:51:09 -07:00
omap24xx_i2c.h i2c: omap: Update to use standard enums for speed 2020-01-27 07:23:26 +01:00
rcar_i2c.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
rcar_iic.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
rk_i2c.c dm: Rename U_BOOT_DRIVER_ALIAS to DM_DRIVER_ALIAS 2021-01-05 12:26:35 -07:00
s3c24x0_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
s3c24x0_i2c.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox_i2c.c sandbox: i2c: Move priv into a header file 2021-01-05 12:24:41 -07:00
sh_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
soft_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
stm32f7_i2c.c i2c: stm32f7_i2c: migrate trace to dev and log macro 2021-01-13 09:52:58 +01:00
tegra186_bpmp_i2c.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
tegra_i2c.c dm: Avoid accessing seq directly 2020-12-18 20:32:21 -07:00
xilinx_xiic.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00