From: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
To: Andrew Morton <akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
Cc: khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org,
spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
tero.kristo-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org
Subject: Re: [patch 2.6.31-rc7 2/3] spi: McSPI saves CHCONFx too
Date: Wed, 2 Sep 2009 08:53:16 -0700 [thread overview]
Message-ID: <200909020853.17212.david-b@pacbell.net> (raw)
In-Reply-To: <20090901135726.96173f7e.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
On Tuesday 01 September 2009, Andrew Morton wrote:
> On Thu, 27 Aug 2009 20:21:11 -0700
> David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org> wrote:
>
> > From: Tero Kristo <tero.kristo-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
> >
> > Previous restore was lazy and only restored CHxCONF when it was needed by a
> > specific chip select. This could cause occasional errors on an SPI bus where
> > multiple chip selects are in use.
> >
> > Signed-off-by: Tero Kristo <tero.kristo-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org>
> > Signed-off-by: Kevin Hilman <khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org>
> > Signed-off-by: David Brownell <dbrownell-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
> > ---
> > drivers/spi/omap2_mcspi.c | 16 ++++++++++++++++
> > 1 file changed, 16 insertions(+)
> >
> > --- a/drivers/spi/omap2_mcspi.c
> > +++ b/drivers/spi/omap2_mcspi.c
> > @@ -134,6 +134,7 @@ struct omap2_mcspi_cs {
> > void __iomem *base;
> > unsigned long phys;
> > int word_len;
> > + struct list_head node;
> > /* Context save and restore shadow register */
> > u32 chconf0;
> > };
> > @@ -145,6 +146,7 @@ struct omap2_mcspi_regs {
> > u32 sysconfig;
> > u32 modulctrl;
> > u32 wakeupenable;
> > + struct list_head cs;
> > };
>
> Which locking protects these new lists?
One's the head, one's the instance ... the list is used in
activation and deactivation paths, so the same locks which
already protect those paths.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
next prev parent reply other threads:[~2009-09-02 15:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-28 3:21 [patch 2.6.31-rc7 2/3] spi: McSPI saves CHCONFx too David Brownell
[not found] ` <200908272021.12070.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2009-09-01 20:57 ` Andrew Morton
[not found] ` <20090901135726.96173f7e.akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
2009-09-02 15:53 ` David Brownell [this message]
[not found] ` <200909020853.17212.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2009-09-02 16:53 ` Andrew Morton
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=200909020853.17212.david-b@pacbell.net \
--to=david-b-ybekhbn/0ldr7s880joybq@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=khilman-1D3HCaltpLuhEniVeURVKkEOCMrvLtNR@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=tero.kristo-xNZwKgViW5gAvxtiuMwx3w@public.gmane.org \
/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.