Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5047998imm; Tue, 26 Jun 2018 05:09:24 -0700 (PDT) X-Google-Smtp-Source: ADUXVKInrrkC+P3eGAyj9sisbIc5BLZzw6d9JCTiuHhv7m25nKH460kiMkRmTwQMh13Kp9qnPVqp X-Received: by 2002:a17:902:ba87:: with SMTP id k7-v6mr1323115pls.271.1530014964227; Tue, 26 Jun 2018 05:09:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530014964; cv=none; d=google.com; s=arc-20160816; b=DkKzCvmwuvwUc2UiGLS9EWU3+548PZaVShzbAUjO68DSXmv2uPOQVscDezXDyThVau vKJdG/CAmH5XHKZobqBQ38dS4q2KqHblg02poCfccnZkIuYz3utOZU5CbI1SZjwTv4Tz ETyDTtBqVWoqWv8tdAPPr6RL9bbKG6/16uiqApkJimpWnJFnBMQhROBbnhmH2vBZGJlJ m60vNtvii0m8/L2lfWvyzrhA7aTT1Vk1iXL8T7RaxkX1RsV2HkUUd2Hk81yWRWqmeZfP x3yMvJF1OLRzBodxd+fhWotlAK68j0KGFe6A8Le98xwZZd7limLa0XpQVRyF3v1iMvUR GHoA== 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:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=p38YHAX+bUN2Zd4wqKJ92gSRscLhskgfGiJ03fEAqXE=; b=yJomA8ribnmnvsGmQ+o6OFTnL2PShcynXxDf6VYnuuw9+5yKv6lDMgqK8p2xJwitNb g6c1Y41eJLtKP/7r0K9sAhjO784xyv+38sGvZvjQnQg1DaByyn8RKMwX1BxayyeP11Aw +LAbY2sJHSOqg0FlHQwaIrZ01oaPV0JYaCF44aN/pGbyrbRZXjMYr0N2NeyWfawcqSA7 Qm9/NSBEEl1KcvptDuQTZtDNXI9RIlMW2eIjcUXq3LeXVwqrFvak3Ky1hb0aHRJmi5IL TMf6tF4/rGJ+nOKWwIOHnCK0xNp9PRL2Ot7/7GAHwVrOL3jg6YbN5cA2gFu1f1JHCVuq kEBg== ARC-Authentication-Results: i=1; mx.google.com; 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=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b18-v6si1278752pge.666.2018.06.26.05.09.09; Tue, 26 Jun 2018 05:09:24 -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; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964871AbeFZMIY (ORCPT + 99 others); Tue, 26 Jun 2018 08:08:24 -0400 Received: from mga01.intel.com ([192.55.52.88]:29748 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933658AbeFZMIV (ORCPT ); Tue, 26 Jun 2018 08:08:21 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2018 05:08:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,274,1526367600"; d="scan'208";a="67372902" Received: from skovflem-mobl1.ger.corp.intel.com ([10.249.254.74]) by fmsmga001.fm.intel.com with ESMTP; 26 Jun 2018 05:08:01 -0700 Message-ID: <6131ffd5cd7455426ea5f68633d5a8c8dd8457bb.camel@linux.intel.com> Subject: Re: [PATCH v2 01/10] tpm/tpm_i2c_infineon: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT) From: Jarkko Sakkinen To: Alexander Steffen , Peter Rosin Cc: linux-kernel@vger.kernel.org, Peter Huewe , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , Brian Norris , Gregory Fong , Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, 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 , linux-integrity@vger.kernel.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-iio@vger.kernel.org, linux-input@vger.kernel.org, linux-media@vger.kernel.org Date: Tue, 26 Jun 2018 15:07:59 +0300 In-Reply-To: <6169da633eab7e68d645e6b933b605dcc9ae09f1.camel@linux.intel.com> References: <20180620051803.12206-1-peda@axentia.se> <20180620051803.12206-2-peda@axentia.se> <20180625102454.GA3845@linux.intel.com> <7703d6a2-b22c-104c-7390-b5143a504725@infineon.com> <6169da633eab7e68d645e6b933b605dcc9ae09f1.camel@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2018-06-26 at 15:05 +0300, Jarkko Sakkinen wrote: > On Tue, 2018-06-26 at 12:07 +0200, Alexander Steffen wrote: > > 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 > > Given the scope of the change and since analogous change works for > every other subsystem, this should be enough! Thank you. It is now applied to my tree (master). I will move it to the next branch once James has updated security/next-general. /Jarkko