[PATCH 1/7] powerpc/qe: Make qe_reset() code path safe for repeated invocation
Kumar Gala
galak at kernel.crashing.org
Fri Nov 6 00:15:42 EST 2009
On Sep 15, 2009, at 4:43 PM, Anton Vorontsov wrote:
> For MPC8569 CPUs we'll need to reset QE after each suspend, so make
> qe_reset() code path suitable for repeated invocation, that is:
>
> - Don't initialize rheap structures if already initialized;
> - Don't allocate muram for SDMA if already allocated, just
> reinitialize
> registers with previously allocated muram offset;
> - Remove __init attributes from qe_reset() and cpm_muram_init();
>
> Signed-off-by: Anton Vorontsov <avorontsov at ru.mvista.com>
> ---
> arch/powerpc/include/asm/qe.h | 2 +-
> arch/powerpc/sysdev/cpm_common.c | 5 ++++-
> arch/powerpc/sysdev/qe_lib/qe.c | 12 +++++++-----
> 3 files changed, 12 insertions(+), 7 deletions(-)
applied to next.
- k
More information about the Linuxppc-dev
mailing list