Re: [PATCH V3 5/6] tpm: Add a driver for Loongson TPM device

2025-02-20 Thread Jarkko Sakkinen
On Thu, Feb 20, 2025 at 07:23:42PM +0800, Qunqin Zhao wrote: > > 在 2025/2/19 下午9:44, Jarkko Sakkinen 写道: > > > + > > > +static const struct tpm_class_ops lsse_tpm_ops = { > > > + .flags = TPM_OPS_AUTO_STARTUP, > > > + .recv = tpm_ls_recv, > > > + .send = tpm_ls_send, > > > +}; > > > + > > > +stati

Re: [PATCH V3 5/6] tpm: Add a driver for Loongson TPM device

2025-02-20 Thread Qunqin Zhao
在 2025/2/19 下午9:44, Jarkko Sakkinen 写道: + +static const struct tpm_class_ops lsse_tpm_ops = { + .flags = TPM_OPS_AUTO_STARTUP, + .recv = tpm_ls_recv, + .send = tpm_ls_send, +}; + +static int lsse_tpm_probe(struct platform_device *pdev) tpm_lsse_ OK. + +static struct platfor

Re: [PATCH V3 5/6] tpm: Add a driver for Loongson TPM device

2025-02-19 Thread Jarkko Sakkinen
On Wed, Feb 19, 2025 at 03:33:49PM +0800, Qunqin Zhao wrote: > Loongson security engine supports random number generation, hash, > symmetric encryption and asymmetric encryption. Based on these > encryption functions, TPM2 have been implemented in the Loongson > security engine firmware. This drive

[PATCH V3 5/6] tpm: Add a driver for Loongson TPM device

2025-02-18 Thread Qunqin Zhao
Loongson security engine supports random number generation, hash, symmetric encryption and asymmetric encryption. Based on these encryption functions, TPM2 have been implemented in the Loongson security engine firmware. This driver is responsible for copying data into the memory visible to the firm