fsl_rio: fix non-standard HID1 register access
PATCH v2 2/4 fsl_rio: fix non-standard HID1 register access
Signed-off-by Shaohui Xie <[email protected]>
Cc Li Yang <[email protected]>
Cc Kumar Gala <[email protected]>
Cc Roy Zang <[email protected]>
Cc Alexandre Bounine <[email protected]>
--- arch/powerpc/kernel/cpu_setup_fsl_booke.S | 6 ++++++ arch/powerpc/sysdev/fsl_rio.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-)
arch/powerpc/kernel/cpu_setup_fsl_booke.S +6 -0
@@ -63,6 +63,12 @@ _GLOBAL(__setup_cpu_e500v2) bl __e500_icache_setup bl __e500_dcache_setup bl __setup_e500_ivors +#ifdef CONFIG_RAPIDIO + /* Ensure that RFXE is set */ + mfspr r3,SPRN_HID1 + oris r3,r3,HID1_RFXE@h + mtspr SPRN_HID1,r3 +#endif mtlr r4 blr _GLOBAL(__setup_cpu_e500mc)
arch/powerpc/sysdev/fsl_rio.c +0 -2
@@ -1538,8 +1538,6 @@ int fsl_rio_setup(struct platform_device *dev) saved_mcheck_exception = ppc_md.machine_check_exception; ppc_md.machine_check_exception = fsl_rio_mcheck_exception;#endif -/* Ensure that RFXE is set */ -mtspr (SPRN_HID1 , (mfspr (SPRN_HID1 ) |0x20000 ));return 0 ; err:
Signature · 1 line
1.6.4
Kumar Gala
AppliedQuoted 9 lines · Shaohui Xie
Signed-off-by Shaohui Xie <[email protected]>Cc Li Yang <[email protected]>Cc Kumar Gala <[email protected]>Cc Roy Zang <[email protected]>Cc Alexandre Bounine <[email protected]>---
arch/powerpc/kernel/cpu_setup_fsl_booke.S | 6 ++++++ arch/powerpc/sysdev/fsl_rio.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-)
applied to next
- k