Message ID | 20180620051803.12206-8-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 DD71F60210 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Jun 2018 05:33:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB87128C40 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Jun 2018 05:33:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE10428797; Wed, 20 Jun 2018 05:33:51 +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 29EE828797 for <patchwork-linux-arm@patchwork.kernel.org>; Wed, 20 Jun 2018 05:33:51 +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=/sry+SjtvQLiS2GudlSR7vZ7kj2/VikkX1zkVO/U7HY=; b=bmyWHCd3fPXsP9 3E7MBU9faBwV2PgdeIruOsJFHS21RRVcB5T3ga1TS0WMB5L1jP5EdauO81eMsOLqF2JYTotOZsz73 UEKVZUmCNZEx26IZsivPtnHWqaMjZbSc6fKXpDJ67qPKqySbeWcU6lF8NXzaBjEXXIdxteLehUl+e nsMttM9fqcgJpgD+vtDeL+hHcphSlchC+FJLovGLBjTxADbjqyAmYakWfptdk28LjSbgDZruh+iey 6XAoza8mrXIpSswFzNAeJ+E8OBlnCRFjLLRnx14Au2ejKhaVg1vkXZBG0Ya7Y8/2gmMLMc8hyOE4E dTwKBOZaLQPfuo5ZawlA==; 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 1fVVkS-0000eG-VB; Wed, 20 Jun 2018 05:33:40 +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 1fVVkQ-0000Vb-Rq 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=dWFRF+4mj9TBCGO2vyygBYils7ENbNMfMlUurD/mCn4=; b=THkDrj77mTffhfTyd5z/V8Z15 9zgZ05lL+bXdSUkiwEeOT7suX2CSyKm/4zWcfYMuuslKY7zbXirAOBiVtPUel2BR09zgccYksLFLu 0P3o9k4lbL3n4+IyshUFBcQnC36Fy/tT3LkaffETSXLMocvfjGQgMmPzKqmYU23gzTWQw/awlzRdx X01BFJsOHySIlhbjapxjpAcFSFLdqM8wncQgObsdywe4tvwzild6O//inIkMQHekI+j/gTSfHGrL9 /Tm4TKp4SUn2adqMhvqDFEd96bZVat8IEStB/3zEHXHNAHMcg+5Ed5SX8AM95HbF/eCu7dw2TGW45 A6DCviAew==; 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 1fVVXA-0000AT-34 for linux-arm-kernel@lists.infradead.org; Wed, 20 Jun 2018 05:19:58 +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=dWFRF+4mj9TBCGO2vyygBYils7ENbNMfMlUurD/mCn4=; b=iPoOVyFKb+OShv9kWtGOBJ9IwhozC0oRbNdcivIT7GiELkqGOlgtmu5NQahw1/VOwytVl9zCGSCoq/Ou/8KOQs21/t7cMizdC5KVe8m8kp1nutN5Fkk4tL19oisQi3s21ZX/1BKzhoekWEgFo3pJDTe9Y9oZzIAu1KRxBsuV3eI= 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:48 +0000 From: Peter Rosin <peda@axentia.se> To: linux-kernel@vger.kernel.org Subject: [PATCH v2 07/10] media: tda1004x: switch to i2c_lock_bus(..., I2C_LOCK_SEGMENT) Date: Wed, 20 Jun 2018 07:18:00 +0200 Message-Id: <20180620051803.12206-8-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: 9f75f053-f8b1-4ba4-8cbf-08d5d66d4eae 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:xrct89EG9KS6jlaErWvNOc1lH5l3QC5Mha0enImmOSYegCwHx0Ws95ECPEV9zJGAN5bzeft4xntEUhjAitqAFfyx3sc2Q4wJpx/C32G5EjTaTBljLwjbkAet/BV4nvVQ1pA7/ULUkIFfvTYpqBs6cxJRACJksd3qN9UmeniDb9E4YP8aiiw+D0h0dXPl3DYJ/PSy5Z6e1k494uPrdJ25rzfCssajxooBWhgH55WrMSsUiRguDlLqePKU+a7yFkvb; 25:YrJHt80oJc3y3gt6KVyTJO03w5o88xl1+PqpkHG+RYJ2EWgs0PIPcgHi+2Nr1LgpyR78u/soWQ93V7CAsqtcEIGwFxNA7YPVmonNqypFXRQQKFzkgt9UYupl9KEfkpxDsZxMJZ/8ngl4BUnyLqKyDG7XsEtOutfew5Tq1IX+crsuJ2fV7MCcc7Zfi58ips+oeBoJzLKInvX5v09mz5ui9FGwrBgPWCSHDPJsparjOBjngVPsCkoCAqSmv3/Ndjwg3TUKRRMElS0Z574UEXD0CyjrVqDoIpSEYxRb3CV96CMmG1E7Qj4pbrKg0PgIF3gAZLxzghGckM8H0DrzaSDGrQ==; 31:Ca5IQWAWQQv897sELN9kJGpSKmHLFguo+Dxf9E0fIQ5kj+oBL197TiK8CBhpEyPHUVvpcuFmxmf6n0pQ8oPd9B+0eYvS0U0lJWmSX81yikYBHtr+2uLSW+r0Qrch33CYD4DkzEcG3SnAnEOXQ9ylFYxqOTH/noS3MLPEyO10e6gp5zA6hdz20501v7wt9yciK6P11pYDS+n5WRml6/9Bt8XrxIZ1ZhZcKQk2OlVw9kQ= X-MS-TrafficTypeDiagnostic: AM5PR0201MB2452: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; X-Microsoft-Antispam-PRVS: <AM5PR0201MB24523A1CE74B87B3AA201A1CBC770@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:39VYiTOW7tTEVbdby0sqMjhorXLGfhayx7FhaNst3Vy9uOYNMEz2IEIaFWVxK+TX+WYYKHbgp6S8+r262AVVP9NRFjCfeclkpdi3qkh7rBai7OunJ6GYytJHjxqKVWJbixWF8DVkZpJwvckIEcm8iykW8v0CDGb2n2FFHt+sGUUV60BatU4sBn8Evt9LXaUiU4FsCLZjODxE5XQ8cfkuGgqWymvzESSroHQeeoC44sNPrRCgtwblKFofdfBRe85dzBucDz4dw6tSnxd9MQSsrg== 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:sJZLCTpnRtKMbTcwayCjgX2REaZgCgbBcS6e/6j?= =?us-ascii?Q?zDxVnk5t85qWdZSNBnjDJB8yWECbrj4fo2T/XoasjFc965rGcAwpXc8xkZmi?= =?us-ascii?Q?8u21Hhvb7+vDx6f8WtDOH4JDq/JpgjD85KYDbpk9nCf9701kb9flaS2DZPY/?= =?us-ascii?Q?CfaUn8LIDkJT/5lVyqrkkqJX+RYB4/ErTgrhhZaPn+tS1ajK4Vb5Gvd65+eC?= =?us-ascii?Q?2Mm1/AkK+ElWYjOeNI4tEaHF7KxdO53fA39E73tHvM+DyAkyxhIDW+l2brc3?= =?us-ascii?Q?ZqOdnTDFCNldhKrlY0Jy+ctq20s9MOa3DqLqvfWiy2Br90n/jrYkrgApn1Vr?= =?us-ascii?Q?hHZrTLpD9gTqM+QZISOW6RFtedIhkglv8vIuHFfvFV7Y0UlJK5EB4PNouOqj?= =?us-ascii?Q?CTHSw9qPLxg4e6YDZwaWHYgLct/iSzMrhqhZFLA8M9GREN8CP0eEVGP0lB/R?= =?us-ascii?Q?H5eH63xG+a77ysKslBMsNKqLvGwVTaQmUPnrv/882SEev28cf8Oc90mqn9Gq?= =?us-ascii?Q?PdfqUDhmDgLwnwi50pMGHVsNuPpDl7CMqd/oeBO+qyFONXKm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/ZuOkteTgb3cu366q+gvKGZGYuoxMEpu1dVPl8jsL0vS9bPgQ6vDDWVioWVy6xeE4wBWnAFFfMGqeTJaLOSYNR+4v7bk1naw2Qul+u1vXK4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2452; 7:XyU7zS8OWDtejiQOA2TrCH1czVyoVq47+tcWdNoWgr6HNoTCDZdIoRCiYlQW0wmVx8784lDSEn6wVjSD/lY4Ye1sUHV38o+DAqmRHz1/XF4qf3r8L/oejqRwNPN+R/IwUNaPkK05HfqM5BR9I2lBBzNzWI79rO2ePR1t4TRnN/OKS/sxBR90iVWkzkDGorDB/upeujUr3YdKdimwGG5i47LucgaBTccmnag0K+aJ8nCZ0Z8iklCottajGkGsCG5f X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2018 05:18:48.1697 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9f75f053-f8b1-4ba4-8cbf-08d5d66d4eae 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_061956_194639_379317EC X-CRM114-Status: GOOD ( 14.25 ) 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/tda1004x.c b/drivers/media/dvb-frontends/tda1004x.c index 7dcfb4a4b2d0..9d3261bf5090 100644 --- a/drivers/media/dvb-frontends/tda1004x.c +++ b/drivers/media/dvb-frontends/tda1004x.c @@ -329,7 +329,7 @@ static int tda1004x_do_upload(struct tda1004x_state *state, tda1004x_write_byteI(state, dspCodeCounterReg, 0); fw_msg.addr = state->config->demod_address; - i2c_lock_adapter(state->i2c); + i2c_lock_bus(state->i2c, I2C_LOCK_SEGMENT); buf[0] = dspCodeInReg; while (pos != len) { // work out how much to send this time @@ -342,14 +342,14 @@ static int tda1004x_do_upload(struct tda1004x_state *state, fw_msg.len = tx_size + 1; if (__i2c_transfer(state->i2c, &fw_msg, 1) != 1) { printk(KERN_ERR "tda1004x: Error during firmware upload\n"); - i2c_unlock_adapter(state->i2c); + i2c_unlock_bus(state->i2c, I2C_LOCK_SEGMENT); return -EIO; } pos += tx_size; dprintk("%s: fw_pos=0x%x\n", __func__, pos); } - i2c_unlock_adapter(state->i2c); + i2c_unlock_bus(state->i2c, I2C_LOCK_SEGMENT); /* give the DSP a chance to settle 03/10/05 Hac */ msleep(100);
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/tda1004x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)