Message ID | c052075083b8975e9e8bea2dfd6223e6a2e57ea6.1468981325.git.apronin@chromium.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <tpmdd-devel-bounces@lists.sourceforge.net> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 68901600CB for <patchwork-tpmdd-devel@patchwork.kernel.org>; Wed, 20 Jul 2016 02:34:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 59435268AE for <patchwork-tpmdd-devel@patchwork.kernel.org>; Wed, 20 Jul 2016 02:34:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4DEAA2793B; Wed, 20 Jul 2016 02:34:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AE98226E81 for <patchwork-tpmdd-devel@patchwork.kernel.org>; Wed, 20 Jul 2016 02:34:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=sfs-ml-4.v29.ch3.sourceforge.com) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from <tpmdd-devel-bounces@lists.sourceforge.net>) id 1bPhLD-0000Ma-U6; Wed, 20 Jul 2016 02:34:31 +0000 Received: from sog-mx-4.v43.ch3.sourceforge.com ([172.29.43.194] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from <apronin@chromium.org>) id 1bPhLC-0000MU-KH for tpmdd-devel@lists.sourceforge.net; Wed, 20 Jul 2016 02:34:30 +0000 Received-SPF: pass (sog-mx-4.v43.ch3.sourceforge.com: domain of chromium.org designates 209.85.220.47 as permitted sender) client-ip=209.85.220.47; envelope-from=apronin@chromium.org; helo=mail-pa0-f47.google.com; Received: from mail-pa0-f47.google.com ([209.85.220.47]) by sog-mx-4.v43.ch3.sourceforge.com with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) id 1bPhLB-0000QT-VJ for tpmdd-devel@lists.sourceforge.net; Wed, 20 Jul 2016 02:34:30 +0000 Received: by mail-pa0-f47.google.com with SMTP id pp5so12941804pac.3 for <tpmdd-devel@lists.sourceforge.net>; Tue, 19 Jul 2016 19:34:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=lqPIglbOxDUhg2c7/GmrELaOgvmRF2wT0pLXCHETdI0=; b=gc6S6GB3qf5BR2sr95cFdvIK87qinL3pAuEPrmLqWggTB1exeaVhDGa5IDz8T0b2jC 1Qh04j8y8Hxi7XVz68SFN1e/tjBGFgR7tG4bUS/oLTS7VVvD+XEGh7ZbZ29ykSkoSD9g wDwk59SzakG8gRWuUqoMnXlo9o5+eS9HrsYh3hY1Fo737BhFPEpTXW9fyXxcUt1PCxoz 7y47hCI85e7428P4m3ZC0L/HbKmyG8IHKrf9sbCz28yobCCOfZhgIIbVws4/R0vMtGmC R/Ec0va8QLx4DN7M71o6QzrrX6cHyFHhBIFAr7nb53LSCMJvX542d6drQoNL7WdDTX/M ZDHQ== X-Gm-Message-State: ALyK8tLburvojOnvjY4xXSJQrVOBF/JCWVeY2/pLzkglXtWCo9z1Yw9jzRmuVnmnvHlyKQxR X-Received: by 10.66.162.4 with SMTP id xw4mr38628690pab.97.1468982064267; Tue, 19 Jul 2016 19:34:24 -0700 (PDT) Received: from apronin0.mtv.corp.google.com ([172.22.64.136]) by smtp.gmail.com with ESMTPSA id x184sm324300pfd.70.2016.07.19.19.34.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jul 2016 19:34:23 -0700 (PDT) From: Andrey Pronin <apronin@chromium.org> To: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com> Date: Tue, 19 Jul 2016 19:34:20 -0700 Message-Id: <c052075083b8975e9e8bea2dfd6223e6a2e57ea6.1468981325.git.apronin@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <cover.1468981325.git.apronin@chromium.org> References: <1468546745-14646-1-git-send-email-apronin@chromium.org> <cover.1468981325.git.apronin@chromium.org> In-Reply-To: <cover.1468981325.git.apronin@chromium.org> References: <1468546745-14646-1-git-send-email-apronin@chromium.org> <cover.1468981325.git.apronin@chromium.org> X-Headers-End: 1bPhLB-0000QT-VJ Cc: Christophe Ricard <christophe.ricard@gmail.com>, linux-kernel@vger.kernel.org, tpmdd-devel@lists.sourceforge.net Subject: [tpmdd-devel] [PATCH v2 2/2] tpm_tis_spi: add max xfer size X-BeenThere: tpmdd-devel@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: Tpm Device Driver maintainance <tpmdd-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/tpmdd-devel>, <mailto:tpmdd-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=tpmdd-devel> List-Post: <mailto:tpmdd-devel@lists.sourceforge.net> List-Help: <mailto:tpmdd-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/tpmdd-devel>, <mailto:tpmdd-devel-request@lists.sourceforge.net?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: tpmdd-devel-bounces@lists.sourceforge.net X-Virus-Scanned: ClamAV using ClamSMTP |
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)
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(+)