Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp479167imm; Wed, 4 Jul 2018 00:06:53 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcyqQTcCMOZMydBbmiyKFbojMafGR4el7XbawQ3uCInS1ieeegDVYoZqvYJyiDaGxUAY85S X-Received: by 2002:a65:5286:: with SMTP id y6-v6mr810207pgp.65.1530688013200; Wed, 04 Jul 2018 00:06:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530688013; cv=none; d=google.com; s=arc-20160816; b=OjPOKz+AusRw2pPDN6oVvYvFpYlqL4nqNHn7DAW+jMFa4wr2pJUhifMVU7kfuijDea x2BS6POMWgmaCz83dzlUgNZefFzYQbZtsns6nnVf6A1R6ME21+gPE6lcAbGgGCp+X6Sa sDu0G74PxbwjWd9GMsHYRNgximz2Ov4M8IetLc5fpepb3dghslBcQwy8DPWmqAUr7lLm T9x+7SLQhbDR4lKt+PQjWe/tBOK9BIiyTnDsRW6Y9aSdHNozVjfTN1Vcoy7wiKx3y1Y1 JTyUDxPwHNvPtmJ1xJq6lrbjBkyMptCLFLxfVy6XFfdKuBV5ialD0JoCxULWC/L9Ggwa JiQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=lsCHGXZlRttPuZ6p24BypbQnoibzMxlubJOo2nkaUNg=; b=lSj0o+zrUM9l82qQI6TaXqm94gSW62N6A1ibLrhsBeS/UPrsqp1+6i/8Y1WdRCd/oB ZwXF0V5d/u/CS7cmrxxSAEEdDCW2YclP/RbIYRVLUag/AK8RzGvWly9T2Vy6ZE151jVD qqlIR73XG9ytTPnckpiuMlT9Jt+Rcojju+tAr/kk07DF8OKkRRI0GjhGEbDLMshZ14jQ wvx8OR/dy2Nu3A0RFAHmzE/30J7TabdHlZZ6wI5mw++sXtnZ1PrTRe9EtSuNmH6XOG5B 9aOLoG51ppcac2xtYJM452fUiiYUPDyMb3zcBdf1GX6OCziR3rkAWUsSnlvg6O31SQFZ kh6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=i7Tt9Gmp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 89-v6si2894226plf.224.2018.07.04.00.06.38; Wed, 04 Jul 2018 00:06:53 -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=pass header.i=@linaro.org header.s=google header.b=i7Tt9Gmp; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932572AbeGDHEm (ORCPT + 99 others); Wed, 4 Jul 2018 03:04:42 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:33987 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753434AbeGDHEg (ORCPT ); Wed, 4 Jul 2018 03:04:36 -0400 Received: by mail-wm0-f65.google.com with SMTP id l15-v6so12203916wmc.1 for ; Wed, 04 Jul 2018 00:04:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=lsCHGXZlRttPuZ6p24BypbQnoibzMxlubJOo2nkaUNg=; b=i7Tt9Gmpy1q4JIQVwbJQRYuy89IHEENbHEnScDhqaYA5XU6U71Hj6AuZqvTGfbeZ7J 7rDTXm/NfiWDzMScfXM8p6XgX8nlTS8juoL0HMPxpVcORD4C4WVOXeDGPmgGzDSUpNfb ZccmrVrnljHGW2+HQZKqDq09DMeP0IF5bubAs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=lsCHGXZlRttPuZ6p24BypbQnoibzMxlubJOo2nkaUNg=; b=DgoYsSI45t3ZwzvcSWjSCycHCTHvdVef+DsLkPRo3rQlf+PKKeFPCdhfSm4sRoTMsA JGeTa4iBKQBz6eHrrlULNzQzWPskkcfUkRFqJrsQAdKRE9Hh5smDPWuhtcl/B9nKdNpj TIztbERMmU8yD4X7sSRSbRyH6G7JB3R1FcfrfzFt2gX+APV1RYJ2evKl6FQqdvRrJwAg 8A9NUu7MRRxVye3jAGe+DoCyyv1hcgHCZmWrjS4nubBc274r32xsrY4A+2DmFqMGapUF 3IXm49+bzfy7qD/04h8QtGv/D8FXDC+2PK1oCd8a/S7TGwBGQ0uID/JfLJ4WDlRo+fuu H+UA== X-Gm-Message-State: APt69E3rKala3yN//vhCD2ntXgO/NKcDr/ITGAv8j5BSYYIbCn2WPTgL x5HzpMzH1l+s7YqXSf7oR47IVQ== X-Received: by 2002:a1c:910f:: with SMTP id t15-v6mr771864wmd.51.1530687875768; Wed, 04 Jul 2018 00:04:35 -0700 (PDT) Received: from dell ([2.27.167.87]) by smtp.gmail.com with ESMTPSA id h102-v6sm4676679wrh.60.2018.07.04.00.04.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 04 Jul 2018 00:04:34 -0700 (PDT) Date: Wed, 4 Jul 2018 08:04:32 +0100 From: Lee Jones To: Peter Rosin Cc: linux-kernel@vger.kernel.org, Peter Huewe , Jarkko Sakkinen , 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 , 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 Subject: Re: [PATCH v2 09/10] mfd: 88pm860x-i2c: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT) Message-ID: <20180704070432.GF20176@dell> References: <20180620051803.12206-1-peda@axentia.se> <20180620051803.12206-10-peda@axentia.se> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180620051803.12206-10-peda@axentia.se> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 20 Jun 2018, 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 > --- > drivers/mfd/88pm860x-i2c.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) If Wolfram is happy with this, then I am. Since this file sees few changes - please merge through the I2C tree. Acked-by: Lee Jones -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog