2017-06-01 13:12:36

by Pavel Machek

[permalink] [raw]
Subject: Re: [PATCHv2] mtd: nand: fsl_ifc: fix handing of bit flips in erased pages

On Thu 2017-06-01 01:09:17, Darwin Dingel wrote:
> Hi Pavel,
>
> Just a minor thing. Sorry about the late comment.
>
> On 01/06/17 08:59, Pavel Machek wrote:
> > +
> > + res = check_erased_page(chip, buf);
> > + return res;
> > + }
>
> Can we just remove 'res' and change this line to:
> return check_erased_page(chip, buf);

Well... I originally had a printk there, and yes, it can be
simplified. I can roll v3, if required, but I'd leave it as is -- it
is still convenient place to add debugging to.

Best regards,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


Attachments:
(No filename) (674.00 B)
signature.asc (181.00 B)
Digital signature
Download all attachments

2017-06-01 13:21:28

by Boris Brezillon

[permalink] [raw]
Subject: Re: [PATCHv2] mtd: nand: fsl_ifc: fix handing of bit flips in erased pages

On Thu, 1 Jun 2017 15:12:32 +0200
Pavel Machek <[email protected]> wrote:

> On Thu 2017-06-01 01:09:17, Darwin Dingel wrote:
> > Hi Pavel,
> >
> > Just a minor thing. Sorry about the late comment.
> >
> > On 01/06/17 08:59, Pavel Machek wrote:
> > > +
> > > + res = check_erased_page(chip, buf);
> > > + return res;
> > > + }
> >
> > Can we just remove 'res' and change this line to:
> > return check_erased_page(chip, buf);
>
> Well... I originally had a printk there, and yes, it can be
> simplified. I can roll v3, if required, but I'd leave it as is -- it
> is still convenient place to add debugging to.

I can fix it when applying, no need to send a new version.

Regards,

Boris

2017-06-07 07:32:06

by Boris Brezillon

[permalink] [raw]
Subject: Re: [PATCHv2] mtd: nand: fsl_ifc: fix handing of bit flips in erased pages

On Thu, 1 Jun 2017 15:21:15 +0200
Boris Brezillon <[email protected]> wrote:

> On Thu, 1 Jun 2017 15:12:32 +0200
> Pavel Machek <[email protected]> wrote:
>
> > On Thu 2017-06-01 01:09:17, Darwin Dingel wrote:
> > > Hi Pavel,
> > >
> > > Just a minor thing. Sorry about the late comment.
> > >
> > > On 01/06/17 08:59, Pavel Machek wrote:
> > > > +
> > > > + res = check_erased_page(chip, buf);
> > > > + return res;
> > > > + }
> > >
> > > Can we just remove 'res' and change this line to:
> > > return check_erased_page(chip, buf);
> >
> > Well... I originally had a printk there, and yes, it can be
> > simplified. I can roll v3, if required, but I'd leave it as is -- it
> > is still convenient place to add debugging to.
>
> I can fix it when applying, no need to send a new version.

Applied.

Thanks,

Boris