All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Brownell <david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
To: Baruch Siach <baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org>
Cc: "spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org"
	<spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	Vernon Sauder
	<vernoninhand-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Linus Torvalds
	<torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
	Andrew Morton
	<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>
Subject: Re: [patch 2.6.28-rc9] spi: spi_write_then_read() regression fix
Date: Wed, 24 Dec 2008 11:43:04 -0800	[thread overview]
Message-ID: <200812241143.04706.david-b@pacbell.net> (raw)
In-Reply-To: <20081224085844.GA11197-l+PWtdWbHAs2zBO71LVbc/qBs+8SCbDb@public.gmane.org>

On Wednesday 24 December 2008, Baruch Siach wrote:
> > I've certainly seen a couple drivers that handled the
> > full duplex behavior incorrectly, until they fixed that
> > bug.  As in, they wrote the tx_buf *then* read rx_buf
> > (a half-duplex model) instead of doing them concurrently
> > (the full-duplex model a spi_master must implement).
> 
> May you name those drivers and the commits with the bug fixes?
> I couldn't find them in Linus' tree.

I don't recall such a driver merging to mainline;
the idea is to catch such fundamental bugs before
they merge.


> I'm working on an SPI master (DesignWare) driver and I want
> to make sure that  I'm implementing the API correctly.

Lacking a test suite for the spi_master drivers,
I suggest that you verify your driver works with
some of the existing protocol drivers.  If at all
possible, hook up a couple SPI slaves to different
chipselects on your master, and test them all.

Then, if you find misbehavior when you test a
driver that's already known to work with a bunch
of controller drivers, it's more likely that the
bug is in your new code than the existing code.

- Dave





------------------------------------------------------------------------------

  parent reply	other threads:[~2008-12-24 19:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-21  7:32 [patch 2.6.28-rc9] spi: spi_write_then_read() regression fix David Brownell
2008-12-21  7:32 ` David Brownell
2008-12-21 23:46 ` Linus Torvalds
2008-12-21 23:46   ` Linus Torvalds
2008-12-22  0:48   ` David Brownell
2008-12-23  1:53     ` Ingo Oeser
2008-12-23 18:37       ` David Brownell
2008-12-23 18:37         ` David Brownell
2008-12-23 18:45     ` Linus Torvalds
2008-12-23 18:45       ` Linus Torvalds
2008-12-23 20:54       ` David Brownell
2008-12-23 20:54         ` David Brownell
     [not found]         ` <200812231254.55284.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-12-24  3:26           ` Tang, Feng
     [not found]             ` <EADF0A36011179459010BDF5142A45750458C7DD-Uz4Je35TzWuiAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2008-12-24  3:53               ` David Brownell
     [not found]                 ` <200812231953.26407.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-12-24  4:20                   ` Tang, Feng
     [not found]                     ` <EADF0A36011179459010BDF5142A45750458C815-Uz4Je35TzWuiAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2008-12-24  8:39                       ` David Brownell
     [not found]                         ` <200812240039.32008.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2008-12-24  8:58                           ` Baruch Siach
     [not found]                             ` <20081224085844.GA11197-l+PWtdWbHAs2zBO71LVbc/qBs+8SCbDb@public.gmane.org>
2008-12-24 19:43                               ` David Brownell [this message]
2008-12-25  7:03                           ` Tang, Feng

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=200812241143.04706.david-b@pacbell.net \
    --to=david-b-ybekhbn/0ldr7s880joybq@public.gmane.org \
    --cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
    --cc=baruch-NswTu9S1W3P6gbPvEgmw2w@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=torvalds-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
    --cc=vernoninhand-Re5JQEeQqe8AvxtiuMwx3w@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.