tpm_crb: encapsulate crb_wait_for_reg_32
authorJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Wed, 8 Feb 2017 11:11:36 +0000 (13:11 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 3 Apr 2017 19:46:01 +0000 (22:46 +0300)
commit38eb24ebb01f875f812aa869c4cd62959510111c
treea639ccf403bfb3b28137088a18ccfab0e57b8f15
parent13b1f4a571cc1ffe9c7d5bb894318cabdd81fcc2
tpm_crb: encapsulate crb_wait_for_reg_32

Encapsulated crb_wait_for_reg32() so that state changes in other CRB
registers than TPM_CRB_CTRL_REQ_x can be waited.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Tested-by: Gang Wei <gang.wei@intel.com>
drivers/char/tpm/tpm_crb.c