Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6346103pxb; Wed, 17 Feb 2021 01:51:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJz7n0J92Ai4up4W66SZhjro1t4I7T5Wp9hIjvJlZcRdlbu4fF/DU7ootj22/pIIPQvWAtNr X-Received: by 2002:aa7:cd8c:: with SMTP id x12mr26232765edv.355.1613555504728; Wed, 17 Feb 2021 01:51:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613555504; cv=none; d=google.com; s=arc-20160816; b=M1qoRVMkLfPK8vA1iNHt7eRRir5Cx0JiiTFC6Njuz3itJaphBYAsRh6Y7uop6jdtvk AJl+ToFj9petKm2xKbEt0bN+0zuInz7aQa+4Ygq23SZGQ/sXmKVUVs7NRgOngu2iIL0k tIRXUJJxZPEs3Z8QP6irlKjhIbK8ZAVZ5mPg1BUDAbr5kcUV9SIrvMTM0O3SW+chEkGy nAE4Nvb/+9SaiGUz8hNauI6B4FdnUzILLJefoBFzSKEzVi3c97AGxEM20LZO4dHdlhPQ Ug3q+RkZJL4VifZpALYPLOI2bs24tlH3JYtdGBZ5CU9IrHG64YQbamvxbwa4Y03F8NNx 1A0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=HM9Ed9VK7QFCdL2LC2Q7uP7A/EnIqoKacM0+9fsn0yQ=; b=B/g1aG62nVZUjLTjSfUSzH0hvWdCD4TT6R2jbNWxTNkOv8KWuyJwq9a8VJs2xXYE4N XB0vG4pfHMdWyhktcy+/tE0b5aPvp3SGJgEMo3oTopUEYYgXNO0+4eD1b679Gt1OszLr TgOJ3iTb86OJEB3CA3TE7zSAAmPXPf2c6ufokRbsde6j7qmlNxgwvRH2tWyIElWBg4hk IARib8WLdAf8vUWpZHvDZpC5IjAKTczuh5B/MlLkYVT7GOD8Jmy6xoZzc4BI5Q/TQOug 21uLq+WoUzebw8Lx1vRVwL4ggz0vPcooeiYMBYabOXnURJEXI5YKwNc7zJcaxFKvoBU5 FDYg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f5si968423edx.476.2021.02.17.01.51.20; Wed, 17 Feb 2021 01:51:44 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232069AbhBQIo1 (ORCPT + 99 others); Wed, 17 Feb 2021 03:44:27 -0500 Received: from mail-wm1-f42.google.com ([209.85.128.42]:50989 "EHLO mail-wm1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231932AbhBQIo0 (ORCPT ); Wed, 17 Feb 2021 03:44:26 -0500 Received: by mail-wm1-f42.google.com with SMTP id a132so1251529wmc.0; Wed, 17 Feb 2021 00:44:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=HM9Ed9VK7QFCdL2LC2Q7uP7A/EnIqoKacM0+9fsn0yQ=; b=tjqGFwY1i8tCXPkd0tEEXdpeZrH7il+UShcI4CLE+Q7gePb8tRgkdMh9aWPJxnmP28 wQUQPCNCy3lUVwfHSmr/KkhW8C5eE9iusHlfIlGc+hE9KRtjSwYUXIWEDdzuOZcG4GzG cjHXYu42JFGB/xIKjHFbCEK6Bd6eVhHVW8BK9Y6oD7QCaLXRYqtmXdKskWftMNRBltD/ 40Yp1kPLiHa2Ton13aTgy+4obYcKOuPjfiBsLaGQIedk/mFzRCm8Jj/3XKnbQk6ml0aC 9Acj+Fb00TmKmgiRh6KkcYBjx/C3u0XncxTeeEKS5+hoOh3rQx3W3AGE1ao89fTm5fTc sBEA== X-Gm-Message-State: AOAM532MIzsgHkSO5etbPWmlj2/07gZYwwQMPl81p8JBnZ2oIhSCYLd7 E+gSFvXGXtNKqoKoNrLQdyg= X-Received: by 2002:a05:600c:414b:: with SMTP id h11mr6149605wmm.125.1613551424165; Wed, 17 Feb 2021 00:43:44 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id q140sm2707349wme.0.2021.02.17.00.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 00:43:43 -0800 (PST) Date: Wed, 17 Feb 2021 09:43:42 +0100 From: Krzysztof Kozlowski To: Jesper Nilsson Cc: =?utf-8?Q?M=C3=A5rten?= 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: <20210217084342.wqtrdeisfs5gb7wq@kozik-lap> References: <20210215190322.22094-1-marten.lindahl@axis.com> <20210216075141.o4wjnwmmjze2p3cn@kozik-lap> <20210216220933.2wzmft72bhjptzl3@axis.com> <20210217080747.a7nqzbotszwlb3dd@kozik-lap> <20210217083211.GN30470@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210217083211.GN30470@axis.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 17, 2021 at 09:32:11AM +0100, Jesper Nilsson wrote: > 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. Cool! Good to see that this code is re-used. :) Best regards, Krzysztof