All of lore.kernel.org
 help / color / mirror / Atom feed
From: j.w.r.degoede@hhs.nl (Hans de Goede)
To: lm-sensors@vger.kernel.org
Subject: [lm-sensors] PATCH: hwmon-abituguru-suspend-resume.patch
Date: Thu, 24 Aug 2006 11:29:55 +0000	[thread overview]
Message-ID: <44ED8DB3.9080408@hhs.nl> (raw)
In-Reply-To: <44DB2470.3050507@hhs.nl>

Jean Delvare wrote:
> Hi Hans,
> 
>> This patch contains rudimentary suspend / resume support for the uguru,
>> this protects the uguru and the driver against suspend / resume cycles,
>> so there is no reason to unload the driver in your suspend / resume scripts.
>>
>> I'm not sure if this is needed, does the sysfs code itself guarantee
>> that no sysfs attr read/write calls are in progress before starting a
>> resume, if it does then this patch most likely isn't needed.
> 
> Good question, I really don't know. If sysfs doesn't guarantee it, then
> we should do something similar for all hardware monitoring drivers,
> it's simple enough.
> 
> Maybe you can raise the question on LKML, or maybe linux-pm-devel
> (doesn't seem too active though) or otherwise ask anyone with more
> power management knowledge than I do?
> 

I'm not subscribed to LKML (too much mail from other lists already), 
maybe someone who is can forward this for me?

My guess is that this protection is actually needed as in the end the 
sysfs reads / writes are just ordinary reads / writes and I don't think 
that the kernel guarantees all reads/writes to have completed when 
suspending, because that would be a real pain to guarantee for things 
like NFS, disks, etc.

>> Except for
>> protecting against this, it also checks the uguru is still in ready
>> status after a resume, but that seems to be unnescesarry (as it seems
>> that the uguru always is still ready after the resume).
> 
> Well this patch shouldn't harm, even if it doesn't do anything
> useful ;) so I guess I can take it.
> 

I don't mind it getting applied either, that would keep upstream and my 
private copy nicely in sync.

Regards,

Hans



  parent reply	other threads:[~2006-08-24 11:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-10 12:20 [lm-sensors] PATCH: hwmon-abituguru-suspend-resume.patch Hans de Goede
2006-08-21 12:34 ` Jean Delvare
2006-08-24 11:29 ` Hans de Goede [this message]
2006-08-24 21:15 ` Jean Delvare
2006-08-28  9:39 ` Jean Delvare
2006-08-28  9:42 ` Hans de Goede
2006-08-28  9:48 ` Jean Delvare
2006-08-28  9:53 ` Hans de Goede

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=44ED8DB3.9080408@hhs.nl \
    --to=j.w.r.degoede@hhs.nl \
    --cc=lm-sensors@vger.kernel.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 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.