public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ilias Apalodimas <ilias.apalodimas@linaro.org>
To: Eddie James <eajames@linux.ibm.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH 2/2] tpm: add support for TPMv2.x I2C chips
Date: Mon, 23 May 2022 09:12:05 +0300	[thread overview]
Message-ID: <YosltcQpkFGnAT46@hera> (raw)
In-Reply-To: <20220513183000.47392-3-eajames@linux.ibm.com>

Hi Eddie, 

Thanks for the patch.

[...]

> +static const struct tpm_tis_chip_data tpm_tis_std_chip_data = {
> +	.pcr_count = 24,
> +	.pcr_select_min = 3,
> +};
> +
> +static const struct udevice_id tpm_tis_i2c_ids[] = {
> +	{
> +		.compatible = "nuvoton,npct75x",
> +		.data = (ulong)&tpm_tis_std_chip_data,
> +	},
> +	{
> +		.compatible = "tcg,tpm-tis-i2c",
> +		.data = (ulong)&tpm_tis_std_chip_data,
> +	},
> +	{ }
> +};
> +
> +U_BOOT_DRIVER(tpm_tis_i2c) = {
> +	.name = "tpm_tis_i2c",
> +	.id = UCLASS_TPM,
> +	.of_match = tpm_tis_i2c_ids,
> +	.ops = &tpm_tis_i2c_ops,
> +	.probe = tpm_tis_i2c_probe,
> +	.remove = tpm_tis_i2c_remove,
> +	.priv_auto_alloc_size = sizeof(struct tpm_chip),

Shouldn't this be .priv_auto only? IIRC we got rid of the
.priv_auto_alloc_size a while back?  If so I can fix this while merging

Regards
/Ilias

> +};
> -- 
> 2.27.0
> 

  parent reply	other threads:[~2022-05-23  6:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-13 18:29 [PATCH 0/2] tpm: Add support for TPMv2.x I2C chips Eddie James
2022-05-13 18:29 ` [PATCH 1/2] tpm: core: Set timeouts before requesting locality Eddie James
2022-05-17  9:24   ` Ilias Apalodimas
2022-05-19  0:27   ` Joel Stanley
2022-05-13 18:30 ` [PATCH 2/2] tpm: add support for TPMv2.x I2C chips Eddie James
2022-05-19  0:26   ` Joel Stanley
2022-05-23  6:12   ` Ilias Apalodimas [this message]
2022-05-23 13:19     ` Eddie James
2022-05-23 13:24       ` Ilias Apalodimas
2022-05-27  7:26         ` Joel Stanley
2022-05-27  7:41           ` Ilias Apalodimas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YosltcQpkFGnAT46@hera \
    --to=ilias.apalodimas@linaro.org \
    --cc=eajames@linux.ibm.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox