memory: emif: handle overflow for timing for LP mode
authorNishanth Menon <nm@ti.com>
Sat, 16 Mar 2013 06:16:43 +0000 (11:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 20:18:12 +0000 (13:18 -0700)
commit25aaacd2834233bbfa2b7ec697bfce42707e35b7
treeb8352a0f79151e2255c5c9736fbcdf604bf9895d
parent9ea03dec380208bfee015b25f253c2f58aba0071
memory: emif: handle overflow for timing for LP mode

In case the custom timings provide values which overflow
the maximum possible field value, warn and use maximum
permissible value.

Signed-off-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