[PATCH2/4] [PPC] Fix cpm_dpram_addr returning phys mem instead of virt mem

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linuxppc-embedded@...>
Cc: <linux-kernel@...>, Marcelo Tosatti <marcelo@...>
Date: Sunday, September 23, 2007 - 4:17 pm

cpm_dpram_addr returns physical memory of the DP RAM instead of
iomapped virtual memory. As there usually is a 1:1 MMU map of
the IMMR area, this is often not noticed. However, cpm_dpram_phys
assumes this iomapped virtual memory and returns garbage on the
1:1 mapped memory causing CPM1 uart console to fail.

This patch fixes the problem (copied from the powerpc tree).

Signed-off-by: Jochen Friedrich <jochen@scram.de>
---
 arch/ppc/8xx_io/commproc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH2/4] [PPC] Fix cpm_dpram_addr returning phys mem inste..., Jochen Friedrich, (Sun Sep 23, 4:17 pm)