]> git.karo-electronics.de Git - linux-beck.git/commit
tmp/tpm_crb: implement runtime pm for tpm_crb
authorWinkler, Tomas <tomas.winkler@intel.com>
Sat, 8 Oct 2016 11:59:39 +0000 (14:59 +0300)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sun, 27 Nov 2016 23:31:30 +0000 (01:31 +0200)
commite74f2f76c13770bb8e004475a933923e9c92723d
treec011ae10c69e72a23f77e05342a0ff43f560c023
parentc58bd34cec4c05f8e3362a79ae94de9f405c39b5
tmp/tpm_crb: implement runtime pm for tpm_crb

Utilize runtime_pm for driving tpm crb idle states.
The framework calls cmd_ready from the pm_runtime_resume handler
and go idle from the pm_runtime_suspend handler.
The TPM framework should wake the device before transmit and receive.
In case the runtime_pm framework is not compiled in or enabled, the device
will be in the permanent ready state.

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