tpm/st33zp24/spi: Improve st33zp24_spi_evaluate_latency
authorChristophe RICARD <christophe.ricard@gmail.com>
Sat, 13 Feb 2016 15:15:30 +0000 (16:15 +0100)
committerJarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Sat, 25 Jun 2016 14:26:35 +0000 (17:26 +0300)
commit4ef2aa3c1bfe237cb349a52ed6f68e4cbfc5ccb9
tree43f1c46f226cf28aecaeb6f71c88580972a329a5
parent300796cdb5ba624031a5e1e5992e670eb457c231
tpm/st33zp24/spi: Improve st33zp24_spi_evaluate_latency

Add check in st33zp24_spi_evaluate_latency helping to diagnose if the chip
is present or in a bad state.

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Reviewed-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
drivers/char/tpm/st33zp24/spi.c