tpm: CRB: Set tpmRegValidSts flag to '1' in device reset
Fix the initialization of the tpmRegValidSts flag and set it to '1' during device reset without expecting a write to another register. This seems to also be the default behavior of real hardware. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
f1a63fcfcd
commit
be052a3b3d
@ -145,8 +145,6 @@ static void tpm_crb_mmio_write(void *opaque, hwaddr addr,
|
|||||||
beenSeized, 0);
|
beenSeized, 0);
|
||||||
ARRAY_FIELD_DP32(s->regs, CRB_LOC_STATE,
|
ARRAY_FIELD_DP32(s->regs, CRB_LOC_STATE,
|
||||||
locAssigned, 1);
|
locAssigned, 1);
|
||||||
ARRAY_FIELD_DP32(s->regs, CRB_LOC_STATE,
|
|
||||||
tpmRegValidSts, 1);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -210,6 +208,8 @@ static void tpm_crb_reset(void *dev)
|
|||||||
|
|
||||||
tpm_backend_reset(s->tpmbe);
|
tpm_backend_reset(s->tpmbe);
|
||||||
|
|
||||||
|
ARRAY_FIELD_DP32(s->regs, CRB_LOC_STATE,
|
||||||
|
tpmRegValidSts, 1);
|
||||||
ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID,
|
ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID,
|
||||||
InterfaceType, CRB_INTF_TYPE_CRB_ACTIVE);
|
InterfaceType, CRB_INTF_TYPE_CRB_ACTIVE);
|
||||||
ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID,
|
ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user