Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5044971imm; Tue, 26 Jun 2018 05:06:42 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJsS4/mkYehXGghT+beGU9C0hArZ4jg300ExOfpq3tUdXOhajtEqVcQ9AAvHiwAFzigRCAz X-Received: by 2002:a63:2a45:: with SMTP id q66-v6mr1168358pgq.210.1530014802482; Tue, 26 Jun 2018 05:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530014802; cv=none; d=google.com; s=arc-20160816; b=dqZhjTVu39QMwu20H9TySAn4BtEAqRKXS+1eM22ror7hrSN9ggjv2Xlq17hKdH1aL1 AY7F6TPk3B0lZpO9BnQAI2/Gtm+u6S1YTUT6JMWLjA557bYbRTkQ7J3+iKsxb4L+yK3d qeapHnN9lZMVnWsmj1m8QfIGBSky5nIiwb3iN8j0JJ5Cn6/jLkaSBMbo1mbPSer6HDRb Lc1U/mhWnb3TUVFEU0q53JnGh2VV8FK3eB2TrQbjsmP7y/y1V4PhSc0rcmyjwhT/f9j9 Q2nUA5TiSLMD+LMF3o1pf4tarCL6ggdRPqPtQmu5RO2QyG0QOUntxBehFFRv427gyblT JcsQ== 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=cMoUXiFT17deGS0apBEhWPfs4iulIijoXm2k21RAMic=; b=GYQ80U5kcf24OP/ERR2TuQm9Jk06Gs/n0GI0ecoq8v8vkLvWTiZ71t18ITYyhOYtXc sExh3e8ouKFYiy/rTf4mSKTZdKUXp6YYIn6yxPAk6TIzy/tayvXBtMaN7Cjz+XfVgHyV 4Jr5tvolxn59NfPaPYXBA5IXiMZNdH1JVgp79a9sv1xuNS5G6qk7Ky8VLfmRKGLi01fz vK+erNTcf0J/NKSPOpKKhYMrYtRAlUIawLZxRm1w1BcKcc+DtUu7m8JaiH99G7c5h7RK FXfjsREw12Vjdo/riJlR32ZoJM++X8jmgJWpjVZpTo8dE3pg2rlHwvF4Twy3AaAydzet oedA== 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 g6-v6si1356495pfh.346.2018.06.26.05.06.28; Tue, 26 Jun 2018 05:06:42 -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 S935087AbeFZMFi (ORCPT + 99 others); Tue, 26 Jun 2018 08:05:38 -0400 Received: from mga07.intel.com ([134.134.136.100]:7898 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933658AbeFZMFe (ORCPT ); Tue, 26 Jun 2018 08:05:34 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2018 05:05:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,274,1526367600"; d="scan'208";a="51992132" Received: from skovflem-mobl1.ger.corp.intel.com ([10.249.254.74]) by orsmga007.jf.intel.com with ESMTP; 26 Jun 2018 05:05:17 -0700 Message-ID: <6169da633eab7e68d645e6b933b605dcc9ae09f1.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:05:16 +0300 In-Reply-To: <7703d6a2-b22c-104c-7390-b5143a504725@infineon.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> 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 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. /Jarkko