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

2009-08-28 Thread Anton Vorontsov
On Fri, Aug 28, 2009 at 12:34:50AM -0500, Kumar Gala wrote: [...] > >static int qe_sdma_init(void) > >{ > > struct sdma __iomem *sdma = &qe_immr->sdma; > >-unsigned long sdma_buf_offset; > >+static unsigned long sdma_buf_offset; > > > > if (!sdma) > > return -ENODEV; > >

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

2009-08-27 Thread Kumar Gala
On Aug 27, 2009, at 12:30 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 alloc

[PATCH 2/5] powerpc/qe: Make qe_reset() code path safe for repeated invocation

2009-08-27 Thread Anton Vorontsov
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 alloca