All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ijc@hellion.org.uk>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] kirkwood_spi: correct access to irq_mask register
Date: Thu, 12 Jan 2012 16:56:30 +0000	[thread overview]
Message-ID: <1326387396.17210.276.camel@zakaz.uk.xensource.com> (raw)
In-Reply-To: <F766E4F80769BD478052FB6533FA745D1A2F15CB81@SC-VEXCH4.marvell.com>

On Thu, 2012-01-12 at 08:22 -0800, Prafulla Wadaskar wrote:
> 
> > -----Original Message-----
> > From: Ian Campbell [mailto:ijc at hellion.org.uk]
> > Sent: 12 January 2012 21:40
> > To: u-boot at lists.denx.de
> > Cc: Ian Campbell; Prafulla Wadaskar; Albert ARIBAUD
> > Subject: [PATCH] kirkwood_spi: correct access to irq_mask register
> > 
> > Problem appears to have been present since day one but masked because
> > alignment
> > aborts were not enabled. ca4b55800ed7 "arm, arm926ejs: always do cpu
> > critical
> > inits" turned on alignment aborts and uncovered this latent problem.
> > 
> > Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
> > Acked-By: Jason Cooper <u-boot@lakedaemon.net>
> > Tested-By: Holger Brunck <holger.brunck@keymile.com>
> > Cc: Prafulla Wadaskar <prafulla@marvell.com>
> > Cc: Albert ARIBAUD <albert.u.boot@aribaud.net>
> > ---
> > v2: Resending per patch submission guidelines.
> > ---
> >  drivers/spi/kirkwood_spi.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/drivers/spi/kirkwood_spi.c b/drivers/spi/kirkwood_spi.c
> > index dfe542d..db8ba8b 100644
> > --- a/drivers/spi/kirkwood_spi.c
> > +++ b/drivers/spi/kirkwood_spi.c
> > @@ -66,7 +66,7 @@ struct spi_slave *spi_setup_slave(unsigned int bus,
> > unsigned int cs,
> >  	debug("data = 0x%08x \n", data);
> > 
> >  	writel(KWSPI_SMEMRDIRQ, &spireg->irq_cause);
> > -	writel(KWSPI_IRQMASK, spireg->irq_mask);
> > +	writel(KWSPI_IRQMASK, &spireg->irq_mask);
> > 
> >  	/* program mpp registers to select  SPI_CSn */
> >  	if (cs) {
> 
> Hi Ian
> Thanks for the patch (resend :-) )
> Actually it was in my pipeline.
> I will pull this ASAP as well as other patches in my plate.

Thanks!

Ian.

> 
> Regards..
> Prafulla . ..
> 
> > --
> > 1.7.5.4
> 
> 

-- 
Ian Campbell
Current Noise: Monster Magnet - Cry

A kid'll eat the middle of an Oreo, eventually.

  reply	other threads:[~2012-01-12 16:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-08 15:30 [U-Boot] v2011.12 and later do not boot on dreamplug Ian Campbell
2012-01-08 15:35 ` Ian Campbell
2012-01-08 19:49 ` Ian Campbell
2012-01-08 22:54   ` Jason
2012-01-12  8:01     ` Ian Campbell
2012-01-12 15:11       ` Jason
2012-01-09 10:59   ` [U-Boot] Bug#655102: " Holger Brunck
2012-01-12 16:10   ` [U-Boot] [PATCH] kirkwood_spi: correct access to irq_mask register Ian Campbell
2012-01-12 16:22     ` Prafulla Wadaskar
2012-01-12 16:56       ` Ian Campbell [this message]
2012-01-27 16:34       ` Ian Campbell
2012-02-08  9:54         ` Prafulla Wadaskar
2012-02-09  6:30           ` Ian Campbell

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=1326387396.17210.276.camel@zakaz.uk.xensource.com \
    --to=ijc@hellion.org.uk \
    --cc=u-boot@lists.denx.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.