RE: [PATCH] fsl-rio: Correct IECSR register clear value
From: Liu Gang-B34182 <hidden>
Date: 2011-08-24 09:31:34
Hi, Andrew, Thank you for applying the patch "[PATCH] rio: Use discovered bit to test i= f enumeration is complete "! So far the following patch "[PATCH] fsl-rio: Correct IECSR register clear v= alue " has no comment or response. So could you please apply this patch into your tree? Thanks a lot! Regards, Liu Gang -----Original Message----- From: Liu Gang-B34182=20 Sent: Monday, August 08, 2011 6:14 PM To: linuxppc-dev@ozlabs.org Cc: akpm@linux-foundation.org; Li Yang-R58472; Gala Kumar-B11780; Zang Roy-= R61911; Liu Gang-B34182; Liu Gang-B34182 Subject: [PATCH] fsl-rio: Correct IECSR register clear value The RETE bit in IECSR is cleared by writing a 1 to it. Signed-off-by: Liu Gang <redacted> --- arch/powerpc/sysdev/fsl_rio.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c =
index b3fd081..cdd765b 100644
--- a/arch/powerpc/sysdev/fsl_rio.c
+++ b/arch/powerpc/sysdev/fsl_rio.c@@ -54,6 +54,7 @@ #define ODSR_CLEAR 0x1c00 #define LTLEECSR_ENABLE_ALL 0xFFC000FC #define ESCSR_CLEAR 0x07120204 +#define IECSR_CLEAR 0x80000000
=20 #define RIO_PORT1_EDCSR 0x0640 #define RIO_PORT2_EDCSR 0x0680
@@ -1089,11 +1090,11 @@ static void port_error_handler(struct rio_mport *po=rt, int offset)
=20
if (offset =3D=3D 0) {
out_be32((u32 *)(rio_regs_win + RIO_PORT1_EDCSR), 0);
- out_be32((u32 *)(rio_regs_win + RIO_PORT1_IECSR), 0);
+ out_be32((u32 *)(rio_regs_win + RIO_PORT1_IECSR), IECSR_CLEAR);
out_be32((u32 *)(rio_regs_win + RIO_ESCSR), ESCSR_CLEAR);
} else {
out_be32((u32 *)(rio_regs_win + RIO_PORT2_EDCSR), 0);
- out_be32((u32 *)(rio_regs_win + RIO_PORT2_IECSR), 0);
+ out_be32((u32 *)(rio_regs_win + RIO_PORT2_IECSR), IECSR_CLEAR);
out_be32((u32 *)(rio_regs_win + RIO_PORT2_ESCSR), ESCSR_CLEAR);
}
}
--
1.7.3.1