mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-16 07:27:09 -04:00
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>
This commit is contained in:
parent
69fcb55f71
commit
0befe7d7a3
@ -187,7 +187,7 @@ static int smi_wait_till_ready(int bank, int timeout)
|
|||||||
do {
|
do {
|
||||||
sr = smi_read_sr(bank);
|
sr = smi_read_sr(bank);
|
||||||
if (sr < 0)
|
if (sr < 0)
|
||||||
break;
|
continue; /* try until timeout */
|
||||||
else if (!(sr & WIP_BIT))
|
else if (!(sr & WIP_BIT))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user