Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp5304567imm; Tue, 26 Jun 2018 09:03:09 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIZb57PGf/blkslSQp+SRPLuOLd0RVg7xQRDys2+KFS4U3FxPCkI1ukLGMMwdqiZQvjCfjz X-Received: by 2002:a63:6383:: with SMTP id x125-v6mr1904507pgb.127.1530028989346; Tue, 26 Jun 2018 09:03:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530028989; cv=none; d=google.com; s=arc-20160816; b=XHwuCr+OsGX4+ZbQNdWj959phtSpgtxkdU7Hp5J2WYua4eNWrnwWYndyaSoHM1E/3f EpStw4ZKCZ7rHTGcDcAHfnoitCDWN0dsJogvlAF/8ioPr+G9u6EyR+1W1MnBz5cBo2k4 Eluu0m5rUHpvs3BA/xT+1tfd6dW8TWX/Wghw7WYx8feVqgu8+YkS6rjXKhscJrICFrwf R1IOo8s8U0Tu9PEECGGH7s63PrvhiR12N5G2HcF3IMIEk2EeOPiBpKbDMvtlLX6NrNpO QEbA7u2iUX+5XnRtE2N+FqJI6etP+ivGm1RfDncngYQtj79nDUGFOkMqSGjAqrmcvKfQ P15A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=riXaUQ0RWX88tr4TCDYpoWoyFN9Ihs6kvucDot5Lwr8=; b=rmSOwkv2o5RpX45EtgGnyJRRh8NkK9Dq++ddhtEnIRK0zS1fYySJ/PKjEo/p2ql0My xr9/ZJGf4M7uPH9i8O6MluVHZecgQDBpTuGBItVHYxcc4HZtdulJrE6cCp7JSZePhEpV ClxmIGeJuI/if6p0+4nsJ73uV2P3f6Hp2nFCMP8eB3jbBToBhkZJstoGT3bdkdc4V9Rk cwRs6biC2XgDFORMM8YW6z1nI3VUgvLll41SBpD8vw0jPUf6qoCCcR+LpJhrvXbw98YI CR9RNlKwBi76rAjqlW+aFxkO/tR73TPOBU3Hdik90G1CxK7SXricm7tedG0h5Ugw7jKI tEfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=VaRPdpq8; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6-v6si1622002pgc.152.2018.06.26.09.02.54; Tue, 26 Jun 2018 09:03:09 -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=@ti.com header.s=ti-com-17Q1 header.b=VaRPdpq8; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965855AbeFZOLb (ORCPT + 99 others); Tue, 26 Jun 2018 10:11:31 -0400 Received: from fllnx210.ext.ti.com ([198.47.19.17]:9181 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965824AbeFZOL2 (ORCPT ); Tue, 26 Jun 2018 10:11:28 -0400 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id w5QE9whF028784; Tue, 26 Jun 2018 09:09:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1530022198; bh=riXaUQ0RWX88tr4TCDYpoWoyFN9Ihs6kvucDot5Lwr8=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=VaRPdpq8BH7Mu8eJRNUm1bfTNzLTbHfiG4QQm+cVufoqoWSY+NeXGNAwkPzbZv3u4 WpBQnzhuEz4rE4f/tgbhADoE5KokB4nUWtxIdIu+ouZ5gr3lJHDhWfuYnpdi34PU8g zPGmCq4cWVxobfKlJLInrKJPEEd+hlttqlqXwIlo= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5QE9wGI030836; Tue, 26 Jun 2018 09:09:58 -0500 Received: from DFLE113.ent.ti.com (10.64.6.34) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Tue, 26 Jun 2018 09:09:57 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Tue, 26 Jun 2018 09:09:57 -0500 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w5QE9iqC031944; Tue, 26 Jun 2018 09:09:44 -0500 Subject: Re: [PATCH v2 10/10] i2c: remove i2c_lock_adapter and use i2c_lock_bus directly To: Peter Rosin , CC: Peter Huewe , Jarkko Sakkinen , Jason Gunthorpe , Arnd Bergmann , Greg Kroah-Hartman , Brian Norris , Gregory Fong , Florian Fainelli , , 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 , , , , , , , References: <20180620051803.12206-1-peda@axentia.se> <20180620051803.12206-11-peda@axentia.se> From: Sekhar Nori Message-ID: <4e0545e3-fee9-cf29-bae1-e442347e3cb8@ti.com> Date: Tue, 26 Jun 2018 19:39:43 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180620051803.12206-11-peda@axentia.se> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 20 June 2018 10:48 AM, Peter Rosin wrote: > The i2c_lock_adapter name is ambiguous since it is unclear if it > refers to the root adapter or the adapter you name in the argument. > The natural interpretation is the adapter you name in the argument, > but there are historical reasons for that not being the case; it > in fact locks the root adapter. Just remove the function and force > users to spell out the I2C_LOCK_ROOT_ADAPTER name to indicate what > is really going on. Also remove i2c_unlock_adapter, of course. > > This patch was generated with > > git grep -l 'i2c_\(un\)\?lock_adapter' \ > | xargs sed -i 's/i2c_\(un\)\?lock_adapter(\([^)]*\))/'\ > 'i2c_\1lock_bus(\2, I2C_LOCK_ROOT_ADAPTER)/g' > > followed by white-space touch-up. > > Signed-off-by: Peter Rosin > --- > drivers/i2c/busses/i2c-brcmstb.c | 8 ++++---- > drivers/i2c/busses/i2c-davinci.c | 4 ++-- On DM644x and DA850 EVMs applying this series does not seem to break I2C functionality. So: Tested-by: Sekhar Nori Thanks, Sekhar