]> git.karo-electronics.de Git - mv-sheeva.git/commit
P4080/mtd: Fix the freescale lbc issue with 36bit mode
authorLan Chunhe-B25806 <b25806@freescale.com>
Mon, 18 Oct 2010 07:22:32 +0000 (15:22 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 25 Oct 2010 14:41:04 +0000 (15:41 +0100)
commit0b824d2b10eacd496c608a7c41a046862d48563b
tree7322d0b478f1ece6312980b77a5313639cf73d13
parent3ab8f2a2e7011c5e83363b42950757e46ef06824
P4080/mtd: Fix the freescale lbc issue with 36bit mode

When system uses 36bit physical address, res.start is 36bit
physical address. But the function of in_be32 returns 32bit
physical address. Then both of them compared each other is
wrong. So by converting the address of res.start into
the right format fixes this issue.

Signed-off-by: Lan Chunhe-B25806 <b25806@freescale.com>
Signed-off-by: Roy Zang <tie-fei.zang@freescale.com>
Reviewed-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
arch/powerpc/include/asm/fsl_lbc.h
arch/powerpc/sysdev/fsl_lbc.c
drivers/mtd/nand/fsl_elbc_nand.c