public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Russell King <rmk+lkml@arm.linux.org.uk>
To: Mark Underwood <basicmark@yahoo.com>
Cc: David Brownell <david-b@pacbell.net>,
	vwool@ru.mvista.com, stephen@streetfiresound.com,
	spi-devel-general@lists.sourceforge.net, pavel@ucw.cz,
	linux-kernel@vger.kernel.org, dpervushin@gmail.com
Subject: Re: [PATCH/RFC 1/2] simple SPI framework
Date: Thu, 6 Oct 2005 19:29:38 +0100	[thread overview]
Message-ID: <20051006182938.GA5312@flint.arm.linux.org.uk> (raw)
In-Reply-To: <20051006182349.7430.qmail@web33007.mail.mud.yahoo.com>

On Thu, Oct 06, 2005 at 07:23:48PM +0100, Mark Underwood wrote:
> --- David Brownell <david-b@pacbell.net> wrote:
> > Vitaly ... comments from Russell and Pavel both addresses your comments
> > about that obsolete parameter.  What letter?  The one I remember was
> > one responding to Mark Underwood (?) where you complained about issuing
> > three calls for one suspend event.  You can't have it both ways!!
> > Either that parameter should be used in the documented way (call the
> > suspend method three times, one right after another) or it should be used
> > more sanely (parameter is constant.
> 
> Yes, that was in reply to my SPI subsystem patch set (in which Vitaly
> didn't like the fact that I call suspend/resume 3 times) and then in
> the same thread (in answer to David's response of dropping this as he
> didn't think anyone would mind this) Vitaly said that you can't do this.

Vitaly has a problem then.  We must _not_ call suspend three times
just because it has different "levels" - SUSPEND_DISABLE,
SUSPEND_SAVE_STATE and SUSPEND_POWER_DOWN.

As I've said earlier in the thread, the only reason these exist is
because no one has gone to the effort of cleaning up the crap left
behind from PM version 1 for the platform devices.

When PM v2 happened, I just hacked the platform device drivers to
work with this new model.  So please consider the three argument
suspend callback a legacy feature and if you're going to use it,
call it exactly once.

And please document that this is the case for your bus type, and
that the "level" argument is meaningless.  Better still, please
do not use the device_driver suspend/resume pointers at all.  Same
argument applies - only platform devices use them, and these should
eventually be killed off.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:  2.6 Serial core

  reply	other threads:[~2005-10-06 18:29 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-04 18:02 [PATCH/RFC 1/2] simple SPI framework David Brownell
2005-10-05  8:06 ` Vitaly Wool
2005-10-05  9:01   ` Russell King
2005-10-05  9:13     ` Vitaly Wool
2005-10-05 14:39     ` David Brownell
2005-10-06 18:23       ` Mark Underwood
2005-10-06 18:29         ` Russell King [this message]
2005-10-06 19:02           ` [PATCH] Get rid of the obsolete tri-level suspend/resume callbacks (was: Re: [PATCH/RFC 1/2] simple SPI framework) Russell King
2005-10-06 19:09             ` Greg KH
2005-10-06 21:14             ` Pavel Machek
2005-10-06 21:19               ` Russell King
2005-10-05  9:30   ` [PATCH/RFC 1/2] simple SPI framework Adam Belay
2005-10-05 14:45     ` David Brownell
2005-10-05 11:10   ` Pavel Machek

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=20051006182938.GA5312@flint.arm.linux.org.uk \
    --to=rmk+lkml@arm.linux.org.uk \
    --cc=basicmark@yahoo.com \
    --cc=david-b@pacbell.net \
    --cc=dpervushin@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=spi-devel-general@lists.sourceforge.net \
    --cc=stephen@streetfiresound.com \
    --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