Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp4941445imm; Tue, 26 Jun 2018 03:18:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK7rjmTfqupkn3AR8ORKN8qrr/368Wzilreso1KGQAF6yhwnpSDOXVOQfKv1Nl/5x71uOPi X-Received: by 2002:a63:b213:: with SMTP id x19-v6mr792710pge.393.1530008327791; Tue, 26 Jun 2018 03:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530008327; cv=none; d=google.com; s=arc-20160816; b=RjEvbYsefodNgd89P5v71ykwfoYzu6fFuDsM2wmSPTz/B6bRp1JKnN8GWxfPUrRIyZ Ub1bL6CLi12kl1l5eDD9joQVAGDAwXJZEK6b4A2OWRMZ1I35F07CJqIE19GohtkFE0wj 49nQCYroFBHm8AZWnM1ZaxfmQkrF7X3QVjNMgQGiXUMybpEZbU45oCg5lL3ca1xuauiD r2GS4RRJmNp3JTRongmyT1hJQzNC/ka0QE91jYcu+DbSVG0LxMv7c2Al8zUNWPHbWZ0f kBi06VFTJ4Zxy1EOvJ6SHe7WffmOlbqwv8Z/N1NHY9cEmtVDf4T1wUuISF6wj7N6Z/bp Jpqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature:arc-authentication-results; bh=vGVwH+G6joSfXKeOTDDxYCO9zVFQtW+bWvu4Jbra2YM=; b=xs6CRiSP3BLPMp8V1I0KNVWjWeNEmMuOvexNAosHxzgXGfvCdSDLpaJAf7h8qqSbV6 z3JC+E+DPUjoEHeHY40CRlZ66inIhLUqX8eyMaNyvbN9xm0A3ePg9j7rQk7RxD/XS3ZF BR67UmBf4eKhFOJidKdY3c5xX57XkB5f3vhAXtWFcRp0FMAG7c3BNSYjNC3esE05/kpM 0IJIUd/OclRRnoC5riXTnW1AI82iS0oIk/lmMovDyV9O91P+MPU5XDxXwsUWb8wTUNdS EngwWb8AQvKHCPHZ7oALVZl7tiOQvzmPnPRN7h7Ao6L17VVWJIUTvDDj+P7hpdQaQ1S2 7TSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=QqV2jC9q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=infineon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i130-v6si1101961pgd.691.2018.06.26.03.18.33; Tue, 26 Jun 2018 03:18:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infineon.com header.s=IFXMAIL header.b=QqV2jC9q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=infineon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934544AbeFZKRp (ORCPT + 99 others); Tue, 26 Jun 2018 06:17:45 -0400 Received: from smtp11.infineon.com ([217.10.52.105]:57886 "EHLO smtp11.infineon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933509AbeFZKRk (ORCPT ); Tue, 26 Jun 2018 06:17:40 -0400 X-Greylist: delayed 609 seconds by postgrey-1.27 at vger.kernel.org; Tue, 26 Jun 2018 06:17:38 EDT DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infineon.com; i=@infineon.com; q=dns/txt; s=IFXMAIL; t=1530008260; x=1561544260; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=zrf7ZUH8tyF94Mm1aEx47Jqi5VHbvMuEHqKJk+dSlIk=; b=QqV2jC9qr/62psiUl4InvmTCU4qmJY3rX1H0jRaqmeAT42v2TsJ3Qess J12sm+CdaTjHo8m+/NS8uHQRIfRwnWWaBU6ivGYoveszTH/9nS0uegaWh lv0CKcOBR/QcF/wREIzlFaiY4mv2wjdhAjVXHwPlz61b0KMOnDhioL8E/ Q=; X-SBRS: None X-IronPort-AV: E=McAfee;i="5900,7806,8935"; a="83270583" X-IronPort-AV: E=Sophos;i="5.51,274,1526335200"; d="scan'208";a="83270583" Received: from unknown (HELO mucxv002.muc.infineon.com) ([172.23.11.17]) by smtp11.infineon.com with ESMTP/TLS/AES256-GCM-SHA384; 26 Jun 2018 12:07:29 +0200 Received: from MUCSE708.infineon.com (MUCSE708.infineon.com [172.23.7.82]) by mucxv002.muc.infineon.com (Postfix) with ESMTPS; Tue, 26 Jun 2018 12:07:28 +0200 (CEST) Received: from [10.154.32.64] (172.23.8.247) by MUCSE708.infineon.com (172.23.7.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1466.3; Tue, 26 Jun 2018 12:07:28 +0200 Subject: Re: [PATCH v2 01/10] tpm/tpm_i2c_infineon: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT) To: Jarkko Sakkinen , Peter Rosin CC: , Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , Brian Norris , Gregory Fong , Florian Fainelli , , Sekhar Nori , Kevin Hilman , Haavard Skinnemoen , Kukjin Kim , Krzysztof Kozlowski , Orson Zhai , Baolin Wang , Chunyan Zhang , Wolfram Sang , Guenter Roeck , Crt Mori , Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Dmitry Torokhov , Antti Palosaari , Mauro Carvalho Chehab , Michael Krufky , Lee Jones , , , , , , , References: <20180620051803.12206-1-peda@axentia.se> <20180620051803.12206-2-peda@axentia.se> <20180625102454.GA3845@linux.intel.com> From: Alexander Steffen Message-ID: <7703d6a2-b22c-104c-7390-b5143a504725@infineon.com> Date: Tue, 26 Jun 2018 12:07:21 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180625102454.GA3845@linux.intel.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [172.23.8.247] X-ClientProxiedBy: MUCSE706.infineon.com (172.23.7.80) To MUCSE708.infineon.com (172.23.7.82) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 25.06.2018 12:24, Jarkko Sakkinen wrote: > On Wed, Jun 20, 2018 at 07:17:54AM +0200, Peter Rosin wrote: >> Locking the root adapter for __i2c_transfer will deadlock if the >> device sits behind a mux-locked I2C mux. Switch to the finer-grained >> i2c_lock_bus with the I2C_LOCK_SEGMENT flag. If the device does not >> sit behind a mux-locked mux, the two locking variants are equivalent. >> >> Signed-off-by: Peter Rosin > > Studied enough so that I can give > > Reviewed-by: Jarkko Sakkinen > > Do not have hardware to test this, however. I don't have a mux-locked I2C mux either, but at least I can confirm that this change did not break my existing test setup (SLB9635/SLB9645 on Raspberry Pi 2B). Tested-by: Alexander Steffen Alexander