Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6331169pxb; Wed, 17 Feb 2021 01:21:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJzV9bp/RCzFcmI1OnJHHxrx7SVfAdBEsTvq/KU8gjhB8Wu9ixdkHb3hPSj6xAVFeZd6uAH1 X-Received: by 2002:a17:906:12d2:: with SMTP id l18mr23940738ejb.308.1613553699519; Wed, 17 Feb 2021 01:21:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613553699; cv=none; d=google.com; s=arc-20160816; b=mkCflliDcYC3IfwCy+90KYa0KPj6dnei5F7QusGWB17Pp6ylo3ZjMjZ1cY/0glgm/9 sqjJqIlB0arv85MgD9kFEM2ADJIYN1PbqwSHCiZu54OMu2jq/nPSIWrToNq/YM0A6S8Y sm6ntonimjQXU/Ep5Y6yn15omuBMo5okjtL664Gn6b1Oynnd8wKPlueRcq7VHR1HTr5i yqJdeldKXIy1RGszYWT5CESQa0R+HOSZ8MY37Z1iS6kypH3mLvEdVsxf2NpPoFoPK0TW f9RtBTAKvvUDD8JnYEsV6ifIW6uZ40C+Y8KYdRR573Y5QkAjJnLuYegw4dIXkHH1tGkp ptdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=F8vZxAEmte+jbew9PFlKUPYh3emsMfZMkNAme23J2xE=; b=u5bwW7EdfHNBRs+115MsfX4jT/yTqDTtDDHpy+QhtxLmVvy5zAnWyf6xn+04vDZTnP c9TjheUhy5Hj3RliGGmdof16JgFMEeW2/mNt6+vKiwfgfxuA0PRHtKqjYsQlzAguGfKF Iu8wMmBkj394FX3L5LY1XHHa38sKT5evx8Ttq6I5tgZHT4kTa7NqVnxeiUXL7woLGuyE XLEbrKRtz+innJjwwWP5xNNnVCY1l8/pbtmJOEbMYn65ksDtXsYLGjHCda18mfHhkaVf y9N13+DrGcAfXvotMqfUQdMuyW6Ur2LMV8PX66m1w871T6ekt86cJRp8FQmkm+jhfF17 rkCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=hSJZqbcy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k2si1044303ejr.529.2021.02.17.01.21.16; Wed, 17 Feb 2021 01:21:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@axis.com header.s=axis-central1 header.b=hSJZqbcy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=axis.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231239AbhBQIma (ORCPT + 99 others); Wed, 17 Feb 2021 03:42:30 -0500 Received: from smtp1.axis.com ([195.60.68.17]:24672 "EHLO smtp1.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbhBQIm3 (ORCPT ); Wed, 17 Feb 2021 03:42:29 -0500 X-Greylist: delayed 575 seconds by postgrey-1.27 at vger.kernel.org; Wed, 17 Feb 2021 03:42:27 EST DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axis.com; q=dns/txt; s=axis-central1; t=1613551348; x=1645087348; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=F8vZxAEmte+jbew9PFlKUPYh3emsMfZMkNAme23J2xE=; b=hSJZqbcyFY/up84P8j8sDt1Mk3Z0+TlAqnJTU0oRKeJzCIHPeDj3IHIi 13h/qnB2Yf9vBHEnjy31zG90RbiEXrMh+LyYshUsr2Qv1zYSOqlff6fk/ /hIZhPMRzq3tR7yUROGjth0RHGeEo7yb+VDoQAfE1HaXXqcx4Yf/vxsOa w7yCH5w3lHsBydBuZQPG2rm5jizwvIweHrJzHbP63vuj4q7ZqpAInDlrn Q8QD4SRbjwFVSWA2tpgqSpXePF0F2W2mixqwrIbh3IraZ8ScpWMWNMtJR IIYkvw19KuPAjhOtMIvUSI6Z9SzJqdnKuQcigJq0t207W7aziWZ0ulnnJ w==; Date: Wed, 17 Feb 2021 09:32:11 +0100 From: Jesper Nilsson To: Krzysztof Kozlowski CC: =?iso-8859-1?Q?M=E5rten?= Lindahl , "linux-samsung-soc@vger.kernel.org" , kernel , "linux-i2c@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] i2c: exynos5: Preserve high speed master code Message-ID: <20210217083211.GN30470@axis.com> References: <20210215190322.22094-1-marten.lindahl@axis.com> <20210216075141.o4wjnwmmjze2p3cn@kozik-lap> <20210216220933.2wzmft72bhjptzl3@axis.com> <20210217080747.a7nqzbotszwlb3dd@kozik-lap> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20210217080747.a7nqzbotszwlb3dd@kozik-lap> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 17, 2021 at 09:07:47AM +0100, Krzysztof Kozlowski wrote: > On Tue, Feb 16, 2021 at 11:09:33PM +0100, Marten Lindahl wrote: > > > Any reason why not "|= MASTER_ID(i2c->adap.nr)" here instead of more > > > expensive IO read? It's quite important because your current code will > > > bitwise-or old I2C slave address with a new one... This should break > > > during tests with multiple I2C slave devices, shouldn't it? > > > > > > > You are correct. It is better to use the macro instead, and yes, > > safer too. I only have one device that supports high speed i2c, but > > I get your point. It could potentially break. > > > > > On which HW did you test it? > > > > I used an Artpec development board as master and INA230EVM board > > as slave. > > Artpec development board with? What SoC? The ARTPEC-line of SoC:s are Axis Communications own ASICs, in the latest iteration it's a Cortex-53 and includes instances of the exynos5 HSI2C ip. > Best regards, > Krzysztof /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson@axis.com