From: Imre Deak <imre.deak@solidboot.com>
To: David Brownell <david-b@pacbell.net>
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [patch linux-omap-git 2/2] omap2_mcspi fixes + cleanups
Date: Thu, 24 May 2007 12:21:53 +0300 [thread overview]
Message-ID: <20070524092153.GA6276@bitbox> (raw)
In-Reply-To: <200705232046.12406.david-b@pacbell.net>
Hi,
a hint on one of the changes:
On Wed, May 23, 2007 at 08:46:12PM -0700, David Brownell wrote:
> McSPI functional updates:
>
> [...]
>
> - Remove bogus code which always dropped chipselect after the last RX_ONLY
> word (rather than leaving it enabled).
>
> [...]
>
> @@ -371,7 +376,11 @@ static void omap2_mcspi_txrx_pio(struct
> rx_reg = base + OMAP2_MCSPI_RX0;
> chstat_reg = base + OMAP2_MCSPI_CHSTAT0;
>
> - /* RX_ONLY mode needs dummy data in TX reg */
> + /* RX_ONLY mode needs dummy data in TX reg. If we were using
> + * TURBO mode (double buffered) we'd need to disable the channel
> + * before reading the penultimate word ... so TURBO wouldn't be an
> + * option except for the last transfer, else if cs_change is set.
> + */
> if (xfer->tx_buf == NULL)
> __raw_writel(0, tx_reg);
>
> @@ -401,8 +410,6 @@ static void omap2_mcspi_txrx_pio(struct
> dev_err(&spi->dev, "RXS timed out\n");
> goto out;
> }
> - if (c == 0 && tx == NULL)
> - omap2_mcspi_set_enable(spi, 0);
> *rx++ = __raw_readl(rx_reg);
> #ifdef VERBOSE
> dev_dbg(&spi->dev, "read-%d %02x\n",
This was added to avoid having an extra read cycle in RX_ONLY mode after
the last word read. Consecutive read cycles are always triggered by
reading rx_reg.
Not sure if the extra read cycle can cause a problem for the slave
device.
--Imre
next prev parent reply other threads:[~2007-05-24 9:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-24 3:46 [patch linux-omap-git 2/2] omap2_mcspi fixes + cleanups David Brownell
2007-05-24 9:21 ` Imre Deak [this message]
2007-05-24 16:34 ` David Brownell
2007-05-25 0:39 ` Tony Lindgren
2007-05-25 6:59 ` Imre Deak
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=20070524092153.GA6276@bitbox \
--to=imre.deak@solidboot.com \
--cc=david-b@pacbell.net \
--cc=linux-omap-open-source@linux.omap.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 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.