From: Miquel Raynal <miquel.raynal@bootlin.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 26/32] tpm: add the possibility to reset the chip with a gpio
Date: Tue, 15 May 2018 18:32:43 +0200 [thread overview]
Message-ID: <20180515183243.674e80d1@xps13> (raw)
In-Reply-To: <CAPnjgZ1CB==QAjMHeDjq2PEK2Lu4Q8ASSAPRpFnVJP8dbqfbPQ@mail.gmail.com>
Simon, Tom,
On Wed, 16 May 2018 02:05:01 +1000, Simon Glass <sjg@chromium.org>
wrote:
> On 15 May 2018 at 19:57, Miquel Raynal <miquel.raynal@bootlin.com> wrote:
> > On some designs, the reset line could not be connected to the SoC reset
> > line, in this case, request the GPIO and ensure the chip gets reset.
> >
> > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
> > ---
> > drivers/tpm/tpm2_tis_spi.c | 17 +++++++++++++++++
> > 1 file changed, 17 insertions(+)
>
> Reviewed-by: Simon Glass <sjg@chromium.org>
>
> Question below
>
> >
> > diff --git a/drivers/tpm/tpm2_tis_spi.c b/drivers/tpm/tpm2_tis_spi.c
> > index 6a4d5284c9..1c7f8f3673 100644
> > --- a/drivers/tpm/tpm2_tis_spi.c
> > +++ b/drivers/tpm/tpm2_tis_spi.c
> > @@ -24,6 +24,9 @@
> > #include <linux/compiler.h>
> > #include <linux/types.h>
> > #include <linux/unaligned/be_byteshift.h>
> > +#ifdef CONFIG_DM_GPIO
> > +#include <asm-generic/gpio.h>
> > +#endif
> >
> > #include "tpm_tis.h"
> > #include "tpm_internal.h"
> > @@ -574,6 +577,20 @@ static int tpm_tis_spi_probe(struct udevice *dev)
> > struct tpm_chip_priv *priv = dev_get_uclass_priv(dev);
> > struct tpm_chip *chip = dev_get_priv(dev);
> > int ret;
> > +#ifdef CONFIG_DM_GPIO
>
> Can this use if (IS_ENABLED(CONFIG_DM_GPIO)) ?
>
> It helps to improve build coverage.
>
Sure!
Tom, I guess the series needs the following changes:
- update the old license identifiers
- two occurrences of "#ifdef CONFIG_DM_GPIO" in this patch to be
replaced by "#if (IS_ENABLED(CONFIG_DM_GPIO))"
I can either repost a new iteration of the whole series/just this patch
or let you make the changes. Let me know what is best for you.
Thanks you very much, both of you, for your guidance.
Regards,
Miquèl
--
Miquel Raynal, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2018-05-15 16:32 UTC|newest]
Thread overview: 112+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-15 9:56 [U-Boot] [PATCH v4 00/32] Introduce TPMv2.0 support Miquel Raynal
2018-05-15 9:56 ` [U-Boot] [PATCH v4 01/32] tpm: remove redundant blank line Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-15 16:02 ` Simon Glass
2018-05-26 15:53 ` [U-Boot] [U-Boot,v4,01/32] " Tom Rini
2018-05-15 9:56 ` [U-Boot] [PATCH v4 02/32] tpm: remove extra spaces between a function and its opening bracket Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-15 16:02 ` Simon Glass
2018-05-26 15:53 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:56 ` [U-Boot] [PATCH v4 03/32] tpm: substitute deprecated uint<x>_t types with their u<x> equivalent Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-15 16:04 ` Simon Glass
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 04/32] tpm: align arguments with open parenthesis Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-15 16:02 ` Simon Glass
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 05/32] tpm: use the BIT() macro where applicable Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-15 16:03 ` Simon Glass
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 06/32] tpm: fix spelling Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-15 16:03 ` Simon Glass
2018-05-26 15:54 ` [U-Boot] [U-Boot,v4,06/32] " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 07/32] tpm: add extra blank lines between declarations and code Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-15 16:04 ` Simon Glass
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 08/32] tpm: add Revision ID field in the chip structure Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 09/32] tpm: prepare introduction of TPMv2.x support in Kconfig Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-27 22:22 ` Miquel Raynal
2018-05-15 9:57 ` [U-Boot] [PATCH v4 10/32] tpm: disociate TPMv1.x specific and generic code Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 11/32] tpm: add missing parameter in private data structure description Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-15 16:04 ` Simon Glass
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 12/32] tpm: prepare support for TPMv2.x commands Miquel Raynal
2018-05-15 15:58 ` Tom Rini
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 13/32] tpm: add macros to enhance TPM commands readability Miquel Raynal
2018-05-15 15:59 ` Tom Rini
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 14/32] tpm: add possible traces to analyze buffers returned by the TPM Miquel Raynal
2018-05-15 15:59 ` Tom Rini
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 15/32] tpm: report driver error code to upper layer Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:54 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 16/32] tpm: add TPM2_Startup command support Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 17/32] tpm: add TPM2_SelfTest " Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 18/32] tpm: add TPM2_Clear " Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot,v4,18/32] " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 19/32] tpm: add TPM2_PCR_Extend " Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 20/32] tpm: add TPM2_PCR_Read " Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 21/32] tpm: add TPM2_GetCapability " Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 22/32] tpm: add dictionary attack mitigation commands support Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 23/32] tpm: add TPM2_HierarchyChangeAuth command support Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 24/32] tpm: add PCR authentication commands support Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 25/32] tpm: add support for TPMv2.x SPI modules Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-15 16:04 ` Simon Glass
2018-05-15 16:20 ` Miquel Raynal
2018-05-15 16:26 ` Simon Glass
2018-05-26 15:55 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 26/32] tpm: add the possibility to reset the chip with a gpio Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-15 16:05 ` Simon Glass
2018-05-15 16:32 ` Miquel Raynal [this message]
2018-05-15 17:01 ` Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 27/32] doc: device-tree-bindings: add TIS TPMv2.0 SPI module info Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 28/32] test/py: add TPMv2.x test suite Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot,v4,28/32] " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 29/32] tpm: add a Sandbox TPMv2.x driver Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:55 ` [U-Boot] [U-Boot,v4,29/32] " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 30/32] doc: device-tree-bindings: add Sandbox TPMv2.0 module info Miquel Raynal
2018-05-15 16:00 ` Tom Rini
2018-05-26 15:56 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 31/32] sandbox: dts: add Sandbox TPMv2.x node Miquel Raynal
2018-05-15 16:01 ` Tom Rini
2018-05-26 15:56 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 9:57 ` [U-Boot] [PATCH v4 32/32] configs: add TPMv2.x support in Sandbox Miquel Raynal
2018-05-15 16:01 ` Tom Rini
2018-05-26 15:56 ` [U-Boot] [U-Boot, v4, " Tom Rini
2018-05-15 16:01 ` [U-Boot] [PATCH v4 00/32] Introduce TPMv2.0 support Tom Rini
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=20180515183243.674e80d1@xps13 \
--to=miquel.raynal@bootlin.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