From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752042AbcG1WxW (ORCPT ); Thu, 28 Jul 2016 18:53:22 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:33826 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751896AbcG1WxT (ORCPT ); Thu, 28 Jul 2016 18:53:19 -0400 Date: Thu, 28 Jul 2016 15:53:16 -0700 From: Dmitry Torokhov To: Andrey Pronin Cc: Jarkko Sakkinen , Peter Huewe , Marcel Selhorst , Jason Gunthorpe , tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Christophe Ricard , smbarber@chromium.org, dianders@chromium.org Subject: Re: [PATCH v3 2/2] tpm_tis_spi: add max xfer size Message-ID: <20160728225316.GB28623@dtor-ws> References: <1468546745-14646-1-git-send-email-apronin@chromium.org> <1469677797-74304-3-git-send-email-apronin@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1469677797-74304-3-git-send-email-apronin@chromium.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 27, 2016 at 08:49:57PM -0700, Andrey Pronin wrote: > 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 Reviewed-by: Dmitry Torokhov > --- > 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 > -- Dmitry