diff options
author | Gong Qianyu <Qianyu.Gong@freescale.com> | 2015-12-18 17:38:01 +0800 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2016-01-03 16:01:41 +0100 |
commit | aee3fddb677d86a131d9ac7bac2251f9a6ab2975 (patch) | |
tree | bc0a20c16b8674dbb2f187e2a3ef51c1943cd2f1 /arch/arm/mach-zynq | |
parent | 40f4839ce12adfc0223d6e3035cf9c3a4754a0ec (diff) | |
download | u-boot-imx-aee3fddb677d86a131d9ac7bac2251f9a6ab2975.zip u-boot-imx-aee3fddb677d86a131d9ac7bac2251f9a6ab2975.tar.gz u-boot-imx-aee3fddb677d86a131d9ac7bac2251f9a6ab2975.tar.bz2 |
i2c: mxc: add a condition in case the parameter is NULL
This could avoid executing the code that only applies to i.MX platforms.
The bus_i2c_init() is called before relocation and will assgin value
to a static variable. If U-Boot is then still running in a flash
device, it's theoretically not allowed to write data to flash without
an erasing operation. For i.MX platforms, the U-Boot is always running
in DDR.
Actually it causes asynchronous error when the ARM64 system error
report is enabled and the flash write protect is set.
Signed-off-by: Gong Qianyu <Qianyu.Gong@freescale.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'arch/arm/mach-zynq')
0 files changed, 0 insertions, 0 deletions