st_smi: Return error in case TFF is not set
authorAmit Virdi <amit.virdi@st.com>
Mon, 7 May 2012 07:30:20 +0000 (13:00 +0530)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:38 +0000 (14:07 +0200)
commit5c16c54124ba7a21979e1eb656e696b7b6d881ec
tree480799414f62c779620bb0583e69cc52073d6957
parentf3fcf92d595b297b47a1b58b8ec39f93f40ef912
st_smi: Return error in case TFF is not set

Curently the code makes wrong assumption that the Transfer finished flag shall
be set within the stipulated time. However, there may occur a scenario in which
the TFF flag is not set. Return error in that case.

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