From: Jan Kiszka Date: Tue, 4 May 2010 12:21:01 +0000 (+0200) Subject: lsi: Purge message queue on reset X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~1405^2~17^2~4290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d43ba0af97646e36b6309292d30ee13b0948b1f8;p=sdk%2Femulator%2Fqemu.git 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 Signed-off-by: Anthony Liguori --- diff --git a/hw/lsi53c895a.c b/hw/lsi53c895a.c index 85eea150c8..61de23ea7e 100644 --- a/hw/lsi53c895a.c +++ b/hw/lsi53c895a.c @@ -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;