lsi: Purge message queue on reset
Declare the input message queue empty and initialize the related state machine properly on controller reset. This fixes unrecoverable errors when the controller was reset during ongoing requests. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
3e94cb0204
commit
d43ba0af97
@ -288,6 +288,8 @@ static void lsi_soft_reset(LSIState *s)
|
||||
DPRINTF("Reset\n");
|
||||
s->carry = 0;
|
||||
|
||||
s->msg_action = 0;
|
||||
s->msg_len = 0;
|
||||
s->waiting = 0;
|
||||
s->dsa = 0;
|
||||
s->dnad = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user