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 16:24:46 +0300 [thread overview]
Message-ID: <YouLHqOHM8eYGow6@hera> (raw)
In-Reply-To: <a35e85f8-e7a0-0256-4de5-f478acb57228@linux.ibm.com>
On Mon, May 23, 2022 at 08:19:51AM -0500, Eddie James wrote:
>
> On 5/23/22 01:12, Ilias Apalodimas wrote:
> > 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
>
>
> Yes, I think so. I tested with an older u-boot (openbmc uses a modified
> v2019.04) with all the TPM core patches, and I think I missed this bit in
> rebasing.
No worries, I can fix this while merging, there's no need for a v2. I
don't see anything obviously wrong with the patchset, unfortunately I
don't have an i2c tpm to test. Anyway
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
P.S: Was the new TIS API useful?
Thanks
/Ilias
>
> Thanks,
>
> Eddie
>
>
> >
> > Regards
> > /Ilias
> >
> > > +};
> > > --
> > > 2.27.0
> > >
next prev parent reply other threads:[~2022-05-23 13:24 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
2022-05-23 13:19 ` Eddie James
2022-05-23 13:24 ` Ilias Apalodimas [this message]
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=YouLHqOHM8eYGow6@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