Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp171316pxk; Wed, 2 Sep 2020 18:17:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxNEML0ISoFz6f2doxIKjVZ4whRkWNv1h5cm1SoRQQ+DH5htxxVgCvGiwMMkVZ5JBynU+h9 X-Received: by 2002:a17:906:d182:: with SMTP id c2mr851095ejz.378.1599095843999; Wed, 02 Sep 2020 18:17:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599095843; cv=none; d=google.com; s=arc-20160816; b=B6EskrPJ+WodO1ulaxFgnpzBhXpZO+BAZZmDcv7PyclqXtvpu6wuik6RGwSrJXzRk2 fDJY2ROQw3+EAoF9nsYWnApDzfxEqK76UE5QmRfKVSDTCY618hfuBZafVQMfNx/ikOYQ tYQ0a9sR9DCCREGLevkAuswO3SxbIGoEfq1MkJOw0TbwFnJp6QZUzoSTW/Gk+FkrOvyo KljeGUVWQKfZ3BAIDux8rmIQsfzMT9yCSkpoAnivM1M4nN2PkXx+yZW+YNIGlXZxU0yE tscAfwgYl/yC/xUcKL+atDcXQM/2+ryQ5StEIvxsLZD7z2oPXfQ7x5bGl4xz4pMrUrrg OvYA== 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; bh=HWyY2LFPccisa6ogmHUBexCKCnlNWwIX+nu+DoCYsmE=; b=BZ9MtX0c7nMM+oaYEf5yYzju7oLSFHadxtgxqpFSf6L+KqdEnt1GRUsSjEwGzvWCe2 TEFnmoifLStHandUe3UcaX0TZ5HvKUuMgHIOqDctJVz/uIcA3eipfEPyUgyy3MpZ+JXr 4mCxr6uruROhgj+CR3yz/wysDGre19qYUipM9D2xpCAwMKDCWUrUwkuRgMH1OHa4DcAq 8RsXH91q4evroNZ1pYm/4NCIF0xO6V8nBvFdrknE44ASuVAiOLezJYUstAFvfRPS8/oB c/lDi6ANBkEvoPdrtZp9XpI//nB//wLGPwsP+Uugs3iWFEt1fpOB32Tzg5nnqXq9ZlzN NfpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=guqaV0S4; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b9si622730edk.256.2020.09.02.18.17.00; Wed, 02 Sep 2020 18:17:23 -0700 (PDT) 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 header.i=@gmail.com header.s=20161025 header.b=guqaV0S4; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726947AbgICBMT (ORCPT + 99 others); Wed, 2 Sep 2020 21:12:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726377AbgICBMR (ORCPT ); Wed, 2 Sep 2020 21:12:17 -0400 Received: from mail-lj1-x244.google.com (mail-lj1-x244.google.com [IPv6:2a00:1450:4864:20::244]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6FA59C061244; Wed, 2 Sep 2020 18:12:16 -0700 (PDT) Received: by mail-lj1-x244.google.com with SMTP id e11so1454264ljn.6; Wed, 02 Sep 2020 18:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=HWyY2LFPccisa6ogmHUBexCKCnlNWwIX+nu+DoCYsmE=; b=guqaV0S4Ftuo9redYgE2a8Zz9W5ZSsmbGAWy799wCCYoKEW67OHNdroEs3VvNnqlTN D2kVVURzkkDEDdbvx+GA/LG1/65M8Wmh0a4Kzpf7o3yLgBHt9VqUdz1CDhdwnkxiNVG7 7HqIDGdCSgPGSb2jiysO4U8AB5qoiX7mdRDhswEIXPOkSi3CN6K3JmqhqEDDV2/YwNls SWsDU27WP8zzFb3m1+32gHqEtUsIcg1qSRMnQ24md5ZEhiQzzWFRd1UUg80bs1ibw3oy hZNOKAj6dHGbC/96QTCqB5HuB7ZMm6/bTFdi7HDLk7jpzHuwZiy7Zp5C76+JmILSHPn8 VxOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=HWyY2LFPccisa6ogmHUBexCKCnlNWwIX+nu+DoCYsmE=; b=nJjyt/G5TkmbMlZ8BtfQJGj9TH5O6EIpizFsPrg1mRV11Om84Pd9FGOCCarL7BA0qs qR5ElPiQyRovAVL4H8rXGBz2w3F1TeWnMeVONZpDbJFN4kTfIRDMq2oEYiRpE8TiMpkF 8qg5UPaTQCk88x4a597HrtDRAKGQZUb6c6yVdirp6ykuCT1TKqwDplg+na3yYOE/vVgq NvK3zEAJOOphuuLDKqPbF8NMlHi453NrXJmMBcqKkyYtzIDjcqp7FpqB+OVwg0gVokgm nFoPSpCY5QvWBNo+CmIg5h9uQtk8XYWBDx3n9oJDXMbHrVup7SUeYYsZ6RyeCq/F71UU JA+A== X-Gm-Message-State: AOAM530Z6K7YyWEzr1WQHYMoXpBuUdKOgbQwbx5RhnfYuGFoNircZ0wG Ua7DGsrsuAa29zRri3VwdDLazQN0EY8= X-Received: by 2002:a2e:711:: with SMTP id 17mr270235ljh.462.1599095534639; Wed, 02 Sep 2020 18:12:14 -0700 (PDT) Received: from [192.168.2.145] (109-252-170-211.dynamic.spd-mgts.ru. [109.252.170.211]) by smtp.googlemail.com with ESMTPSA id 18sm216680lfg.29.2020.09.02.18.12.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Sep 2020 18:12:14 -0700 (PDT) Subject: Re: [PATCH v1 00/12] Improvements for Tegra I2C driver To: =?UTF-8?B?TWljaGHFgiBNaXJvc8WCYXc=?= Cc: Thierry Reding , Jonathan Hunter , Laxman Dewangan , Wolfram Sang , linux-i2c@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200831202303.15391-1-digetx@gmail.com> <20200902212026.GD1624@qmqm.qmqm.pl> From: Dmitry Osipenko Message-ID: <04aae642-80f9-d22e-1d80-bb206bb27a8b@gmail.com> Date: Thu, 3 Sep 2020 04:12:13 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200902212026.GD1624@qmqm.qmqm.pl> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 03.09.2020 00:20, Michał Mirosław пишет: > BTW, I wonder if you could expose i2c_in_atomic_xfer_mode() and use it > to differentiate atomic_xfer from normal and get rid of the internal > flag and .master_xfer_atomic callback. The atomic transfer uses 90% of the code path that a non-atomic transfer uses. I don't see how it could be exposed without duplicated lots of the code, unless I'm not missing what you're suggesting.