Message ID | 1522270761-29646-2-git-send-email-stefanb@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
Series | [1/4] tpm: CRB: set the Idle flag by default | expand |
On Wed, Mar 28, 2018 at 10:59 PM, Stefan Berger <stefanb@linux.vnet.ibm.com> wrote: > Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> > --- This is also the default state according to the spec. Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> > hw/tpm/tpm_crb.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/hw/tpm/tpm_crb.c b/hw/tpm/tpm_crb.c > index ef8b80e..e728b55 100644 > --- a/hw/tpm/tpm_crb.c > +++ b/hw/tpm/tpm_crb.c > @@ -220,6 +220,8 @@ static void tpm_crb_reset(void *dev) > > ARRAY_FIELD_DP32(s->regs, CRB_LOC_STATE, > tpmRegValidSts, 1); > + ARRAY_FIELD_DP32(s->regs, CRB_CTRL_STS, > + tpmIdle, 1); > ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID, > InterfaceType, CRB_INTF_TYPE_CRB_ACTIVE); > ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID, > -- > 2.5.5 > >
diff --git a/hw/tpm/tpm_crb.c b/hw/tpm/tpm_crb.c index ef8b80e..e728b55 100644 --- a/hw/tpm/tpm_crb.c +++ b/hw/tpm/tpm_crb.c @@ -220,6 +220,8 @@ static void tpm_crb_reset(void *dev) ARRAY_FIELD_DP32(s->regs, CRB_LOC_STATE, tpmRegValidSts, 1); + ARRAY_FIELD_DP32(s->regs, CRB_CTRL_STS, + tpmIdle, 1); ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID, InterfaceType, CRB_INTF_TYPE_CRB_ACTIVE); ARRAY_FIELD_DP32(s->regs, CRB_INTF_ID,
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com> --- hw/tpm/tpm_crb.c | 2 ++ 1 file changed, 2 insertions(+)