]> git.karo-electronics.de Git - linux-beck.git/commit
tmp/tpm_crb: fix Intel PTT hw bug during idle state
authorWinkler, Tomas <tomas.winkler@intel.com>
Mon, 12 Sep 2016 13:04:19 +0000 (16:04 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 27 Nov 2016 23:31:29 +0000 (01:31 +0200)
commitbc33c5df710c0aae6db396146194108634ef6f60
tree65ee7da9fa30bb303b2b472e6d84b7f5134a0bfa
parentba5287b6ef6a2ee91dc6cc0829649cecf7b70253
tmp/tpm_crb: fix Intel PTT hw bug during idle state

There is a HW bug in Skylake, and Broxton PCH Intel PTT device, where
most of the registers in the control area except START, REQUEST, CANCEL,
and LOC_CTRL lost retention when the device is in the idle state. Hence
we need to bring the device to ready state before accessing the other
registers. The fix brings device to ready state before trying to read
command and response buffer addresses in order to remap the for access.

Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Tested-by: Jarkko Sakkinen <jarkko.sakkinn@linux.intel.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinn@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/tpm_crb.c