linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Christian Krafft <krafft@de.ibm.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org, krafft@de.ibm.com
Subject: Re: [RFC] poweroff via pm_power_off if set
Date: Sun, 15 Jun 2008 17:01:51 +0200	[thread overview]
Message-ID: <20080615170151.35446b18@de.ibm.com> (raw)
In-Reply-To: <E67AB741-49D3-456D-9559-C040C5CD5ACC@kernel.crashing.org>

[-- Attachment #1: Type: text/plain, Size: 1593 bytes --]

On Fri, 13 Jun 2008 11:00:33 -0500
Kumar Gala <galak@kernel.crashing.org> wrote:

> 
> On Jun 13, 2008, at 10:36 AM, Christian Krafft wrote:
> 
> > This patch is needed to make ipmi_poweroff working on powerpc.
> > It straightens the poweroff procedure to match with other  
> > architectures.
> > At the moment powerpc plattforms can define their poweroff method  
> > using
> > ppc_md.power_off. The only way for plattform independent driver  
> > (ipmi_poweroff)
> > to register it's poweroff function is to use pm_power_off. So  
> > machine_power_off
> > should check whether pm_power_off has been set and if so it should  
> > be used.
> > If not, plattform dependent ppc_md.power_off should be called.
> 
> It seems like this should be the other way around.  Meaning  
> ppc_md.power_off should be called first than pm_power_off.  If a  
> platform provides a power off mechanism that should presuming take  
> precedence over the ipmi_poweroff.
> 
> - k

I'd see the pm_power_off as an option to override platform specific poweroff
function. If you want to use ppc_md.power_off you simply don't need to load
ipmi_poweroff module. Also it would not be possible to use ipmi_poweroff
on plattforms that provide a ppc_md.power_off. 


-- 
Mit freundlichen Gruessen,
kind regards,

Christian Krafft
IBM Systems & Technology Group,
Linux Kernel Development
IT Specialist


Vorsitzender des Aufsichtsrats:	Martin Jetter
Geschaeftsfuehrung:		Herbert Kircher
Sitz der Gesellschaft:		Boeblingen
Registriergericht:		Amtsgericht Stuttgart, HRB 243294

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2008-06-15 14:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-13 15:36 [RFC] poweroff via pm_power_off if set Christian Krafft
2008-06-13 16:00 ` Kumar Gala
2008-06-15 15:01   ` Christian Krafft [this message]

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=20080615170151.35446b18@de.ibm.com \
    --to=krafft@de.ibm.com \
    --cc=galak@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.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).