]> Pileus Git - ~andy/linux/commit
memory: emif: Fix the lpmode timeout calculation
authorLokesh Vutla <lokeshvutla@ti.com>
Sat, 16 Mar 2013 06:16:41 +0000 (11:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 20:18:11 +0000 (13:18 -0700)
commit0a5f19cf303ea9cc9bf89a42960a69db4ea3c35b
treee315ee7a92d5fa1e076d5cfca66e778572776d71
parent275b5d2061c20749582060be68b6ec4692736d28
memory: emif: Fix the lpmode timeout calculation

The driver tries to round up the specified timeout cycles to
the next power of 2 value. This should be done defore updating
timeout variable.
Correcting this here.

Reported-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/memory/emif.c