All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jarkko Sakkinen <jarkko@kernel.org>
To: Borys Movchan <borysmn@axis.com>, Peter Huewe <peterhuewe@gmx.de>,
	Jason Gunthorpe <jgg@ziepe.ca>
Cc: kernel@axis.com, linux-integrity@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v6] tpm: Add Upgrade/Reduced mode support for TPM2 modules
Date: Thu, 30 Sep 2021 19:31:30 +0300	[thread overview]
Message-ID: <2890f582d78ea1d486ddbc97b90b90123819cb9c.camel@kernel.org> (raw)
In-Reply-To: <59f8d5a835ff0f02c9efe0ecff0abbe1b4f08111.camel@kernel.org>

On Thu, 2021-09-30 at 19:28 +0300, Jarkko Sakkinen wrote:
> static inline bool tpm_is_firmware_upgrade(void)
> {
> 	return chip->flags & TPM_CHIP_FLAG_FIRMWARE_UPGRADE_MODE;
> }

Ugh, here's refined and fixed version:

static inline bool tpm_in_firmware_mode(struct tpm_chip *chip)
{
	return chip->flags & TPM_CHIP_FLAG_FIRMWARE_MODE;
}

/Jarkko


  reply	other threads:[~2021-09-30 16:31 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-30 16:02 [PATCH v6] tpm: Add Upgrade/Reduced mode support for TPM2 modules Borys Movchan
2021-09-30 16:28 ` Jarkko Sakkinen
2021-09-30 16:31   ` Jarkko Sakkinen [this message]
2021-12-08  9:30   ` Axel Jonsson
2021-12-08  9:53   ` [PATCH v7] " Axel Jonsson
2021-12-11 14:15     ` Jarkko Sakkinen
2021-12-13  7:06       ` Axel Jonsson
2021-12-13  7:09       ` [PATCH v8] " Axel Jonsson
2021-12-21  8:35         ` Jarkko Sakkinen
2021-09-30 16:30 ` [PATCH v6] " Borys Movchan

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=2890f582d78ea1d486ddbc97b90b90123819cb9c.camel@kernel.org \
    --to=jarkko@kernel.org \
    --cc=borysmn@axis.com \
    --cc=jgg@ziepe.ca \
    --cc=kernel@axis.com \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterhuewe@gmx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.