]> git.sur5r.net Git - u-boot/commit
arch/powperpc: Fix start_align due to use of __ffs64() instead ffs64()
authorAshish kumar <Ashish.kumar@nxp.com>
Fri, 22 Jan 2016 10:20:10 +0000 (15:50 +0530)
committerYork Sun <york.sun@nxp.com>
Mon, 25 Jan 2016 20:30:31 +0000 (12:30 -0800)
commit43381474ff99afc02b0433acfdf48ebdd6d11ce2
tree9f3bd0da9beed3600337a1f108285ea39598a4e8
parent2c0d69713c5f1cd0e3caee20b3725dc8d0b9aa77
arch/powperpc: Fix start_align due to use of __ffs64() instead ffs64()

Incorrect DDR law was created in case of B4860qds after commit
2d2f490d. Return value of ffs64() differs from __ffs64(), eg.
    ffs64(0x80000000) = 0x20
    __ffs64(0x80000000) = 0x1f
As a result of this change, callers need to adjust the expected
return value by removing -1.

Signed-off-by: Ashish Kumar <Ashish.Kumar@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
arch/powerpc/cpu/mpc83xx/law.c
arch/powerpc/cpu/mpc8xxx/law.c