From: Sascha Hauer <s.hauer@pengutronix.de>
To: Robert Jarzmik <robert.jarzmik@free.fr>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] mtd: nand: fix marvell nand driver
Date: Mon, 19 Jan 2015 09:02:51 +0100 [thread overview]
Message-ID: <20150119080251.GR18220@pengutronix.de> (raw)
In-Reply-To: <1421506801-1506-1-git-send-email-robert.jarzmik@free.fr>
On Sat, Jan 17, 2015 at 04:00:01PM +0100, Robert Jarzmik wrote:
> This fixes 4 small bugs :
>
> - too small timings
> The calculated timings should be rounded up, ie. a minimum timing of
> 3.2 nand clock cycles should be programmed as a 4 cycles timing, and
> not as 3 nand clock cycles
>
> - the interrupts should be masked all the time
> Writing 0 to NDCR unmasked interrupts, which is unnecessary and fools
> the linux kernel pxa3xx driver which is not yet hardened enough.
>
> - the command should only be launched once the controller is ready
> This fixes transient bugs where a command is not actually
> launched. The WRCMDREQ bit is asserted after setting NDCR_ND_RUN bit
> once the NFC is ready to acquire a command.
>
> - column calculation
> Column number was divided by 2 in 16 bits flash devices. Even if this
> is correct for NAND array addressing, it is incorrect for READID, and
> prevents an ONFI scan identification (as address is 0x10 instead of
> the 0x20 required by ONFI).
>
> All these bugs except the second are drained from the linux kernel driver.
>
> Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
> ---
> drivers/mtd/nand/nand_mrvl_nfc.c | 57 ++++++++++++++++++++++++++--------------
> 1 file changed, 37 insertions(+), 20 deletions(-)
Squashed into the original commit.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2015-01-19 8:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-17 15:00 Robert Jarzmik
2015-01-19 8:02 ` Sascha Hauer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150119080251.GR18220@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=robert.jarzmik@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox