[U-Boot] [PATCH] nand: Fix set_dev checks for no device

Tony Lindgren tony at atomide.com
Wed Aug 24 18:47:16 CEST 2016


* Scott Wood <oss at buserror.net> [160823 17:05]:
> On Tue, 2016-08-23 at 15:21 -0700, Tony Lindgren wrote:
> > OK seems to work. Updated patch below.
> > 
> > Regards,
> > 
> > Tony
> > 8< -----------------
> > From: Tony Lindgren <tony at atomide.com>
> > Date: Tue, 23 Aug 2016 15:14:26 -0700
> > Subject: [PATCHv2] nand: Fix set_dev checks for no device
> 
> Could you please send a standalone patch (no 8< ------) generated by git, or
> at least that has the "diff" line?  These aren't even showing up in patchwork
> as is.

Oh OK sure.

> > If we do nand device 0 command in u-boot on a device that has NAND support
> > enabled but no NAND chip, we can get data abort at least on omaps.
> > 
> > Fix the issue by replaceing the check with nand_info[dev] as
> > suggested by Scott Wood.
> 
> "replacing the name check with..."

Thanks for spotting that, just sent v3 of the patch.

Tony


More information about the U-Boot mailing list