From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Schwierzeck Date: Fri, 18 Oct 2019 13:36:53 +0200 Subject: [U-Boot] [PATCH] drivers: nand: brcmnand: fix nand_chip ecc layout structure In-Reply-To: <20190904175114.37018-1-william.zhang@broadcom.com> References: <20190904175114.37018-1-william.zhang@broadcom.com> Message-ID: <9160c138-26d1-363d-1fda-db713210411a@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am 04.09.19 um 19:51 schrieb William Zhang: > The current brcmnand driver is based on 4.18 linux kernel which uses > mtd_set_ooblayout to set ecc layout. But nand base code in u-boot is from > old kernel which does not use this new API and expect nand_chip.ecc.layout > structure to be set. This cause nand_scan_tail function running into a bug > check if the device has a different oob size than the default ones. > > This patch ports the brcmstb_choose_ecc_layout function from kernel 4.6.7 > that supports the ecc layout struture and replaces the mtd_set_ooblayout > method > > Signed-off-by: William Zhang > --- > drivers/mtd/nand/raw/brcmnand/brcmnand.c | 260 +++++++++-------------- > 1 file changed, 104 insertions(+), 156 deletions(-) > applied to u-boot-mips, thanks. -- - Daniel