public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andrew Ruder <andy@aeruder.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH RESEND-WITH-JUSTIFICATION] spi: soft_spi: Support NULL din/dout buffers
Date: Thu, 10 Apr 2014 13:41:03 -0500	[thread overview]
Message-ID: <20140410184103.GA6391@gmail.com> (raw)
In-Reply-To: <1397146782-28966-1-git-send-email-andrew.ruder@elecsyscorp.com>

I further justify this with a list of drivers that depend on half-duplex
SPI operation:

drivers/mmc/mmc_spi.c:          spi_xfer(spi, 2 * 8, tok, NULL, 0);
drivers/mtd/spi/eeprom_m95xxx.c:        if (spi_xfer(slave, 8, buf, NULL, SPI_XFER_BEGIN | SPI_XFER_END))
drivers/mtd/spi/sf_ops.c:               ret = spi_xfer(spi, 8, NULL, &status, 0);
drivers/net/e1000_spi.c:        return e1000_spi_xfer(hw, 8*sizeof(op), op, NULL, intr);
drivers/net/enc28j60.c: spi_xfer(enc->slave, 2 * 8, dout, NULL,
drivers/rtc/m41t94.c:   ret = spi_xfer(slave, 64, buf, NULL, SPI_XFER_BEGIN | SPI_XFER_END);

And an old email first highlighting this issue in 2010 with the soft_spi
driver:

http://article.gmane.org/gmane.comp.boot-loaders.u-boot/75839/match=soft_spi

  reply	other threads:[~2014-04-10 18:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-10 16:19 [U-Boot] [PATCH RESEND-WITH-JUSTIFICATION] spi: soft_spi: Support NULL din/dout buffers Andrew Ruder
2014-04-10 18:41 ` Andrew Ruder [this message]
2014-04-10 18:54 ` Jagan Teki
2014-04-10 18:57   ` Andrew Ruder
2014-04-10 19:03     ` Jagan Teki
2014-04-10 19:17       ` Andrew Ruder
2014-04-14 16:07         ` Jagan Teki

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=20140410184103.GA6391@gmail.com \
    --to=andy@aeruder.net \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox