hdata/tpmrel: detect tpm not present by looking up the stinfo->status
hdata/tpmrel: detect tpm not present by looking up the stinfo->status

Skiboot detects if tpm is present by checking if a secureboot_tpm_info
entry exists. However, if a tpm is not present, hostboot also creates a
secureboot_tpm_info entry. In this case, hostboot creates an empty
entry, but setting the field tpm_status to TPM_NOT_PRESENT.

This detects if tpm is not present by looking up the stinfo->status.

This fixes the "TPMREL: TPM node not found for chip_id=0 (HB bug)"
issue, reproduced when skiboot is running on a system that has no tpm.

Signed-off-by: Claudio Carvalho <e431f4b4a17082357e3d270b337bd485cc81832b@linux.vnet.ibm.com>
Tested-by: Pridhiviraj Paidipeddi <fd8ea14509c256cbd04eaa4ee745a213945e70a1@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <ec31ab75ddf977353c8f660f92ea8b23f64aef25@linux.ibm.com>

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