Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757364Ab2EBUyj (ORCPT ); Wed, 2 May 2012 16:54:39 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:35836 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1756407Ab2EBUyi (ORCPT ); Wed, 2 May 2012 16:54:38 -0400 X-Authenticated: #12255092 X-Provags-ID: V01U2FsdGVkX1/yreFYW2vyTYAV6v68Wtivbm/s8lCbkmwOQrwlXa Iesd+VD216HLY2 From: Peter =?iso-8859-1?q?H=FCwe?= To: Bryan Freed Subject: Re: [PATCH] CHROMIUM: tpm: tpm_tis_i2c: Lock the I2C adapter for a sequence of requests. Date: Wed, 2 May 2012 22:54:33 +0200 User-Agent: KMail/1.13.7 (Linux/3.3.3; KDE/4.7.4; x86_64; ; ) Cc: Peter Huewe , Rajiv Andrade , tpmdd@selhorst.net, tpmdd-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Olof Johansson References: <1335967293-7728-1-git-send-email-peter.huewe@infineon.com> <20120502181435.GF16981@andi> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201205022254.33707.PeterHuewe@gmx.de> X-Y-GMX-Trusted: 0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 974 Lines: 22 Am Mittwoch 02 Mai 2012, 21:06:14 schrieb Bryan Freed: > We could (in the unmodified version of this driver) replace all the > iic_tpm_read() calls of one byte (which sends an address byte before > reading a data byte) with an i2c_smbus_read_byte_command() call which > does the same thing. Unfortunately we have to use two seperate transfers (write/read) for a single byte read as the device does not support "repeated start" conditions and will simply fail to respond. The device has some quirks that the driver has to workaround, one is the repeated start problem, the other is the locking of the device. If you can come up with a better solution I'd like to try it out if it's compatible with the device. Thanks, Peter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/