From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 27 Jan 2016 04:10:20 +0100 Subject: [U-Boot] [patch resend] nand: mxs: fix error handling for mxs_nand_init In-Reply-To: <1453862282-10019-1-git-send-email-van.freenix@gmail.com> References: <1453862282-10019-1-git-send-email-van.freenix@gmail.com> Message-ID: <201601270410.20459.marex@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 Wednesday, January 27, 2016 at 03:38:02 AM, Peng Fan wrote: > Fix error handling for mxs_nand_init. > > The original error handling is wrong for err2 and err1. > Should first free desc[x], then free desc. > > This patch also correctly handle err3, should use > MXS_DMA_CHANNEL_AHB_APBH_GPMI0 as the check point. > > Cc: Stefano Babic > CC: Fabio Estevam > Cc: Scott Wood > Cc: Marek Vasut > Signed-off-by: Peng Fan It looks fine, Reviewed-by: Marek Vasut Why the resend btw ? Best regards, Marek Vasut