tpm_i2c_nuvoton: handle errors after checking the tpm fifo status
tpm_i2c_nuvoton: handle errors after checking the tpm fifo status

The functions tpm_is_expecting() and tpm_is_data_avail() ignore the
errors returned by the tpm-i2c interface.

This adds code to handle erros after checking the tpm fifo status. The
tpm_is_expecting() and tpm_is_data_avail() functions are replaced by
tpm_wait_for_fifo_status().

Fixes: 56ad053c3e8bf0764ad5878cb018f00a389d30cf
Signed-off-by: Claudio Carvalho <e431f4b4a17082357e3d270b337bd485cc81832b@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.vnet.ibm.com>

legoater/skiboot,shenki/skiboot,qemu/skiboot,qemu/skiboot,shenki/skiboot,legoater/skiboot,shenki/skiboot,stewart-ibm/skiboot,mikey/skiboot,qemu/skiboot,open-power/skiboot,open-power/skiboot,legoater/skiboot,qemu/skiboot,shenki/skiboot,qemu/skiboot,stewart-ibm/skiboot,stewart-ibm/skiboot,shenki/skiboot,open-power/skiboot,open-power/skiboot,mikey/skiboot,legoater/skiboot,open-power/skiboot,mikey/skiboot,legoater/skiboot