st_smi: Read status until timeout happens
authorVipin KUMAR <vipin.kumar@st.com>
Mon, 7 May 2012 07:30:23 +0000 (13:00 +0530)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:38 +0000 (14:07 +0200)
commit0befe7d7a396339067ccb7018ab69a097ff62cf4
treedb433cd8d5f47a61654203b90bf6688bcfacbd4a
parent69fcb55f71c9e2c40a0f1de6f70b26a9ec02cfb8
st_smi: Read status until timeout happens

SMI driver read status fails because the control register could not be
overwritten. Instead, the read status should be tried until timeout.

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