From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751530AbdB0StS (ORCPT ); Mon, 27 Feb 2017 13:49:18 -0500 Received: from mail-it0-f67.google.com ([209.85.214.67]:35401 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750971AbdB0StQ (ORCPT ); Mon, 27 Feb 2017 13:49:16 -0500 MIME-Version: 1.0 In-Reply-To: <20170222140134.GA23586@lunn.ch> References: <20170221144500.502-1-enric.balletbo@collabora.com> <20170221162948.GD25818@lunn.ch> <20170222140134.GA23586@lunn.ch> From: Enric Balletbo Serra Date: Mon, 27 Feb 2017 19:48:21 +0100 Message-ID: Subject: Re: [tpmdd-devel] [PATCH 1/2] tpm: Apply an adapterlimit for retransmission. To: Wolfram Sang Cc: Andrew Lunn , Enric Balletbo i Serra , Peter Huewe , Marcel Selhorst , apronin@google.com, tpmdd-devel@lists.sourceforge.net, linux-kernel Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Bounce to Wolfram Sang 2017-02-22 15:01 GMT+01:00 Andrew Lunn : > On Wed, Feb 22, 2017 at 12:16:08PM +0100, Enric Balletbo i Serra wrote: >> Hi Andrew, >> >> Removing Bryan Freed from the loop as seems his email is not valid anymore. I already CC'ied Andrey which is doing the TPM bit in chromeos kernel. >> >> On 21/02/17 17:29, Andrew Lunn wrote: >> > On Tue, Feb 21, 2017 at 03:44:59PM +0100, Enric Balletbo i Serra wrote: >> >> From: Bryan Freed >> >> >> >> When the I2C Infineon part is attached to an I2C adapter that imposes >> >> a size limitation, large requests will fail -EINVAL. >> >> Retry them with size backoff without re-issuing the 0x05 command >> >> as this appears to occasionally put the TPM in a bad state. >> > >> > Hi Enric >> > >> > Rather than trying small and smaller transfers, would it not be better >> > to get the i2c core to expose the quirk info about transfer limits? >> > >> >> Sounds a good idea to me, I guess the quirk info can be accessed with >> >> tpm_dev.client->adapter->quirks->max_read_len >> >> so I think we don't need to touch the i2c core. I'll propose a second version of the patch. > > Hi Enric > > You should probably ask Wolfram Sang , the i2c > subsystem maintainer. He may prefer adding an API call. > > Andrew