]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/qe: Implement qe_alive_during_sleep() helper function
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Thu, 27 Aug 2009 07:35:50 +0000 (07:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 31 Aug 2009 04:51:33 +0000 (21:51 -0700)
commitca1195a497175c4589d65be998e6fc60b3cad71c
tree9c925bcaf5adb61084719c93ac579e82e6a169b2
parent077e4748974bab2721c6813f3beb5372aa9d7282
powerpc/qe: Implement qe_alive_during_sleep() helper function

In some CPUs (i.e. MPC8569) QE shuts down completely during sleep,
drivers may want to know that to reinitialize registers and buffer
descriptors.

This patch implements qe_alive_during_sleep() helper function, so far
it just checks if MPC8569-compatible power management controller is
present, which is a sign that QE turns off during sleep.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/powerpc/include/asm/qe.h
arch/powerpc/sysdev/qe_lib/qe.c