linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Linus Walleij <linus.walleij-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org,
	Viresh Kumar <viresh.kumar-qxv4g6HH51o@public.gmane.org>,
	Mark Brown
	<broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>,
	Linus Walleij
	<linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
Subject: Re: [PATCH 3/3] spi: create an optional message queueing infrastructure
Date: Fri, 3 Feb 2012 15:01:57 +0100	[thread overview]
Message-ID: <CACRpkdbk5nytVnE81Rhp3AhA7+o2uhReopaCyoPWHA52oDK4Gg@mail.gmail.com> (raw)
In-Reply-To: <20120202185247.GR15343-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>

On Thu, Feb 2, 2012 at 7:52 PM, Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org> wrote:

> This looks really good.  In fact, can you think of any reason why we wouldn't
> force all spi drivers to use central queueing?  I don't see any advantage
> in leaving the old mechanism in place other than to allow driver to transition
> from the old API.

Not really... except that it'll be hard to convert all drivers.

> There is also the spi_bitbang which also implements its own message
> queue and workqueue.  Several drivers make use of even if they don't
> do bitbanging.

Sound like they're abusing it then :-/

> Can you investigate dropping patch 2 and making the normal register
> function set up queued transfers if the transfer hook is not set.  If
> it is set, then make the kernel complain to the console, quietly at
> first, but we'll get louder before ultimately removing the
> non-queued interface.  Thoughts?

OK I'll post v2 soon with these changes.

Thanks,
Linus Walleij

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2

  parent reply	other threads:[~2012-02-03 14:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-02 12:59 [PATCH 3/3] spi: create an optional message queueing infrastructure Linus Walleij
     [not found] ` <1328187599-12982-1-git-send-email-linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>
2012-02-02 18:52   ` Grant Likely
     [not found]     ` <20120202224709.GF3112@opensource.wolfsonmicro.com>
     [not found]       ` <20120202224709.GF3112-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-02-03  4:14         ` Grant Likely
     [not found]     ` <20120202185247.GR15343-e0URQFbLeQY2iJbIjFUEsiwD8/FfD2ys@public.gmane.org>
2012-02-03 14:01       ` Linus Walleij [this message]
     [not found] ` <20120202160522.GF22048@opensource.wolfsonmicro.com>
     [not found]   ` <20120202160522.GF22048-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>
2012-02-03 14:00     ` Linus Walleij

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=CACRpkdbk5nytVnE81Rhp3AhA7+o2uhReopaCyoPWHA52oDK4Gg@mail.gmail.com \
    --to=linus.walleij-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
    --cc=broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \
    --cc=grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org \
    --cc=linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org \
    --cc=spi-devel-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=viresh.kumar-qxv4g6HH51o@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).