From: Philippe REYNES <philippe.reynes@softathome.com>
To: u-boot@lists.denx.de
Subject: [PATCH V3 1/2] tpm: add a helper to iterate on all tpm devices
Date: Thu, 9 Jan 2020 19:03:59 +0100 (CET) [thread overview]
Message-ID: <140338679.1451327.1578593039498.JavaMail.zimbra@softathome.com> (raw)
In-Reply-To: <1578591946-1139-1-git-send-email-philippe.reynes@softathome.com>
Hi,
Sorry, I forgot to report the Reviewed-by of Miquel Raynal.
> Objet: [PATCH V3 1/2] tpm: add a helper to iterate on all tpm devices
> This add a helper for_each_tpm_device that run
> through all the tpm (1.x and 2.0) devices.
>
> Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
> ---
> include/tpm-common.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> Changelog:
> v3:
> - use the helper uclass_foreach_dev_probe
> v2:
> - new patch, add an helper for tpm device (idea from Miquel)
>
> diff --git a/include/tpm-common.h b/include/tpm-common.h
> index f9c2ca2..702cd6e 100644
> --- a/include/tpm-common.h
> +++ b/include/tpm-common.h
> @@ -293,4 +293,7 @@ static inline cmd_tbl_t *get_tpm2_commands(unsigned int
> *size)
> */
> enum tpm_version tpm_get_version(struct udevice *dev);
>
> +/* Iterate on all TPM devices */
> +#define for_each_tpm_device(dev) uclass_foreach_dev_probe(UCLASS_TPM, (dev))
> +
> #endif /* __TPM_COMMON_H */
> --
> 2.7.4
Regards,
Philippe
next prev parent reply other threads:[~2020-01-09 18:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-09 17:45 [PATCH V3 1/2] tpm: add a helper to iterate on all tpm devices Philippe Reynes
2020-01-09 17:45 ` [PATCH V3 2/2] cmd: tpm: add a subcommand device Philippe Reynes
2020-01-09 18:02 ` Philippe REYNES
2020-02-05 17:57 ` sjg at google.com
2020-01-09 18:03 ` Philippe REYNES [this message]
2020-02-05 17:57 ` [PATCH V3 1/2] tpm: add a helper to iterate on all tpm devices sjg at google.com
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=140338679.1451327.1578593039498.JavaMail.zimbra@softathome.com \
--to=philippe.reynes@softathome.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