Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp6298590pxb; Wed, 17 Feb 2021 00:14:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjt55J7SjDjrylY2hJYnxut7vpBZOZ1yR5Sdy7eYAlPeP9ASOQrDAaoWioWfXRRyB58Qz3 X-Received: by 2002:a17:906:4bc2:: with SMTP id x2mr24971066ejv.143.1613549674833; Wed, 17 Feb 2021 00:14:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613549674; cv=none; d=google.com; s=arc-20160816; b=yPi4nnjHLgy684IlJ82ca5NNxRW2/0PGaE8EBjfeKHfZv+bqpSEFLeBaJxHSXUymrE h5cYBztbHAJtWq6BqLx2SqajAKHuOz//YL8E9tWTKXykiNLtNyjUvGDmAkk5IPTA3t4G 4m4IknITXMePd2n5YAm9G1c19U09F5GS2GEve1ABS++TisIQbgfpdL23A0qiD+h2S5GJ WZ9l4wGgy2IUPeSY4RQETwSveodfp886HU3N8HxUHcXacD3etNKKJKtu+vqhddE0JRTv qYUTqfjZhRCnm2cTfyp+MiyHkLMO6pA3/ER8dbQX+v1ACxfAXfeESEcOj7fW5Ra9xbWc Q+ww== 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=U+fDZ975xL8Hj6o7r3HYdRzIxYB9Qn2UcitDVPde2lk=; b=Z8ZELKUhUK+sWNhf0t1ziEmrifX/IVFIJR7ve/lFhK9mdHBZRLrum2SLEoyA0oDNQb 2GELnFjVAvHWXfBjyCCEPIJKtmMM/NxI86lXikXr4dczaPGOtKdXDk+C4DvEXQbTHcbN EpjlVfMjTiOVapQdExfXME2fIJySCIasjBVGVBcp+ErY3zNTbqKNzyUCfstryr7MLtcJ v7zcMj20nfjkLpNsjF5f1GU09IaxLNc1LwB0Mrfa7A5Hjl0Aq2xMMLP8uVCOVY8RYwgM NC+mjBGFRCMOQc52EDGjcYtKFvp5d44xpUdCPD/gnoWNBlYPUCpLBu8281Du2+DmRC+D Dhww== 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 p5si825692edt.506.2021.02.17.00.14.12; Wed, 17 Feb 2021 00:14:34 -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 S232076AbhBQIM7 (ORCPT + 99 others); Wed, 17 Feb 2021 03:12:59 -0500 Received: from mail-wr1-f49.google.com ([209.85.221.49]:36860 "EHLO mail-wr1-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231732AbhBQIIc (ORCPT ); Wed, 17 Feb 2021 03:08:32 -0500 Received: by mail-wr1-f49.google.com with SMTP id u14so16361850wri.3; Wed, 17 Feb 2021 00:08:15 -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=U+fDZ975xL8Hj6o7r3HYdRzIxYB9Qn2UcitDVPde2lk=; b=b0XHsg4Sy7LuD0AEwuE5fcZsGgAhoklAKupmZTb/VXaWVzo4sHc82WDqY6OphSc7TX r598VzNsoErV0oS97fe6ZpTe6HmXH9V1bUwS5pyif7+YDA4t07QuMOR0r2cLluotFudO vSATl3gjq8cFlsVwYKgptaPXk36RsYIqcxYu2DPSbd6wLCBterwLEbCfROc03+wWwFp3 IZ7027HYrXkSlRK08L46i+/FVx2fnJLc/nmM8eBhW6uFz7U+cam2tug4RzezV0bhWfXZ Zw0ideHQw292l58bGW992U4WlMsh9qZPmOBdaNF1lCWn75jMN7MHSed6xqaxkda4fA5+ 1LVg== X-Gm-Message-State: AOAM531jjXHnaxKI0z7tnmL0nuTL0rELY3BVNQbQMhGksEqk/WG/MXbJ pTm42VFLorywXzCuCmgTrgk= X-Received: by 2002:adf:cf06:: with SMTP id o6mr27655581wrj.169.1613549269872; Wed, 17 Feb 2021 00:07:49 -0800 (PST) Received: from kozik-lap (adsl-84-226-167-205.adslplus.ch. [84.226.167.205]) by smtp.googlemail.com with ESMTPSA id y6sm1847778wma.10.2021.02.17.00.07.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Feb 2021 00:07:48 -0800 (PST) Date: Wed, 17 Feb 2021 09:07:47 +0100 From: Krzysztof Kozlowski To: Marten Lindahl Cc: linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@axis.com Subject: Re: [PATCH] i2c: exynos5: Preserve high speed master code Message-ID: <20210217080747.a7nqzbotszwlb3dd@kozik-lap> References: <20210215190322.22094-1-marten.lindahl@axis.com> <20210216075141.o4wjnwmmjze2p3cn@kozik-lap> <20210216220933.2wzmft72bhjptzl3@axis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210216220933.2wzmft72bhjptzl3@axis.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? Best regards, Krzysztof