Re: [PATCH v10 3/3] tpm: Add support for TPM device over I2C bus

2023-03-28 Thread Cédric Le Goater
On 3/27/23 20:33, Ninad Palsule wrote: Qemu already supports devices attached to ISA and sysbus. This drop adds support for the I2C bus attached TPM devices. I2C model only supports TPM2 protocol. This commit includes changes for the common code. - Added I2C emulation model. Logic was added in

Re: [PATCH v10 3/3] tpm: Add support for TPM device over I2C bus

2023-03-27 Thread Stefan Berger
On 3/27/23 14:33, Ninad Palsule wrote: +i2cst->csum_enable = TPM_DATA_CSUM_ENABLED; I'll take it from here but will squash in this change so that csum can be turned off: i2cst->csum_enable = i2cst->data[1] & TPM_DATA_CSUM_ENABLED; Reviewed-by: Stefan Berger Tested-by:

[PATCH v10 3/3] tpm: Add support for TPM device over I2C bus

2023-03-27 Thread Ninad Palsule
Qemu already supports devices attached to ISA and sysbus. This drop adds support for the I2C bus attached TPM devices. I2C model only supports TPM2 protocol. This commit includes changes for the common code. - Added I2C emulation model. Logic was added in the model to temporarily cache the data