From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefano Babic Date: Sun, 3 Jan 2016 16:02:18 +0100 Subject: [U-Boot] [Patch V3] i2c: mxc: add a condition in case the parameter is NULL In-Reply-To: <1450431481-45235-1-git-send-email-Qianyu.Gong@freescale.com> References: <1450431481-45235-1-git-send-email-Qianyu.Gong@freescale.com> Message-ID: <568937FA.9050803@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 18/12/2015 10:38, Gong Qianyu wrote: > 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 > --- Applied to u-boot-imx, thanks! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================