Linux Samsung SOC development
 help / color / mirror / Atom feed
From: Tomasz Figa <tomasz.figa@gmail.com>
To: YouShenghui <youshenghui0322@163.com>
Cc: linux-samsung-soc@vger.kernel.org, linux-spi@vger.kernel.org,
	broonie@kernel.org
Subject: Re: Ask for help on SPI slave side driver support
Date: Mon, 30 Sep 2013 01:20:42 +0200	[thread overview]
Message-ID: <4025277.bhF6fFGQqq@flatron> (raw)
In-Reply-To: <23ff6b10.bf1d.1416a88321f.Coremail.youshenghui0322@163.com>

Hi,

[Ccing Mark Brown, maintainer of Linux SPI subsystem]

On Monday 30 of September 2013 00:23:32 YouShenghui wrote:
> Hi Samsung expert,
> I am working a project that need spi slave side driver support in
> smdk6410 in linux. I am connecting two 6410 board with spi bus, one
> side as master, the other as slave. Data is passed from one side to the
> other. I looked over spi related code in kernel and only find spi
> master support. I see
> http://www.spinics.net/lists/arm-kernel/msg73403.html that said there
> was already spi slave support in Samsungs current code. Could you give
> me a suggestion where I could find that code? I would like to port
> slave side support code to my code though it's not upstream yet.

Mark will probably know better, but AFAIK there is no API for slave mode 
SPI available in Linux kernel. Please correct me if I'm wrong.

The code mentioned in the post from your link was some internal vendor 
code, which is unlikely to be available publicly. However support for 
slave mode from hardware side seems more or less similar to master mode, 
which means that assuming you can add some kernel API for it, the 
modification to the spi-s3c64xx wouldn't be too big.

Best regards,
Tomasz

  reply	other threads:[~2013-09-29 23:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-29 16:23 Ask for help on SPI slave side driver support YouShenghui
2013-09-29 23:20 ` Tomasz Figa [this message]
2013-09-30  5:38   ` YouShenghui
2013-09-30  9:33   ` Mark Brown
     [not found]     ` <4cd52b0c.af8e.14184497bb9.Coremail.youshenghui0322@163.com>
2013-10-07 11:33       ` Mark Brown
     [not found]         ` <4e8f3999.9132.141b335ef13.Coremail.youshenghui0322@163.com>
2013-10-14 11:25           ` Mark Brown
2013-10-14 14:51             ` ysh
2013-10-14 16:24               ` Mark Brown

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=4025277.bhF6fFGQqq@flatron \
    --to=tomasz.figa@gmail.com \
    --cc=broonie@kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=youshenghui0322@163.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox