<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Zhao,<br>
<blockquote cite="mid:4EB41B95.2080508@embedded-sol.com" type="cite">
<pre>From: Li Yang <<a moz-do-not-send="true" href="https://lists.ozlabs.org/listinfo/linuxppc-dev">leoli at freescale.com</a>>
Some Freescale chips like MPC8536 and P1022 has deep sleep PM mode
in addtion to the sleep PM mode.
In sleep PM mode, the clocks of e500 core and unused IP blocks is
turned off. IP blocks which are allowed to wake up the processor
are still running
While in deep sleep PM mode, additionally, the power supply is
removed from e500 core and most IP blocks. Only the blocks needed
to wake up the chip out of deep sleep are ON.
This patch supports 32-bit and 36-bit address space.
The deep sleep mode is equal to the Suspend-to-RAM state of Linux
Power Management.
Command to enter deep sleep mode.
echo mem > /sys/power/state
</pre>
</blockquote>
<br>
Thanks a lot for bringing this code to mainline. I was recently
involved in enabling<br>
deep sleep on a custom P1022 board, and would like to make some
remarks based<br>
on this experience.<br>
<br>
1. I think 85xx deep sleep code would be more complete if you also
port FSL<br>
BSP code that saves eLBC configuration before entering deep
sleep and <br>
restores it afterwards. Otherwise all eLBC customization done by
u-boot is lost.<br>
<br>
2. You should implement fsl_deep_sleep() routine for 85xx. The
default implementation<br>
in include/linux/fsl_devices.h always returns 0. The routine is
used by FSL USB host <br>
driver, drivers/usb/host/ehci-fsl.c to restore USB hardware
state after deep sleep. <br>
With default implementation USB is dead on 85xx after deep sleep
if USB PHY is <br>
powered down completely.<br>
<br>
Felix.<br>
</body>
</html>