Patchwork [1/5] powerpc/qe: Increase MAX_QE_RISC to 4

login
register
mail settings
Submitter Anton Vorontsov
Date Aug. 27, 2009, 5:30 p.m.
Message ID <20090827173011.GA739@oksana.dev.rtsoft.ru>
Download mbox | patch
Permalink /patch/32260/
State Accepted, archived
Commit 98eaa0987afdcab0929dc205edb5c492cf66a370
Delegated to: Kumar Gala
Headers show

Comments

Anton Vorontsov - Aug. 27, 2009, 5:30 p.m.
MPC8569 CPUs have four QE RISCs, so we need to increase MAX_QE_RISC
constant, otherwise qe_upload_firmware() fails at sanity checking.

Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
---
 arch/powerpc/sysdev/qe_lib/qe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Timur Tabi - Aug. 27, 2009, 8 p.m.
Anton Vorontsov wrote:
> MPC8569 CPUs have four QE RISCs, so we need to increase MAX_QE_RISC
> constant, otherwise qe_upload_firmware() fails at sanity checking.
> 
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> ---

Acked-by: Timur Tabi <timur@freescale.com>

Anton, I'll review the rest of your patches next week.  I'm too busy to do it now.
Kumar Gala - Aug. 28, 2009, 5:32 a.m.
On Aug 27, 2009, at 12:30 PM, Anton Vorontsov wrote:

>
> MPC8569 CPUs have four QE RISCs, so we need to increase MAX_QE_RISC
> constant, otherwise qe_upload_firmware() fails at sanity checking.
>
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> ---
> arch/powerpc/sysdev/qe_lib/qe.c |    2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)

applied to next

- k

Patch

diff --git a/arch/powerpc/sysdev/qe_lib/qe.c b/arch/powerpc/sysdev/qe_lib/qe.c
index 237e365..b06564f 100644
--- a/arch/powerpc/sysdev/qe_lib/qe.c
+++ b/arch/powerpc/sysdev/qe_lib/qe.c
@@ -336,7 +336,7 @@  static int qe_sdma_init(void)
 }
 
 /* The maximum number of RISCs we support */
-#define MAX_QE_RISC     2
+#define MAX_QE_RISC     4
 
 /* Firmware information stored here for qe_get_firmware_info() */
 static struct qe_firmware_info qe_firmware_info;