[PATCH v2] arm: plat-samsung: check processor type before cache restoration in resume

2013-02-26 Thread Inderpal Singh
Only cortex-a9 based samsung platforms have l2x0 cache controller. Hence check the same before restoring the cache in resume. This is needed for single kernel image. Signed-off-by: Inderpal Singh inderpal.si...@linaro.org --- changes in v2: - check processor midr instead of checking all

Re: [PATCH v2] arm: plat-samsung: check processor type before cache restoration in resume

2013-02-26 Thread Russell King - ARM Linux
On Tue, Feb 26, 2013 at 03:26:53PM +0530, Inderpal Singh wrote: Only cortex-a9 based samsung platforms have l2x0 cache controller. Hence check the same before restoring the cache in resume. Why is this patch soo complicated? Can't you read the CPUs MIDR register from assembly code? -- To

Re: [PATCH v2] arm: plat-samsung: check processor type before cache restoration in resume

2013-02-26 Thread Inderpal Singh
On 26 February 2013 15:32, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Tue, Feb 26, 2013 at 03:26:53PM +0530, Inderpal Singh wrote: Only cortex-a9 based samsung platforms have l2x0 cache controller. Hence check the same before restoring the cache in resume. Why is this patch

Re: [PATCH v2] arm: plat-samsung: check processor type before cache restoration in resume

2013-02-26 Thread Russell King - ARM Linux
On Tue, Feb 26, 2013 at 04:46:01PM +0530, Inderpal Singh wrote: On 26 February 2013 15:32, Russell King - ARM Linux li...@arm.linux.org.uk wrote: On Tue, Feb 26, 2013 at 03:26:53PM +0530, Inderpal Singh wrote: Only cortex-a9 based samsung platforms have l2x0 cache controller. Hence check