Re: [PATCH v2] powernv: Add OPAL soft-poweroff routine

2015-02-10 Thread Joel Stanley
On Mon, Feb 9, 2015 at 8:09 PM, Vasant Hegde wrote: >> + >> +#define SOFT_OFF 0x00 >> +#define SOFT_REBOOT 0x01 > > Better move these macros to opal.h as its coming from OPAL API? Okay. Mpe has already merged this, so I'll send a follow up. > Also I think its to merge this code and Anshumans' EP

Re: [PATCH v2] powernv: Add OPAL soft-poweroff routine

2015-02-09 Thread Stewart Smith
Joel Stanley writes: > Register a notifier for a OPAL message indicating that the machine > should prepare itself for a graceful power off. > > OPAL will tell us if the power off is a reboot or shutdown, but for now > we perform the same orderly_poweroff action. > > Signed-off-by: Joel Stanley I

Re: [PATCH v2] powernv: Add OPAL soft-poweroff routine

2015-02-09 Thread Vasant Hegde
On 01/30/2015 12:13 PM, Joel Stanley wrote: > Register a notifier for a OPAL message indicating that the machine > should prepare itself for a graceful power off. > > OPAL will tell us if the power off is a reboot or shutdown, but for now > we perform the same orderly_poweroff action. > > Signed-

[PATCH v2] powernv: Add OPAL soft-poweroff routine

2015-01-29 Thread Joel Stanley
Register a notifier for a OPAL message indicating that the machine should prepare itself for a graceful power off. OPAL will tell us if the power off is a reboot or shutdown, but for now we perform the same orderly_poweroff action. Signed-off-by: Joel Stanley --- v2: - combine the reboot and o