tpm: CRB: Set tpmRegValidSts flag to '1' in device reset
commitbe052a3b3d3d8cfbe2d5bc588106b3403f4206af
authorStefan Berger <stefanb@linux.vnet.ibm.com>
Mon, 19 Mar 2018 16:13:14 +0000 (19 12:13 -0400)
committerStefan Berger <stefanb@linux.vnet.ibm.com>
Wed, 21 Mar 2018 12:00:31 +0000 (21 08:00 -0400)
treecf3ae6b2727d0774bebee5ae2151a8fe04d53111
parentf1a63fcfcd92c88be8942b5ae71aef9749a4f135
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>
hw/tpm/tpm_crb.c