Re: [PATCH v2] char/tpm: simplify duration calculation and eliminate smatch warning.

2012-11-16 Thread Kent Yoder
On Fri, Nov 16, 2012 at 12:31:29AM +0100, Peter Huewe wrote: > This patch changes the semantics of the duration calculation for an > ordinal, by masking out the higher bits of a tpm command, which specify > whether it's an TPM_PROTECTED_COMMAND, TPM_UNPROTECTED_COMMAND, > TPM_CONNECTION_COMMAND, TP

[PATCH v2] char/tpm: simplify duration calculation and eliminate smatch warning.

2012-11-15 Thread Peter Huewe
This patch changes the semantics of the duration calculation for an ordinal, by masking out the higher bits of a tpm command, which specify whether it's an TPM_PROTECTED_COMMAND, TPM_UNPROTECTED_COMMAND, TPM_CONNECTION_COMMAND, TPM_CONNECTION_COMMAND, TPM_VENDOR_COMMAND. (See TPM Main Spec Part 2 S