From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Wed, 5 Aug 2015 18:57:46 -0500 Subject: [U-Boot] [PATCH v3 08/16] tegra: nand: fix read_byte required for proper onfi detection In-Reply-To: References: Message-ID: <1438819066.2097.111.camel@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, 2015-08-06 at 00:47 +0200, Marcel Ziswiler wrote: > From: Marcel Ziswiler > > Fix PIO read_byte() implementation not only used for the legacy READ ID > but also the PARAM command required for proper ONFI detection. > > This fix is inspired by Lucas Stach's Linux Tegra NAND driver of late > (not mainline yet but getting there soon I hope). > > I vaguely remember that those commands are special on 16-bit bus NAND > (e.g. always return 8-bit data regardless) and later Linux MTD fixed/ > changed the way this is handled which in turn broke once U-Boot pulled > that in. Basically instead of doing PIO read regular DMA block read is > now used which this patch actually fixes. > > Signed-off-by: Marcel Ziswiler > --- > Chances in v3: > - add more detailed commit message as suggested by Scott > - drop unrelated subpage writes disabling to be done as part of a > separate patch as suggested by Scott > > drivers/mtd/nand/tegra_nand.c | 38 +++++++------------------------------- > 1 file changed, 7 insertions(+), 31 deletions(-) Acked-by: Scott Wood -Scott