archive mirror
 help / color / mirror / Atom feed
From: George Shore <>
To: spi-devel-list
	Grant Likely
	David Brownell
Cc: George Shore <>
Subject: [PATCH 1/5] include/linux/spi/dw_spi.h: enable platform specific chipselect.
Date: Thu, 21 Jan 2010 11:40:48 +0000	[thread overview]
Message-ID: <> (raw)

The driver core allows for a platform-specific chipselect assert/deassert
function, however the chipselect function in the core doesn't take advantage
of this fact.

This enables the use of a custom function, should it be defined.

Signed-off-by: George Shore <>
 include/linux/spi/dw_spi.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/include/linux/spi/dw_spi.h b/include/linux/spi/dw_spi.h
index 1a127a3..cc813f9 100644
--- a/include/linux/spi/dw_spi.h
+++ b/include/linux/spi/dw_spi.h
@@ -172,6 +172,10 @@ static inline void spi_chip_sel(struct dw_spi *dws, u16 cs)
 	if (cs > dws->num_cs)
+	if (dws->cs_control)
+		dws->cs_control(1);
 	dw_writel(dws, ser, 1 << cs);

Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.

             reply	other threads:[~2010-01-21 11:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-21 11:40 George Shore [this message]
     [not found] ` <>
2010-01-21 11:40   ` [PATCH 2/5] spi/dw_spi: add return value to empty mrst_spi_debugfs_init() George Shore
2010-01-21 11:40   ` [PATCH 3/5] spi/dw_spi: fixed a spelling typo in a warning message George Shore
2010-01-21 11:40   ` [PATCH 4/5] spi/dw_spi.c: remove conditional from 'poll_transfer' George Shore
2010-01-21 11:40   ` [PATCH 5/5] spi/dw_spi.c: conditional transfer mode changes George Shore
2010-01-21 14:49   ` [PATCH 1/5] include/linux/spi/dw_spi.h: enable platform specific chipselect Grant Likely

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \
    --cc=grant.likely-s3s/ \ \
    --subject='Re: [PATCH 1/5] include/linux/spi/dw_spi.h: enable platform specific chipselect.' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).