netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: niklas.soderlund+renesas@ragnatech.se
Cc: netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org,
	sergei.shtylyov@cogentembedded.com, wsa@the-dreams.de
Subject: Re: [PATCH 2/2] ravb: add sleep PM suspend/resume support
Date: Tue, 09 Aug 2016 16:16:36 -0700 (PDT)	[thread overview]
Message-ID: <20160809.161636.2181233072433514866.davem@davemloft.net> (raw)
In-Reply-To: <20160803135647.23242-3-niklas.soderlund+renesas@ragnatech.se>

From: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Date: Wed,  3 Aug 2016 15:56:47 +0200

> The interface would not function after the system had been woken up
> after have been suspended (echo mem > /sys/power/state) cycle. The
> reason for this is that all device registers have been reset to its
> default values. This patch adds sleep suspend and resume functions that
> detached the interface at suspend and restore the registers and reattach
> the interface at resume.
> 
> Only the registers that are only configured at probe time needs to be
> explicitly restored by the resume handler. All other registers are
> reconfigured by either reopening the device in the resume handler (if
> the device was running when the system was suspended) or when the
> interface is opened by a user at a later time.
> 
> Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

Applied to net-next, thanks.

  reply	other threads:[~2016-08-09 23:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-03 13:56 [PATCH 0/2] ravb: add sleep PM suspend/resume support Niklas Söderlund
2016-08-03 13:56 ` [PATCH 1/2] ravb: use SET_RUNTIME_PM_OPS macro Niklas Söderlund
2016-08-04 13:33   ` Geert Uytterhoeven
2016-08-04 15:28     ` Niklas Söderlund
2016-08-03 13:56 ` [PATCH 2/2] ravb: add sleep PM suspend/resume support Niklas Söderlund
2016-08-09 23:16   ` David Miller [this message]
2016-08-10 10:47     ` Sergei Shtylyov
2016-08-10 17:43       ` David Miller
2016-08-10 10:40   ` Sergei Shtylyov
2016-08-10 10:58     ` Niklas Söderlund

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=20160809.161636.2181233072433514866.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=niklas.soderlund+renesas@ragnatech.se \
    --cc=sergei.shtylyov@cogentembedded.com \
    --cc=wsa@the-dreams.de \
    /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).