From: David Brownell <david-b@pacbell.net>
To: spi-devel-general@lists.sourceforge.net
Cc: Kumar Gala <galak@kernel.crashing.org>,
linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: [spi-devel-general] SPI bus driver synchronous support
Date: Thu, 30 Mar 2006 09:53:00 -0800 [thread overview]
Message-ID: <200603300953.01583.david-b@pacbell.net> (raw)
In-Reply-To: <7C75FBEB-F962-4860-A797-AC6B454D6E6E@kernel.crashing.org>
On Wednesday 29 March 2006 11:49 am, Kumar Gala wrote:
> The case I have is I need to talk to a microcontroller connected over
> SPI. I'd like to be able to issue a command to the microcontroller
> in a MachineCheck handler before the system reboots.
Issuing the command is trivial, but knowing it completes before the MCE
handler completes is an entirely different kettle of fish. Remember, the
SPI controller may in general be busy with some other request, which would
need to finish first even if some other request _could_ jump to the head
of the request queue.
I suspect some system designer is thinking about the problem wrong if
you believe you need that kind of solution. If for some reason your
board design requires that sort of access, then what you'd be needing
is a way to abort then bypass the normal SPI stack. It could work like
any other board-specific hack.
> I need a truly
> synchronous interface opposed to one fronting the async interface.
I think the word "synchronous" means something other than what
you're implying here. Normally in Linux, it means that the
request handling blocks until completion, sleeping allowed.
You seem to be thinking about something behaving more like a
register access, which is safe to call when in_irq().
- Dave
next prev parent reply other threads:[~2006-03-30 21:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-29 19:49 SPI bus driver synchronous support Kumar Gala
2006-03-30 1:34 ` [spi-devel-general] " Stephen Street
2006-03-30 17:53 ` David Brownell [this message]
2006-03-31 5:52 ` Kumar Gala
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=200603300953.01583.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=galak@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=spi-devel-general@lists.sourceforge.net \
/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