From: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
To: Ned Forrester <nforrester-/d+BM93fTQY@public.gmane.org>
Cc: spi-devel
<spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
"J. Scott Merritt" <merrij3-IL7dBOYR4Vg@public.gmane.org>,
Stephen Street
<stephen-nl6u4wocdmy51APUEpUfAkEOCMrvLtNR@public.gmane.org>
Subject: Re: [Patch 1/1] spi: Fix pxa2xx_spi.c chip select sequence error
Date: Wed, 20 Feb 2008 14:45:58 -0800 [thread overview]
Message-ID: <200802201445.58772.david-b@pacbell.net> (raw)
In-Reply-To: <47B90BD7.4000906-/d+BM93fTQY@public.gmane.org>
On Sunday 17 February 2008, Ned Forrester wrote:
> +
> + /* FIXME, need to handle cs polarity,
> + * this driver uses struct pxa2xx_spi_chip.cs_control to
> + * specify a CS handling function, and it ignores most
> + * struct spi_device.mode[s], including SPI_CS_HIGH */
> + drv_data->cs_control(PXA2XX_CS_ASSERT);
> +
> + /* after chip select, release the data by enabling service
> + * requests and interrupts, without changing any mode bits */
> + write_SSCR1(cr1, reg);
This code is duplicated below ...
> } else {
> if (drv_data->ssp_type != PXA25x_SSP)
> write_SSTO(chip->timeout, reg);
... right here:
> +
> + /* FIXME, need to handle cs polarity,
> + * this driver uses struct pxa2xx_spi_chip.cs_control to
> + * specify a CS handling function, and it ignores most
> + * struct spi_device.mode[s], including SPI_CS_HIGH */
> + drv_data->cs_control(PXA2XX_CS_ASSERT);
> +
> + /* after chip select, release the data by enabling service
> + * requests and interrupts, without changing any mode bits */
> write_SSCR1(cr1, reg);
So it properly belongs on the other side of this bracket:
> }
If you fix that, I'll forward this for a 2.6.25 merge.
- Dave
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
next prev parent reply other threads:[~2008-02-20 22:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-18 4:38 [Patch 1/1] spi: Fix pxa2xx_spi.c chip select sequence error Ned Forrester
[not found] ` <47B90BD7.4000906-/d+BM93fTQY@public.gmane.org>
2008-02-20 22:45 ` David Brownell [this message]
[not found] ` <200802201445.58772.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-02-20 23:06 ` Ned Forrester
-- strict thread matches above, loose matches on Subject: below --
2008-02-20 23:47 Ned Forrester
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=200802201445.58772.david-b@pacbell.net \
--to=david-b-ybekhbn/0ldr7s880joybq@public.gmane.org \
--cc=merrij3-IL7dBOYR4Vg@public.gmane.org \
--cc=nforrester-/d+BM93fTQY@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=stephen-nl6u4wocdmy51APUEpUfAkEOCMrvLtNR@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.