From: sbabic at denx.de Date: Wed, 13 Mar 2019 08:28:25 +0000 (UTC) Subject: [U-Boot] [PATCH 33/34] MTD: mxs_nand_spl: Redo the way nand_init initializes Message-ID: <20190313082825.AC889C21E52@lists.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 > Currently the spl system calls nand_init which does nothing. > It isn't until an attempt to load from NAND that it gets initialized. > Subsequent attempts to load just skip the initialization because > NAND is already initialized. > This moves the contents of mxs_nand_init to nand_init. In the event > of an error, it clears the number of nand chips found. Any > attempts to use nand will check if there are nand chips available > instead of actually doing the initialization at that time. If there > are none, it will return an error to the higher level calls. > Signed-off-by: Adam Ford Applied to u-boot-imx, master, 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 =====================================================================