pc, pc64: command flag sometimes doesnt reset, just check for IBF
This commit is contained in:
parent
95dbc72801
commit
2f8ee8fb4e
1 changed files with 2 additions and 2 deletions
|
@ -96,7 +96,7 @@ ecread(uchar addr)
|
|||
lock(&ec);
|
||||
if(!ec.init)
|
||||
goto out;
|
||||
if(ecwait(BURST|CMD, 0))
|
||||
if(ecwait(IBF, 0))
|
||||
goto out;
|
||||
ecwr(EC_SC, RD_EC);
|
||||
if(ecwait(IBF, 0))
|
||||
|
@ -120,7 +120,7 @@ ecwrite(uchar addr, uchar val)
|
|||
lock(&ec);
|
||||
if(!ec.init)
|
||||
goto out;
|
||||
if(ecwait(BURST|CMD, 0))
|
||||
if(ecwait(IBF, 0))
|
||||
goto out;
|
||||
ecwr(EC_SC, WR_EC);
|
||||
if(ecwait(IBF, 0))
|
||||
|
|
Loading…
Reference in a new issue