Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1451707

[PATCH v3 2/2] tpm_tis_spi: add max xfer size

From Andrey Pronin <apronin@chromium.org>
Newsgroups linux.kernel
Subject [PATCH v3 2/2] tpm_tis_spi: add max xfer size
Date 2016-07-28 06:00 +0200
Message-ID <rZKEh-AR-11@gated-at.bofh.it> (permalink)
References <rV0gF-qZ-9@gated-at.bofh.it> <rZKEh-AR-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Reject burstcounts larger than 64 bytes reported by tpm.
SPI Hardware Protocol defined in section 6.4 of TCG PTP
Spec supports up to 64 bytes of data in a transaction.

Signed-off-by: Andrey Pronin <apronin@chromium.org>
---
 drivers/char/tpm/tpm_tis_spi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/char/tpm/tpm_tis_spi.c b/drivers/char/tpm/tpm_tis_spi.c
index dbaad9c..b103373 100644
--- a/drivers/char/tpm/tpm_tis_spi.c
+++ b/drivers/char/tpm/tpm_tis_spi.c
@@ -206,6 +206,7 @@ static const struct tpm_tis_phy_ops tpm_spi_phy_ops = {
 	.read16 = tpm_tis_spi_read16,
 	.read32 = tpm_tis_spi_read32,
 	.write32 = tpm_tis_spi_write32,
+	.max_xfer_size = MAX_SPI_FRAMESIZE,
 };
 
 static int tpm_tis_spi_probe(struct spi_device *dev)
-- 
2.6.6

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 0/2] tpm: add optional max xfer size check Andrey Pronin <apronin@chromium.org> - 2016-07-28 06:00 +0200
  [PATCH v3 1/2] tpm_tis_core: add optional max xfer size check Andrey Pronin <apronin@chromium.org> - 2016-07-28 06:00 +0200
    Re: [PATCH v3 1/2] tpm_tis_core: add optional max xfer size check Dmitry Torokhov <dtor@chromium.org> - 2016-07-29 01:00 +0200
    Re: [PATCH v3 1/2] tpm_tis_core: add optional max xfer size check Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2016-08-09 10:20 +0200
  [PATCH v3 2/2] tpm_tis_spi: add max xfer size Andrey Pronin <apronin@chromium.org> - 2016-07-28 06:00 +0200
    Re: [PATCH v3 2/2] tpm_tis_spi: add max xfer size Dmitry Torokhov <dtor@chromium.org> - 2016-07-29 01:00 +0200
      Re: [PATCH v3 2/2] tpm_tis_spi: add max xfer size Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> - 2016-08-09 10:20 +0200

csiph-web