From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] TI DaVinci: Driver for the davinci SPI controller
Date: Tue, 5 Jan 2010 01:01:49 -0500 [thread overview]
Message-ID: <201001050101.51510.vapier@gentoo.org> (raw)
In-Reply-To: <02f601ca8d22$c42c6a10$4c853e30$@raj@ti.com>
On Monday 04 January 2010 04:46:19 Sudhakar Rajashekhara wrote:
> On Fri, Dec 25, 2009 at 22:41:13, Dirk Behme wrote:
> > I wonder if all (SPI API) functions from include/spi.h should be
> > implemented? I.e. do we need (dummy) functions for spi_cs_is_valid(),
> > spi_cs_activate() and spi_cs_deactivate(), too? Just in case a driver
> > does use them.
>
> Currently none of the SPI Flash drivers are using the above functions. I'll
> implement the above functions as dummy and later as and when the need
> arises, these functions will be implemented.
considering the SPI protocol, the implementation for the spi_cs_* functions
should fall naturally into place if the driver is architected properly. in
other words, your bus driver should already be relying on these functions --
you call them when you begin/end a transfer.
same goes for spi_cs_is_valid ... your spi_setup_slave function shouldnt be
accepting any random cs value given to it.
the Blackfin driver shows that these are all pretty trivial to get right.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20100105/be908eaf/attachment.pgp
next prev parent reply other threads:[~2010-01-05 6:01 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-23 7:44 [U-Boot] [PATCH] TI DaVinci: Driver for the davinci SPI controller Sudhakar Rajashekhara
2009-12-24 1:34 ` Mike Frysinger
2009-12-24 2:52 ` Sudhakar Rajashekhara
2009-12-25 17:11 ` Dirk Behme
2010-01-04 9:42 ` Sudhakar Rajashekhara
2010-01-04 9:46 ` Sudhakar Rajashekhara
2010-01-05 6:01 ` Mike Frysinger [this message]
2010-01-05 7:14 ` [U-Boot] NS16550 Register structure Pedanekar, Hemant
2010-01-05 7:35 ` Wolfgang Denk
2010-01-05 8:55 ` Pedanekar, Hemant
2010-01-05 9:58 ` Wolfgang Denk
2010-01-18 14:51 ` Pedanekar, Hemant
2010-01-19 13:04 ` Detlev Zundel
2010-01-21 11:58 ` Pedanekar, Hemant
2010-01-28 9:54 ` Pedanekar, Hemant
2010-01-28 11:00 ` Wolfgang Denk
2010-01-04 9:47 ` [U-Boot] [PATCH] TI DaVinci: Driver for the davinci SPI controller Nick Thompson
2010-01-04 10:42 ` Sudhakar Rajashekhara
2010-01-04 19:50 ` Dirk Behme
2010-01-05 0:20 ` Mike Frysinger
2010-03-05 6:47 ` Mansoor
2010-03-07 12:38 ` [U-Boot] OMAP3 SPI driver ( was Re: [PATCH] TI DaVinci: Driver for the davinci SPI controller) Dirk Behme
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=201001050101.51510.vapier@gentoo.org \
--to=vapier@gentoo.org \
--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