All of lore.kernel.org
 help / color / mirror / Atom feed
From: Vasily Khoruzhick <anarsoul@gmail.com>
To: Daniel Drake <dsd@laptop.org>
Cc: libertas-dev@lists.infradead.org, linville@tuxdriver.com,
	dcbw@redhat.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH 1/2] libertas: add ability to power off card on suspend
Date: Wed, 3 Aug 2011 00:12:19 +0300	[thread overview]
Message-ID: <201108030012.20241.anarsoul@gmail.com> (raw)
In-Reply-To: <CAGq3pz6R=8eRNRME-X9e-S12cWvRq_-xvcjCa7KXyRfE0sJ8gw@mail.gmail.com>

On Tuesday 02 August 2011 23:32:27 Daniel Drake wrote:
> On 2 August 2011 21:09, Vasily Khoruzhick <anarsoul@gmail.com> wrote:
> > Because no one puts interface down before suspend?
> > I just re-tested - if interface is up - kernel does not put it down
> > before suspend, so I got a lot of timeouts and errors on dmesg after
> > resume.
> 
> I can't see how this would have been influenced by my work.

Now generic libertas driver controls power, not if_spi. So it should be able 
to turn off card before going suspend. Messing with power in if_* and generic 
part does not look like a good idea to me.

> Your resume handler should already be fixing up the hardware state so
> that it can be operated (regardless of any power saving that might
> come into effect), or otherwise your suspend handler should cause the
> device to be removed so that it can be reprobed completely during
> resume.

My resume handler calls lbs_suspend to detach device, and it expects that 
lbs_suspend will disable card power.
 
> Daniel

Regards
Vasily

  reply	other threads:[~2011-08-02 21:12 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-01 15:43 [PATCH 1/2] libertas: disable functionality when interface is down Daniel Drake
2011-08-01 17:38 ` Vasily Khoruzhick
2011-08-01 17:50   ` Daniel Drake
2011-08-01 19:13     ` Vasily Khoruzhick
2011-08-01 19:19       ` Daniel Drake
2011-08-01 19:38         ` Vasily Khoruzhick
2011-08-02  9:02 ` Vasily Khoruzhick
2011-08-02 10:12   ` Vasily Khoruzhick
2011-08-02 10:27     ` [PATCH 1/2] libertas: add ability to power off card on suspend Vasily Khoruzhick
2011-08-02 10:27       ` [PATCH 2/2] libertas: implement if_spi runtime power management Vasily Khoruzhick
2011-08-02 10:54       ` [PATCH 1/2] libertas: add ability to power off card on suspend Daniel Drake
2011-08-02 20:09         ` Vasily Khoruzhick
2011-08-02 20:32           ` Daniel Drake
2011-08-02 21:12             ` Vasily Khoruzhick [this message]
2011-08-02 22:32               ` Daniel Drake

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=201108030012.20241.anarsoul@gmail.com \
    --to=anarsoul@gmail.com \
    --cc=dcbw@redhat.com \
    --cc=dsd@laptop.org \
    --cc=libertas-dev@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.