Message ID | 20180620051803.12206-7-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 C483B60210 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Jun 2018 05:35:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B295B28D38 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Jun 2018 05:35:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A559F28DC2; Wed, 20 Jun 2018 05:35:39 +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=unavailable 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 53BDC28D38 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Jun 2018 05:35:39 +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=ZNRpoNA5j4f/nOiLeLjCLJT9StREiz+Crj/mvSa5SeU=; b=GMI8by05/VFXz+ +stlOlWNADxUcEsjzuMpkYD58llhAUeUxE5lYbPZ8h5/a8MwqDP1EJLmAhlHXTFHg3bPHfykomVVK EjiPzUpFGiViOuuJihhEY8fhBMsBTX55LU292ab+GXz6DvqbMq9oigSs4Z5V0NXImAe1agoEKC7A5 QPZrE1GSI0gLpLdcSqEilTlFUBxIaBvC8MFLP3cUGwHbbSTNUGkDvi/w2+/fpPb4+jJGqGKMJtYTx ZUEuIf5Ei3EDmU2wVq3Kw2GyxoJ8kRKRnKlsQCE9qoDOMnvfDUj427Zvh6pCaSr3gjAwjnu327sjp 8B4hB8Pp4dJbxwRKSgmw==; 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 1fVVmC-0002a0-RT; Wed, 20 Jun 2018 05:35:28 +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 1fVVkR-0000V5-9g for linux-arm-kernel@bombadil.infradead.org; Wed, 20 Jun 2018 05:33:39 +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=VOJTqCCOKImubEu9I/qRK+7vAbQ8HfUqquZlldr/A5M=; b=p4w2tEPAPnLigKVf6KyEX24Bk Dr8fy/5mlLNRAMNsO31qF1GiNJuIRP2pn8kqkoKtfkXI2LLvknwLeg2JOVI5luFV0wbdsq6MgsElR dqLb0vxRsRQcIxK8p3PenBrc571GQPWILjxjhmDNAfqR+Ji9JSQ32y2XVjLfPGK3rzt8yCWd/wgLz 6L33h9gkKO2JmgKq4SOobdPTNqDh94WOEpEZ29KrLkySqql3+rkMS0mIuTEmggNk5M/UByjL5kW+h 5DNB0vbqWj1Hv+owg/PbJ5li1VTLBky527sXQJ0PDsW0/IqznXQqbG01DMJ/1mg7pL8uGbT2ORAz4 HlXC85SRA==; Received: from mail-ve1eur01on0105.outbound.protection.outlook.com ([104.47.1.105] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fVVX8-0000AT-61 for linux-arm-kernel@lists.infradead.org; Wed, 20 Jun 2018 05:19:55 +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=VOJTqCCOKImubEu9I/qRK+7vAbQ8HfUqquZlldr/A5M=; b=SHi0ocMPnQ7RrCFTYQB7sG0CDL8a0gEh/zmuu7YLeOcq8371bkNG7+6M0F5LCah6/BwgosijXC9XwTbN6Ap6ahuPSErXh7RrXO18Hn29urpyNdCb5Gyi8qiBhX2WLOvyOfcWebljeHVBPt8UNOU8q0g6jIJwhrvW34n1tHrPliQ= Received: from orc.pedanet (85.226.244.23) by AM5PR0201MB2452.eurprd02.prod.outlook.com (2603:10a6:203:35::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.863.20; Wed, 20 Jun 2018 05:18:42 +0000 From: Peter Rosin <peda@axentia.se> To: linux-kernel@vger.kernel.org Subject: [PATCH v2 06/10] media: rtl2830: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT) Date: Wed, 20 Jun 2018 07:17:59 +0200 Message-Id: <20180620051803.12206-7-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180620051803.12206-1-peda@axentia.se> References: <20180620051803.12206-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [85.226.244.23] X-ClientProxiedBy: HE1PR05CA0127.eurprd05.prod.outlook.com (2603:10a6:7:28::14) To AM5PR0201MB2452.eurprd02.prod.outlook.com (2603:10a6:203:35::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 786bc4e1-38a0-4bbd-f363-08d5d66d4b83 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:AM5PR0201MB2452; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2452; 3:jLc0zIzrvcjUZcuHdgeIxoryDrmk3UlsMkhU7PhlbgUpCy8+bwEMoQ9VrfhozNVTMosO/WLHqPiuJ/Txm3OD7qPlYhH8x6D+mHFpPCXd8RyfMg8Rg6x5Dhtqg0RjD5a0GDy1r1vp0kopCX1h+YRH/vpF6Go6HMejenfaMD2jz+FlCAx/7jhBmHJ7n78yMSPJXeVN9x/dVJrs+KxWiJ6OjjAMuHeNFZFu3RQmaRgGofM5+JQFSjKWLSZ9IG48Ia1l; 25:Oc7EDR2snTIJmpCgxws6l0X2cQXZsyE7Wg4KH65JBmSOAn9eGskITbJ+OBZPd4FNUGR+O+zsyLMBaZZof8leSZqhXg84jsuCwOXqH4TchkOBJjYHC5XTfvYGc2GQRxEnmsn8Cd89dTyOB/xa1xELlh5D5maBvkqutMPvBDdExobBmnVyvt3dlnmvfMK5cKH0ypUG44jdWHMbMHV4XReKEd9UbC2HOMCvwXdPFRIbJTCHH1Wf7UMCml4kFRSkl1d3qQJowqZZQpfDDDKTLmDS1NssUj6WjENFK2SI9+OBl6Z/I6qn22wKeY1AsHNZRKX25WdUrtF3phYM8g00pcCP8A==; 31:NknGn7XCMJL5Y4N1WJ4xWGR5XL6xGoX0FgN9RWatm5YTWcf/Locrco/M4/UhkNPYn/lycweLOHahsMrRlmeCsK2/ORxz0EMoCuNqXAb7gGLUadWpPyHRpfs+KeXGTE7634tIWJ1Lr6yef2gY940mrs5mJUAxwL1SvwiQsbIGNLpYT1ZOa8j6zK+1Tr6ynrcjdqxsFE78bYRV65vZNwyOkJclG76AZvAjOuNO3q7trd8= X-MS-TrafficTypeDiagnostic: AM5PR0201MB2452: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; X-Microsoft-Antispam-PRVS: <AM5PR0201MB2452AD35547998C250B4E30ABC770@AM5PR0201MB2452.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)(10201501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(2016111802025)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(6072148)(6043046)(201708071742011)(7699016); SRVR:AM5PR0201MB2452; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0201MB2452; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2452; 4:24aqmciruo8OyVWZ9USOmNLzkRcihiVxNofkdQUvdqExsCrYtI+ngJfLANlPr1ntrY2P8KJkGUT7x9IHmyIe2oM5wpcOUoXiSxCbqsH/N6t4oF+B07drXUo9Lhv6w9m0YznQlJcwizlAkrLyr68TKvYAN2J3+/AOwq+1Y9rYx0NYaPhy2tW8TXQlfQcPaJNYmM4zsqDjJMCXo5ZZ8onpiIRNntqg6ostzo/2deR24ibwVLvAOXdXocgqEEowkV9CP1EmjIYjGRUhFWWu5LXpsA== X-Forefront-PRVS: 070912876F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(1496009)(366004)(396003)(39380400002)(346002)(376002)(39840400004)(189003)(199004)(51416003)(50466002)(7416002)(6116002)(186003)(59450400001)(48376002)(3846002)(26005)(6916009)(53936002)(6666003)(1076002)(7406005)(6512007)(76176011)(15760500003)(2906002)(316002)(386003)(36756003)(478600001)(6506007)(68736007)(86362001)(5660300001)(16586007)(50226002)(52116002)(54906003)(16526019)(2361001)(4326008)(2351001)(47776003)(25786009)(39060400002)(66066001)(8666007)(305945005)(486006)(8676002)(7736002)(97736004)(81166006)(956004)(106356001)(476003)(105586002)(81156014)(6486002)(2616005)(8936002)(74482002)(446003)(11346002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0201MB2452; H:orc.pedanet; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0201MB2452; 23:O/7fb8X+MpehE7sbh8MmgRmFGYMStdj7t4SHn2a?= =?us-ascii?Q?qQce35z3WFXSFtkf44W+86Yo26V3Gj0ogutA7hfffJMUNO6CAbiTGNeE2oEi?= =?us-ascii?Q?MewNkMjOxxCBCb/CX7KTAvroktlG460AL0BdeRLlUUouB4dSAOMuUhmz6CLj?= =?us-ascii?Q?CNtZzf+HF51XL+NFDKnJa65u7y+BM5feSyob/+KvIXXnpqXgNOkLCAka5zSr?= =?us-ascii?Q?UgYVhPLTkjrPAW6wvFbpdC4zGpnsq9Gohh0EQUBMnHfoBUCf2p6G0qS/pd3j?= =?us-ascii?Q?76ntQLpPitZbX7Hl7rBZIGyFaR1FWBn83gfRwORpRwmIbp67Nyv/+9vMRgUd?= =?us-ascii?Q?g/bq71ow6M5esXVTyMffwwCovRXefDhpw7jXCiiystjA47fS/VWVmp1mdGKo?= =?us-ascii?Q?jzRXraMwqRHaqgnz8MQilCiXo80TNMHcgFnx4gsTufgdh46JY6fTfwAx3/74?= =?us-ascii?Q?LokvjqsVgy1BwGr4MzwWaWKJImhvVPVKXjJglqoNmn4/3Kt/RCkSI7nG8ppE?= =?us-ascii?Q?Lf94pS6UtXvPkermqn+m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cDz3LiHs6TSZbbnCE37FxzGizpJxbshB3v7EnZt6Vv3uJU=; 24:NevFJ4nI6QyN+xPwH/HOLpg78BhR0/eTYNc++vXDtabNLCjfMHKsqPhHG5GTv4GiaxuJVVSEuT4RhRRJuXikRfdm+DrEHYWFlWzWKLrrumU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2452; 7:fqZdGR3fjrJZ0RmppTX1kOLpRLUCd74CaGn1OWoGReBZusKfnR0mKdXXNlzvJOowtdqg9ZtoDdt28tD2uDkh19zCmbmBHPOTzn1nFkohc9/00IqmziJx93gQN1fMFbtIaQ0F0EKd3UMQXK1spzjF4qGwOyRB9Ww5DzSMckgDSXE4vgTO7h3KQi5tPwyOLP0HbE8JbdSFuYgoTKHCrBbiaVyujHYR4fZKzv8XJj+x7ejhSu4mXaXtHUF6mbjSgdfR X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2018 05:18:42.8574 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 786bc4e1-38a0-4bbd-f363-08d5d66d4b83 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4ee68585-03e1-4785-942a-df9c1871a234 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2452 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180620_061954_265544_914C912A X-CRM114-Status: GOOD ( 13.51 ) 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>, 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>, 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>, 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>, 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/media/dvb-frontends/rtl2830.c b/drivers/media/dvb-frontends/rtl2830.c index 7bbfe11d11ed..91d12e6a03d5 100644 --- a/drivers/media/dvb-frontends/rtl2830.c +++ b/drivers/media/dvb-frontends/rtl2830.c @@ -24,9 +24,9 @@ static int rtl2830_bulk_write(struct i2c_client *client, unsigned int reg, struct rtl2830_dev *dev = i2c_get_clientdata(client); int ret; - i2c_lock_adapter(client->adapter); + i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); ret = regmap_bulk_write(dev->regmap, reg, val, val_count); - i2c_unlock_adapter(client->adapter); + i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); return ret; } @@ -36,9 +36,9 @@ static int rtl2830_update_bits(struct i2c_client *client, unsigned int reg, struct rtl2830_dev *dev = i2c_get_clientdata(client); int ret; - i2c_lock_adapter(client->adapter); + i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); ret = regmap_update_bits(dev->regmap, reg, mask, val); - i2c_unlock_adapter(client->adapter); + i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); return ret; } @@ -48,9 +48,9 @@ static int rtl2830_bulk_read(struct i2c_client *client, unsigned int reg, struct rtl2830_dev *dev = i2c_get_clientdata(client); int ret; - i2c_lock_adapter(client->adapter); + i2c_lock_bus(client->adapter, I2C_LOCK_SEGMENT); ret = regmap_bulk_read(dev->regmap, reg, val, val_count); - i2c_unlock_adapter(client->adapter); + i2c_unlock_bus(client->adapter, I2C_LOCK_SEGMENT); return ret; }
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 <peda@axentia.se> --- drivers/media/dvb-frontends/rtl2830.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)