Re: Shutdown after resume using power button

2007-07-08 Thread Mitch Bradley
Jordan Crouse wrote: > >> Jordan, >> >> I remember you mentioned that reading PM1_STS might be unreliable... >> Can you shed more light into the issue? >> > > Hmm - I don't remember that. PM1_STS should be reliable at this point, > assuming nobody has touched it since we resumed. > I t

Re: Shutdown after resume using power button

2007-07-07 Thread Jordan Crouse
On 07/07/07 16:07 -0400, Marcelo Tosatti wrote: > On Sat, Jul 07, 2007 at 03:35:01PM -0400, Marcelo Tosatti wrote: > > Hi folks, > > > > I was reading olpc-pm.c while I stumbled across this code > > > > > > static int olpc_pm_interrupt(int irq, void *id) > > { > > uint32_t sts, gpe = 0;

Re: Shutdown after resume using power button

2007-07-07 Thread Marcelo Tosatti
On Sat, Jul 07, 2007 at 03:35:01PM -0400, Marcelo Tosatti wrote: > Hi folks, > > I was reading olpc-pm.c while I stumbled across this code > > > static int olpc_pm_interrupt(int irq, void *id) > { > uint32_t sts, gpe = 0; > > sts = inl(acpi_base + PM1_STS); > outl(sts |

Re: Shutdown after resume using power button

2007-07-07 Thread Marcelo Tosatti
On Sat, Jul 07, 2007 at 03:35:01PM -0400, Marcelo Tosatti wrote: > Hi folks, > > I was reading olpc-pm.c while I stumbled across this code > > > static int olpc_pm_interrupt(int irq, void *id) > { > uint32_t sts, gpe = 0; > > sts = inl(acpi_base + PM1_STS); > outl(sts |

Shutdown after resume using power button

2007-07-07 Thread Marcelo Tosatti
Hi folks, I was reading olpc-pm.c while I stumbled across this code static int olpc_pm_interrupt(int irq, void *id) { uint32_t sts, gpe = 0; sts = inl(acpi_base + PM1_STS); outl(sts | 0x, acpi_base + PM1_STS); if (olpc_get_rev() >= OLPC_REV_B2) {