]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tpm/tpm_crb: enter the low power state upon device suspend
authorWinkler, Tomas <tomas.winkler@intel.com>
Sun, 5 Mar 2017 23:53:35 +0000 (01:53 +0200)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Mon, 3 Apr 2017 19:46:00 +0000 (22:46 +0300)
commit095fc30c2c8d2c63ec88745f57711f05af617581
tree241ca4cb8800e4374e3e3941665fd21bc08f04ff
parent4bf4b4ed9de40eb58232a9f576391fdc5e13a7b4
tpm/tpm_crb: enter the low power state upon device suspend

This fix enables a platform to enter the idle state (suspend-to-idle)

The driver needs to request explicitly go_idle upon completion
from the pm suspend handler.
The runtime pm is disabled on suspend during prepare state by calling
pm_runtime_get_noresume, hence we cannot relay on runtime pm to leave
the device in low power state. Symmetrically cmdReady is called
upon resume.

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