Thread (21 messages) 21 messages, 3 authors, 2009-11-05

Re: [PATCH 1/7] powerpc/qe: Make qe_reset() code path safe for repeated invocation

From: Kumar Gala <hidden>
Date: 2009-11-05 13:15:48

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 <redacted>
---
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help