[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141029140251.142fed10@bbrezillon>
Date: Wed, 29 Oct 2014 14:02:51 +0100
From: Boris Brezillon <boris.brezillon@...e-electrons.com>
To: Brian Norris <computersforpeace@...il.com>
Cc: David Woodhouse <dwmw2@...radead.org>,
linux-mtd@...ts.infradead.org, Rob Herring <robh+dt@...nel.org>,
Pawel Moll <pawel.moll@....com>,
Mark Rutland <mark.rutland@....com>,
Ian Campbell <ijc+devicetree@...lion.org.uk>,
Kumar Gala <galak@...eaurora.org>, devicetree@...r.kernel.org,
linux-sunxi@...glegroups.com, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org,
Yassin Jaffer <yassinjaffer@...il.com>
Subject: Re: [PATCH v7 1/2] mtd: nand: add sunxi NAND flash controller
support
Hi Brian,
On Tue, 28 Oct 2014 11:13:11 -0700
Brian Norris <computersforpeace@...il.com> wrote:
> Hi Boris,
>
> On Tue, Oct 21, 2014 at 03:08:41PM +0200, Boris Brezillon wrote:
> > +static int sunxi_nand_hw_ecc_ctrl_init(struct mtd_info *mtd,
> > + struct nand_ecc_ctrl *ecc,
> > + struct device_node *np)
> > +{
> > + struct nand_ecclayout *layout;
> > + int i, j;
> > + int ret;
> > +
> > + ret = sunxi_nand_hw_common_ecc_ctrl_init(mtd, ecc, np);
> > + if (ret)
> > + return ret;
> > +
> > + ecc->read_page = sunxi_nfc_hw_ecc_read_page;
> > + ecc->write_page = sunxi_nfc_hw_ecc_write_page;
> > + layout = ecc->layout;
> > +
> > + for (i = 0; i < ecc->steps; i++) {
>
> Hmm, did you retest this since changing this to ecc->steps? I think this
> won't work, since ecc->steps is only initialized in nand_scan_tail(),
> which comes after this. I only recommended the change for the
> {read,write}_page() type of functions, not the initialization functions.
>
> [snip the rest]
>
> So I'd suggest the following additional patch, and otherwise, the series
> is fine with me. If you give your ack, I can just squash this in and
> apply it to my tree:
It works, you can squash those changes into my first patch.
Thanks,
Boris
--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists