Message ID | 20180615101506.8012-11-peda@axentia.se (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 35C24600F4 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 15 Jun 2018 10:32:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2EBC926247 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 15 Jun 2018 10:32:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2220028D29; Fri, 15 Jun 2018 10:32:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2AA6E26247 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 15 Jun 2018 10:32:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=jxOWBssR5gdnYpiyWP8vlz5JR3eIueOpWtEA7VgQowg=; b=ibnybLuQrXzZY+ lxhcJy2ftXK/mZrJ+rg7SAbDYG3Tn2g2+gD7PKStrplY2LpG2LAo2QcRKABdloftgG6joQgTGpu79 YqOUNagzgRReEpjn2DEfusZrcD1wUlp8NAHtfiQq0EZxLPuFk3LXmKPoInGh+0wT5vbVUBUvKmSMm +GX30cMiN8Ujsgrm4pCV2aWHC6H7wxDkNQWiYbU0b6Q66OYfZor/3OzxAe3+idsVqcmlqLOddl4Md kgA/jJkzqeWTh09dYZKCtcxuexVGTKHKY0eaF72fIRlck4BIfVzeok3OS/TG15vTsM3bwrdiaKcz9 KglPR7kk2crjPgvit0Vg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTm1R-0006qR-FR; Fri, 15 Jun 2018 10:32:01 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTm1N-0006lz-PQ for linux-arm-kernel@bombadil.infradead.org; Fri, 15 Jun 2018 10:31:57 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=DrvteudMpe9VkNJGtOP/zxWVtYGc6W8ERvRGM/g36pQ=; b=EgS6f/PH/aq8bRI3LklxfTySv MV2hG9xWhUCVJbhj5l2CawLgOhnx1vAPkDZ4OgP/nrFcaMCPsBXWHx2aKNw4NHYTw5VPXHHVhpPI9 x2yWxkx0vaMmuoDGJ//v0maW4MlWW/oMkmDG5fCa6jMqyrycy1H+0R/2QlmvIolJ2RGlihyawQuZI BUJZfG2rwSTLGJHUQNeFQ6+MN7KONthydtJwEOw90dbvcUo05QKHi7zaks+dK+RrzjwacsTWCmtHn D2NhysqCgDeCni4RuV43qbkDMNYhxEPIBKdfsMIpP/yxUesBTHhETlWvdtNA97NY4nFT8ktbhoG+c QA+Hr9bOg==; Received: from mail-he1eur01on0107.outbound.protection.outlook.com ([104.47.0.107] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fTlnR-0006Np-4I for linux-arm-kernel@lists.infradead.org; Fri, 15 Jun 2018 10:17:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentia.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=DrvteudMpe9VkNJGtOP/zxWVtYGc6W8ERvRGM/g36pQ=; b=EB794euXjukgSFFBD31+6fAjq0CATu3lKeVZyNLSjIYTL2+LjvZ9sNJXO+g6SxBZmn9G6lvADRAB1dI51uC2Q+N/dkmXU/ZvaXrCsaB7p2a0z6W1nhSCzdWDNhX6clcfi9xv1/Cg1cK6tjo76RzDjiD3OI+stfTZtP6RDTqmNKw= Received: from orc.pedanet (85.226.244.23) by HE1PR0201MB2460.eurprd02.prod.outlook.com (2603:10a6:3:82::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.16; Fri, 15 Jun 2018 10:16:06 +0000 From: Peter Rosin <peda@axentia.se> To: linux-kernel@vger.kernel.org Subject: [PATCH 10/11] mfd: 88pm860x-i2c: switch to i2c_lock_segment Date: Fri, 15 Jun 2018 12:15:05 +0200 Message-Id: <20180615101506.8012-11-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180615101506.8012-1-peda@axentia.se> References: <20180615101506.8012-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR05CA0248.eurprd05.prod.outlook.com (2603:10a6:3:fb::24) To HE1PR0201MB2460.eurprd02.prod.outlook.com (2603:10a6:3:82::8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 53f672ae-cb92-45a3-fe7a-08d5d2a9022a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(7021125)(4534165)(7022125)(4603075)(4627221)(201702281549075)(7048125)(7024125)(7027125)(7028125)(7023125)(5600026)(711020)(2017052603328)(7153060)(7193020); SRVR:HE1PR0201MB2460; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 3:ahCtgQ8a9V42tpcjRo8ZyVBTkn+XsV/hE6u6mcKWJaLItckrE5FqpJrYsJSpToO2g5ymDKOCuE0woUhi4vRP6EDAimK4wLDlqq5LA4hy2FGB/mcYjBz2VOHAW87Xzn5GZMfm2D+I/TpMMfKjZEoUk59mjgMoFCBVqJtojPnPGnXePPhj/IEfaymCLPQUWycqCqfFmLRM+MlCz8QgFVibc2taRbTrLYqnz0NdTYxqkPdv8IoMuWRw1PKYhukLuwIx; 25:qigJRsDesBhkREYZNjYEAxUjDCDMN/CfWs2MF9yCBxzVcSv2OLj8xexIGGG5Q9A1x+B9bPV5w5vUzLcCABXHlilFV0+KvBurB1xzJ2B49TesoNrp+5KEeSxuOgFjyzYohuG/OhEAU4UBBbKttKIWyvLUZFnLAHPTHTikcKp5hMA1g3pUD7BYW0U2YFWNgujBcCekDyjbe9Pc8Owtv1efpeROaftHuNf81yD5tc+orLLkuLxzRDlHkyQEvcAkHcBI6u+v5uqojC1C2378Vc9E5HYgPzfhaB8Fj7xP9/Ntne/V3fbI9YgE6hPklIPFkMdowmc/smhaMhLc2roReFiTzw==; 31:ivrGfIkZJMpb27kvQph8hOLus4qJ2qRttYQhmMIWO08Q+XTU+Ul4kXZmBfZARnlvFkLquOwpSUDoMyY36f5OpupQPstGLF2cvCsBeMxd/lDgxxGTp4TXHO56cN8d+28C4jbR9rhLKDk5UF1Lzkz16tx5Byc+rtd0MqxvSULJn3VayT+/RYMZ4NjLsXad7H77BZlS4XJchmsLRPYml9MqWmP2FbMsBUx8belNNB8nCF8= X-MS-TrafficTypeDiagnostic: HE1PR0201MB2460: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; X-Microsoft-Antispam-PRVS: <HE1PR0201MB2460FD9D5E0FCAABF1DEEF9ABC7C0@HE1PR0201MB2460.eurprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(10201501046)(3231254)(944501410)(52105095)(149027)(150027)(6041310)(2016111802025)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(6072148)(6043046)(201708071742011)(7699016); SRVR:HE1PR0201MB2460; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0201MB2460; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 4:ViZu45CIKg4hDzlYppAqqjjuwJdZKXAQyxV9m51iJWWoPYsfmjJLLFADwAoGIOjy2KnqkZ93SUzMD4anipg3FpVh/yOFIYY8L82iXYohsGNH3hUZCrSoxDkaGFSjfdNB0MwdQ+pLSmOFWmmv6R77P2Kq0OC+D9LxiF8/ShDiEShOcalbv8NgJNXpSfx+nCMULr0NbzZbXp+i3xHAs8C4LITWiT1dmEUO6qmY1ceOHTuBPmYW+9FwM7kZRXbloA11tYTFdgUG3VOh2IMVTQX82g== X-Forefront-PRVS: 0704670F76 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(1496009)(366004)(346002)(376002)(396003)(39840400004)(39380400002)(199004)(189003)(186003)(16526019)(97736004)(50466002)(386003)(50226002)(68736007)(81166006)(8676002)(74482002)(26005)(52116002)(478600001)(51416003)(2351001)(81156014)(59450400001)(8936002)(6506007)(2906002)(76176011)(15760500003)(6116002)(3846002)(1076002)(6916009)(48376002)(86362001)(7416002)(7406005)(106356001)(66066001)(2361001)(8666007)(305945005)(4326008)(39060400002)(53936002)(36756003)(316002)(5660300001)(446003)(476003)(7736002)(105586002)(6486002)(6512007)(11346002)(54906003)(956004)(47776003)(25786009)(2616005)(486006)(16586007)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0201MB2460; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0201MB2460; 23:JAJKWQB7rHWzgba6Ro4kNIyCujGCOENvG9Q3Mua?= =?us-ascii?Q?pDQHab00IOsAMvm3J/8k+xtce+GjvN43l7cTAJ2BP/51S58CeN2jP1GKB/Ti?= =?us-ascii?Q?Be/I9u/k0n4JUp7PbmK1pvZbSYFEVWxAydb0rpCVcDfppBzcJHgDAHistRaV?= =?us-ascii?Q?+nnz9w4dcB4ltpSuPz/WnNrl+ZijaLJb/q5SC0TNGMkVxmq5o+/q6zRF1zOG?= =?us-ascii?Q?W8UhnzeiSaZahyiAwQK/5y5qegGHA7lzHz7Trv7BoFV/9WRU4xAxNz4fBEDB?= =?us-ascii?Q?j7elO1Kziu9lLyl76Fv9OQ028FYLlrD3YtpxYfoKkcv7gzleqOEogUnsw38P?= =?us-ascii?Q?z8qMABXEj7SFDGublcTK8CAuY7uFyUw3xgjsQ5+/TXjhw68xOTALeax+UoSY?= =?us-ascii?Q?NdOE3KONn9SfidK2S7z7E1inXsH3rD/t1Zs0LS8PUNVsIflqrBasLXoV2MHD?= =?us-ascii?Q?pWP0HOJO46U/bAjlVwKY9Y0wiHGX5rTD4siBudIQr143DnmCuFza5xPTLqOZ?= =?us-ascii?Q?mgdAKlysqsg/djVU8Av3mFpX/53VL/vdcAWt7ExWXpi5MT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X-Microsoft-Exchange-Diagnostics: 1; HE1PR0201MB2460; 7:4YWahaqWYiVWOu90i9Aq77reXgQyOrNvcS6+Kn+P41wMnnW+kheP8CojaxOvGYWc+F6RwybVRNyiSuX77V9bVlxT0wpuHciVGmwCoKu3oy/LHEg6D70JauIOl8Ao653L9ZQyrJyI95HEwP9Xa+h0RnStxRUNfzwzyUWadxiYmjnFMnH3euus6aBswFkE+ilfr7aYBWJPxAXeZ+Jyyw9aC2LRttz2MJEmm16Mn2W+h9fC9KJPBLe1rtmfAARI+xno X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jun 2018 10:16:06.0783 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 53f672ae-cb92-45a3-fe7a-08d5d2a9022a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0201MB2460 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180615_111733_332640_4FE270D8 X-CRM114-Status: GOOD ( 13.55 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: Crt Mori <cmo@melexis.com>, Wolfram Sang <wsa@the-dreams.de>, linux-iio@vger.kernel.org, Sekhar Nori <nsekhar@ti.com>, Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>, Thierry Reding <thierry.reding@gmail.com>, linux-i2c@vger.kernel.org, Peter Meerwald-Stadler <pmeerw@pmeerw.net>, Peter Huewe <peterhuewe@gmx.de>, Michael Krufky <mkrufky@linuxtv.org>, Lee Jones <lee.jones@linaro.org>, Antti Palosaari <crope@iki.fi>, linux-samsung-soc@vger.kernel.org, Florian Fainelli <f.fainelli@gmail.com>, Kevin Hilman <khilman@kernel.org>, Chunyan Zhang <zhang.lyra@gmail.com>, Krzysztof Kozlowski <krzk@kernel.org>, Jonathan Hunter <jonathanh@nvidia.com>, Jason Gunthorpe <jgg@ziepe.ca>, Kukjin Kim <kgene@kernel.org>, bcm-kernel-feedback-list@broadcom.com, linux-input@vger.kernel.org, Orson Zhai <orsonzhai@gmail.com>, Guenter Roeck <linux@roeck-us.net>, Haavard Skinnemoen <hskinnemoen@gmail.com>, Arnd Bergmann <arnd@arndb.de>, linux-media@vger.kernel.org, Lars-Peter Clausen <lars@metafoo.de>, Gregory Fong <gregory.0xf0@gmail.com>, linux-tegra@vger.kernel.org, Mauro Carvalho Chehab <mchehab@kernel.org>, linux-arm-kernel@lists.infradead.org, Baolin Wang <baolin.wang@linaro.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Dmitry Torokhov <dmitry.torokhov@gmail.com>, Laxman Dewangan <ldewangan@nvidia.com>, Hartmut Knaack <knaack.h@gmx.de>, linux-integrity@vger.kernel.org, Brian Norris <computersforpeace@gmail.com>, Peter Rosin <peda@axentia.se>, Jonathan Cameron <jic23@kernel.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mfd/88pm860x-i2c.c b/drivers/mfd/88pm860x-i2c.c index 84e313107233..8e54fc2dc29c 100644 --- a/drivers/mfd/88pm860x-i2c.c +++ b/drivers/mfd/88pm860x-i2c.c @@ -146,14 +146,14 @@ int pm860x_page_reg_write(struct i2c_client *i2c, int reg, unsigned char zero; int ret; - i2c_lock_adapter(i2c->adapter); + i2c_lock_segment(i2c->adapter); read_device(i2c, 0xFA, 0, &zero); read_device(i2c, 0xFB, 0, &zero); read_device(i2c, 0xFF, 0, &zero); ret = write_device(i2c, reg, 1, &data); read_device(i2c, 0xFE, 0, &zero); read_device(i2c, 0xFC, 0, &zero); - i2c_unlock_adapter(i2c->adapter); + i2c_unlock_segment(i2c->adapter); return ret; } EXPORT_SYMBOL(pm860x_page_reg_write); @@ -164,14 +164,14 @@ int pm860x_page_bulk_read(struct i2c_client *i2c, int reg, unsigned char zero = 0; int ret; - i2c_lock_adapter(i2c->adapter); + i2c_lock_segment(i2c->adapter); read_device(i2c, 0xfa, 0, &zero); read_device(i2c, 0xfb, 0, &zero); read_device(i2c, 0xff, 0, &zero); ret = read_device(i2c, reg, count, buf); read_device(i2c, 0xFE, 0, &zero); read_device(i2c, 0xFC, 0, &zero); - i2c_unlock_adapter(i2c->adapter); + i2c_unlock_segment(i2c->adapter); return ret; } EXPORT_SYMBOL(pm860x_page_bulk_read);
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_segment. If the device does not sit behind a mux-locked mux, the two locking variants are equivalent. Signed-off-by: Peter Rosin <peda@axentia.se> --- drivers/mfd/88pm860x-i2c.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)