]> git.sur5r.net Git - u-boot/commit
st_smi: Change timeout loop implementation
authorAmit Virdi <amit.virdi@st.com>
Mon, 7 May 2012 07:30:29 +0000 (13:00 +0530)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:39 +0000 (14:07 +0200)
commitb5992fac88f8068f4f1af1de2e76889465e45693
treeb45d04b77763d821cb52873f8c154e13ad035c4b
parentcf9026deb8d83b00c37b19ec7b63491e9338d49f
st_smi: Change timeout loop implementation

There are two problems in the current timeout loop implementation:
1. In case initial test failing, there will always be a delay of 1 ms
2. The delay duration is not tunable

The new implementation addresses both these limitations.

Signed-off-by: Amit Virdi <amit.virdi@st.com>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/st_smi.c