Jarkko Sakkinen
8866a28836
tpm_crb: fix crb_req_canceled behavior
...
commit 72fd50e14e upstream.
The req_canceled() callback is used by tpm_transmit() periodically to
check whether the request has been canceled while it is receiving a
response from the TPM.
The TPM_CRB_CTRL_CANCEL register was cleared already in the crb_cancel
callback, which has two consequences:
* Cancel might not happen.
* req_canceled() always returns zero.
A better place to clear the register is when starting to send a new
command. The behavior of TPM_CRB_CTRL_CANCEL is described in the
section 5.5.3.6 of the PTP specification.
Fixes: 30fc8d138e ("tpm: TPM 2.0 CRB Interface")
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2016-10-16 17:36:15 +02:00
..
2016-10-07 15:23:48 +02:00
2016-03-03 15:07:10 -08:00
2016-08-10 11:49:29 +02:00
2016-07-27 09:47:32 -07:00
2016-08-10 11:49:24 +02:00
2016-05-11 11:21:10 +02:00
2016-09-15 08:27:49 +02:00
2016-09-24 10:07:40 +02:00
2016-10-16 17:36:15 +02:00
2016-10-07 15:23:47 +02:00
2016-09-24 10:07:35 +02:00
2016-01-04 21:46:45 -05:00
2016-09-15 08:27:54 +02:00
2016-10-16 17:36:15 +02:00
2016-09-15 08:27:53 +02:00
2016-10-07 15:23:46 +02:00
2016-09-07 08:32:41 +02:00
2016-05-04 14:48:54 -07:00
2015-11-11 10:21:34 -08:00
2016-05-04 14:48:49 -07:00
2015-11-24 15:25:46 -08:00
2016-10-07 15:23:42 +02:00
2016-10-07 15:23:40 +02:00
2016-09-15 08:27:48 +02:00
2016-09-15 08:27:50 +02:00
2016-10-07 15:23:42 +02:00
2016-02-25 12:01:23 -08:00
2016-08-10 11:49:30 +02:00
2016-09-30 10:18:38 +02:00
2015-11-06 17:50:42 -08:00
2016-09-15 08:27:46 +02:00
2016-09-30 10:18:33 +02:00
2016-10-07 15:23:47 +02:00
2016-09-15 08:27:48 +02:00
2016-09-30 10:18:35 +02:00
2016-10-07 15:23:42 +02:00
2015-12-15 13:24:21 -05:00
2016-09-24 10:07:35 +02:00
2016-06-01 12:15:53 -07:00
2016-10-07 15:23:47 +02:00
2016-10-07 15:23:45 +02:00
2016-07-27 09:47:35 -07:00
2015-11-12 07:06:18 -05:00
2016-10-16 17:36:14 +02:00
2016-09-15 08:27:41 +02:00
2016-10-07 15:23:41 +02:00
2016-10-07 15:23:40 +02:00
2016-10-07 15:23:46 +02:00
2016-10-07 15:23:44 +02:00
2015-11-08 16:24:43 -05:00
2016-04-20 15:41:54 +09:00
2016-09-15 08:27:51 +02:00
2016-05-11 11:21:21 +02:00
2016-09-07 08:32:41 +02:00
2015-12-12 16:07:25 +01:00
2016-09-07 08:32:38 +02:00
2016-04-20 15:42:09 +09:00
2016-10-07 15:23:41 +02:00
2016-03-03 15:07:28 -08:00
2016-10-07 15:23:41 +02:00
2016-09-07 08:32:43 +02:00
2016-08-16 09:30:48 +02:00
2016-09-30 10:18:39 +02:00
2015-12-12 02:31:11 +01:00
2016-08-10 11:49:25 +02:00
2016-09-30 10:18:37 +02:00
2016-10-07 15:23:43 +02:00
2016-08-20 18:09:20 +02:00
2016-08-20 18:09:27 +02:00
2016-09-15 08:27:51 +02:00
2016-10-07 15:23:45 +02:00
2016-03-09 15:34:49 -08:00
2016-09-24 10:07:42 +02:00
2016-10-07 15:23:42 +02:00
2016-10-07 15:23:47 +02:00
2016-08-20 18:09:26 +02:00
2016-07-27 09:47:29 -07:00
2016-06-01 12:15:53 -07:00
2016-09-24 10:07:38 +02:00
2016-10-07 15:23:47 +02:00
2016-09-07 08:32:37 +02:00
2016-09-15 08:27:53 +02:00
2016-05-04 14:48:51 -07:00
2016-09-07 08:32:36 +02:00
2016-08-20 18:09:22 +02:00
2016-04-12 09:08:54 -07:00
2016-08-10 11:49:26 +02:00
2015-11-16 15:22:28 -07:00