[PATCH] OLPC: decouple sleep/resume from powerdown/powerup (take 3)

2007-09-25 Thread Bernardo Innocenti
This patch merges the fb_powerup and fb_powerdown hooks in a single operation fb_power with an additional state parameter ranging from 0 (running) to 3 (poweroff). The geodefb uses state 2 as an intermediate low-power mode, where the LX or GX video unit is turned off, but the GPU may still be

Re: OLPC: decouple sleep/resume from powerdown/powerup (take 3)

2007-09-25 Thread Bernardo Innocenti
Jordan Crouse wrote: So anyway, long story short, its all below in black and white. Please reply with comments. As I said, I also like this design. The only thing I could suggest is moving the code snippets that implement the actual video unit powerdown and powerup to separate functions, so