From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: Mark Brown
<broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
Dries Van Puymbroeck
<Dries.VanPuymbroeck-ob4gmnvZ1/cAvxtiuMwx3w@public.gmane.org>,
Peter Korsgaard
<peter.korsgaard-ob4gmnvZ1/cAvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH] spi: Driver for GPIO controlled SPI multiplexer
Date: Mon, 04 Mar 2013 10:38:35 +0800 [thread overview]
Message-ID: <20130304023835.5F0BC3E14C0@localhost> (raw)
In-Reply-To: <20130303074209.GA19020-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
On Sun, 3 Mar 2013 15:42:39 +0800, Mark Brown <broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org> wrote:
> On Sat, Mar 02, 2013 at 05:32:44PM +0000, Grant Likely wrote:
>
> > Mark commented on this too, but I disagree with him on one point; it
> > will actually be simpler if you finish up the transfer in the callback,
> > and that it really should be implemented that way from day one.
>
> > xfer_complete and xfer_complete_wq can be dropped, and
> > child_mesg_complete, child_mesg_context and child_mesg_dev will move
> > into struct spi_mux_gpio.
>
> I agree with this, I was just thinking that the waitqueue looked like a
> first stage in allowing multiple in flight transfers on the parent.
> Unless I'm missing something, I didn't think too deeply about
> implementing that, it's just that it's going to be needed at some point
> as it's so important for performance.
Alright, I'll bite. How? What's the scenario where the driver will need
to manage the wait queue directly? The point of the transfer_one_message
interface was pull queue management into the core and allow the driver
to get the next message just when it needs it.
g.
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
next prev parent reply other threads:[~2013-03-04 2:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-27 13:58 [PATCH] spi: Driver for GPIO controlled SPI multiplexer Peter Korsgaard
[not found] ` <20130302035043.GE6610@opensource.wolfsonmicro.com>
[not found] ` <20130302035043.GE6610-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2013-03-02 10:43 ` Peter Korsgaard
[not found] ` <20130302104853.GA31872@opensource.wolfsonmicro.com>
[not found] ` <20130302104853.GA31872-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2013-03-02 11:15 ` Peter Korsgaard
2013-03-02 14:31 ` Grant Likely
[not found] ` <1361973519-30633-1-git-send-email-peter.korsgaard-ob4gmnvZ1/cAvxtiuMwx3w@public.gmane.org>
2013-03-02 17:32 ` Grant Likely
2013-03-03 8:08 ` Peter Korsgaard
[not found] ` <20130303074209.GA19020@opensource.wolfsonmicro.com>
[not found] ` <20130303074209.GA19020-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2013-03-04 2:38 ` Grant Likely [this message]
2013-03-26 21:14 ` [PATCH] spi: Add SPI mux core and GPIO-based mux driver Dries Van Puymbroeck
[not found] ` <1364332460-4808-1-git-send-email-Dries.VanPuymbroeck-ob4gmnvZ1/cAvxtiuMwx3w@public.gmane.org>
2013-04-09 8:19 ` Van Puymbroeck, Dries
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=20130304023835.5F0BC3E14C0@localhost \
--to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
--cc=Dries.VanPuymbroeck-ob4gmnvZ1/cAvxtiuMwx3w@public.gmane.org \
--cc=broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \
--cc=peter.korsgaard-ob4gmnvZ1/cAvxtiuMwx3w@public.gmane.org \
--cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).