Message ID | 20141210043729.31026.82372.stgit@thinktux.in.ibm.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/hw/fsp/fsp.c b/hw/fsp/fsp.c index 1bc236c..507619a 100644 --- a/hw/fsp/fsp.c +++ b/hw/fsp/fsp.c @@ -349,6 +349,12 @@ static void fsp_reset_cmdclass(void) int i; struct fsp_msg *msg; + /* + * The FSP is in reset and hence we can't expect any response + * to outstanding messages that we've already sent. Clear the + * bitmap to reflect that. + */ + fsp_cmdclass_resp_bitmask = 0; for (i = 0; i <= (FSP_MCLASS_LAST - FSP_MCLASS_FIRST); i++) { struct fsp_cmdclass *cmdclass = &fsp_cmdclass[i]; cmdclass->busy = false;
Once we have the FSP in reset, we don't expect it to respond to any outstanding mbox commands for which we are expecting one. Reset the bitmap to reflect the same. Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> --- hw/fsp/fsp.c | 6 ++++++ 1 file changed, 6 insertions(+)