From: David Brownell <david-b@pacbell.net>
To: Vitaly Wool <vwool@ru.mvista.com>
Cc: linux-kernel@vger.kernel.org, Greg KH <greg@kroah.com>
Subject: Re: [PATCH/RFC] SPI core: turn transfers to be linked list
Date: Thu, 22 Dec 2005 09:55:46 -0800 [thread overview]
Message-ID: <200512220955.46916.david-b@pacbell.net> (raw)
In-Reply-To: <43A95713.6020405@ru.mvista.com>
On Wednesday 21 December 2005 5:22 am, Vitaly Wool wrote:
> David Brownell wrote:
>
> >>The list setting commands are pretty essential and will not add a lot to
> >>the assembly code.
> >
> >I'm not totally averse to such changes, but you don't seem to be making
> >the best arguments. Example: they're clearly not "essential" because
> >transfer queues work today with the lists at the spi_message level.
>
> One more reason for that that came out only recently: suppore we're
> adding transfers to an already configured message (i. e. with some
> transfers set up already). This 'chaning' may happen for some kinds of
> devices.
What would those devices be? Have you looked at how, say, 802.15.4
wireless stacks would need to work? I'm thinking those will be
interesting for some embedded Linux folk. There are probably at least
half a dozen such Zigbee-capable radio chips that hook up through SPI,
and they're not always hooked up to 8-bit CPUs!
By the way, I'd say the framework already chains transfers, and what
you're proposing is that drivers be able to do so more flexibly.
> And in case transfers is an array, we should either be apriory
> aware of whether the chaining will take place or allocate an array large
> enough to hold additional transfers. Neither of these look good to me,
> and having a linked list of transfers will definitely solve this problem.
Well, that's the guts of the good example I was hoping you would share.
I'll be posting a refresh of this code soonish; maybe you can provide
a complete patch, changing all the code over to use list-not-array?
My own reasons for liking the notion of spi_transfer list membership
are to enable such transfer shuffling within the controller drivers,
more than at the spi_device driver level. If both layers will see some
benefits, then it's likely a good change. ;)
- Dave
next prev parent reply other threads:[~2005-12-22 17:55 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-17 21:18 [PATCH/RFC] SPI core: turn transfers to be linked list Vitaly Wool
2005-12-18 20:40 ` David Brownell
2005-12-19 7:49 ` Vitaly Wool
2005-12-19 17:00 ` Greg KH
2005-12-19 20:03 ` Vitaly Wool
2005-12-20 8:11 ` David Brownell
2005-12-20 18:15 ` Vitaly Wool
2005-12-21 13:22 ` Vitaly Wool
2005-12-22 17:55 ` David Brownell [this message]
2005-12-22 22:12 ` Vitaly Wool
2005-12-22 23:57 ` David Brownell
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=200512220955.46916.david-b@pacbell.net \
--to=david-b@pacbell.net \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=vwool@ru.mvista.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