[PATCH] [1/2] PM support for Ebony

Eugene Surovegin ebs at ebshome.net
Tue Jun 7 04:25:01 EST 2005


On Mon, Jun 06, 2005 at 11:05:56AM -0700, Geoff Levand wrote:
> I was thinking to add a static variable in ppc4xx_pic.c to hold the 
> state, that way the arch pm code doesn't need to take care of it, 
> which will make suspend to disk easier since the value will be 
> saved in the system image.  I'm not sure which way to go.  Any 
> comments?

I don't have a problem with having static variables for PM in 
ppc4xx_pic.c. However, why only one for UIC0? What about UIC1? What 
about UIC2 (for 440GX) ?

Also, function, you just added, uses resume_bits are for UIC0, it's 
not clear from the function prototype why just UIC0. Shouldn't it be 
more generic?

Another note, code in ebony_pm_enter doesn't look very Ebony specific, 
maybe it's would be a good idea to move most of it into ibm440gp_sleep.

-- 
Eugene




More information about the Linuxppc-embedded mailing list