Remove useless i2c read on TPM_INT_ENABLE and TPM_INT_STATUS
Reviewed-by: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
goto _tpm_clean_answer;
}
- ret = I2C_READ_DATA(tpm_dev, TPM_INT_ENABLE, &intmask, 1);
- if (ret < 0)
- goto _tpm_clean_answer;
-
intmask |= TPM_INTF_CMD_READY_INT
| TPM_INTF_STS_VALID_INT
| TPM_INTF_DATA_AVAIL_INT;
if (ret < 0)
goto _tpm_clean_answer;
- ret = I2C_READ_DATA(tpm_dev, TPM_INT_STATUS, &intmask, 1);
- if (ret < 0)
- goto _tpm_clean_answer;
-
chip->vendor.irq = client->irq;
disable_irq_nosync(chip->vendor.irq);