On Thu, 30 May 2019 at 20:58, Sasha Levin <sashal@xxxxxxxxxx> wrote:
+ /* Open context with TEE driver */
+ pvt_data->ctx = tee_client_open_context(NULL, ftpm_tee_match, NULL,
+ NULL);
+ if (IS_ERR(pvt_data->ctx)) {
+ dev_err(dev, "%s:tee_client_open_context failed\n", __func__);
Is this well tested? I see this misleading error multiple times as
follows although TEE driver works pretty well.
Module built with "CONFIG_TCG_FTPM_TEE=y"
[ 1.436878] ftpm-tee tpm@0: ftpm_tee_probe:tee_client_open_context failed
[ 1.509471] ftpm-tee tpm@0: ftpm_tee_probe:tee_client_open_context failed
[ 1.517268] ftpm-tee tpm@0: ftpm_tee_probe:tee_client_open_context failed
[ 1.525596] ftpm-tee tpm@0: ftpm_tee_probe:tee_client_open_context failed