[PATCH 5/8] ARM: PXA: Z2: Add poweroff function

Marek Vasut marek.vasut at gmail.com
Sat Mar 12 06:06:13 EST 2011


On Saturday 12 March 2011 09:06:12 Vasily Khoruzhick wrote:
> On Saturday 12 March 2011 02:05:15 Marek Vasut wrote:
> > > Well, it looks like memory content is not preserved, or something wrong
> > > with bootloader. Anyway, it does not resume after deepsleep for some
> > > reason, I can't check better, as I have no JTAG. Maybe you can
> > > investigate this problem?
> > 
> > But resume after deepsleep is unrelated to this patch.
> 
> I just want to say that without this patch you can't keep device in low-
> powermode, and it can drain full battery in ~week when it's in sleep mode.

You have a problem with suspend then ? That'd need a different solution.

> 
> > > No need, I understand how it works, PSPR is null, so after u-boot loads
> > > PSPR to pc it performs 'soft reset' (jumps to 0x0, to begin of NOR
> > > flash), RCSR bits are already cleared, so it just boots kernel.
> > 
> > The note in Table 18 -- Exit from sleep or deep-sleep doesn't clear or
> > set this bit -- means PSPR might not be null if you use your
> > deep-sleep-parapowerdown.
> 
> Ok, I can clear PSPR before going to deepsleep, would it be enough?

As Eric pointed out, the wake-up scenario is bootloader-specific ... taking into 
acount only your own version of bootloader is a no-no
> 
> Regards
> Vasily



More information about the linux-arm-kernel mailing list