From: Scott Wood <scottwood@freescale.com>
To: Mike Hench <mhench@engagenet.com>
Cc: linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org
Subject: Re: [PATCH] MPC8313 NAND fixes
Date: Wed, 19 Mar 2008 12:02:10 -0500 [thread overview]
Message-ID: <20080319170210.GD7962@ld0162-tx32.am.freescale.net> (raw)
In-Reply-To: <6629C06B144F5C4098DFF95C4FF9DAF702BA1D02@mailsrv.engagenet.com>
On Wed, Mar 19, 2008 at 10:28:19AM -0500, Mike Hench wrote:
>
> From: Mike Hench
> Sent: Wednesday, March 19, 2008 10:22 AM
> To: 'mhench@wi.rr.com'
> Subject: [PATCH] MPC813 NAND fixes
This patch is whitespace-mangled. Also, please don't post HTML.
> - unsigned int irq_status; /* status read from LTESR by irq
> handler */
>
> + volatile unsigned int irq_status; /* status read from LTESR
> by irq handler */
This change is not needed; both out_be32() and wait_event() act as
optimization barriers.
> @@ -379,13 +379,13 @@ static int fsl_elbc_run_command(struct m
>
> in_be32(&lbc->fbar), in_be32(&lbc->fpar),
>
> in_be32(&lbc->fbcr), priv->bank);
>
>
>
> + ctrl->irq_status = 0;
>
> /* execute special operation */
>
> out_be32(&lbc->lsor, priv->bank);
>
>
>
> /* wait for FCM complete flag or timeout */
>
> - ctrl->irq_status = 0;
ACK this change.
> wait_event_timeout(ctrl->irq_wait, ctrl->irq_status,
>
> - FCM_TIMEOUT_MSECS * HZ/1000);
>
> + (FCM_TIMEOUT_MSECS * HZ)/1000);
This change is a no-op. Multiplication and division are evaluated at the
same precedence, left-to-right.
> if (mtd->writesize == 512) {
>
> priv->page_size = 0;
>
> - clrbits32(&lbc->bank[priv->bank].or,
> ~OR_FCM_PGS);
>
> + clrbits32(&lbc->bank[priv->bank].or, OR_FCM_PGS);
D'oh! Thanks for finding this.
ACK this change.
> - /* The default u-boot configuration on MPC8313ERDB causes
> errors;
>
> - * more delay is needed. This should be safe for other
> boards
>
> - * as well.
>
> - */
>
> - setbits32(&lbc->bank[priv->bank].or, 0x70);
And this one.
-Scott
prev parent reply other threads:[~2008-03-19 17:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-19 15:28 [PATCH] MPC813 NAND fixes Mike Hench
2008-03-19 17:02 ` Scott Wood [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=20080319170210.GD7962@ld0162-tx32.am.freescale.net \
--to=scottwood@freescale.com \
--cc=linux-mtd@lists.infradead.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=mhench@engagenet.com \
/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