Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp449139pxf; Thu, 18 Mar 2021 04:37:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNB4OrmNIFAWQdCBYYjfVzGKo50Riz0iUDbmVV3DXzLLwdpo0VXgvBfAQA2OWfFTqmSdWX X-Received: by 2002:aa7:d4ca:: with SMTP id t10mr3012638edr.388.1616067452006; Thu, 18 Mar 2021 04:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616067452; cv=none; d=google.com; s=arc-20160816; b=YUv3sLGhql8PYrSxIh1XarMxoH2oZbMlvwK1Z/y1ea5cCi/qQNvjWtFWGkZHICu5zE mgmYTZgs0jT2xUmnAjNysQPKL4PdLyKksJZVt7fcPRhhvxGKfi8nPwFgfLYOJ/9SC3mn EISALdkL2+h7humlkDT5hs5EqK5e0pHA7RDEDrMHtPS43HQZQSA4aNRZOYGJzBWnORMU g+dFQth0PR3h2Kqze6fCDJ/hobHWdhIKqemYpbXZHjzy/Yni0wcaBcMVCzMPiuSJE+U1 tjWhdGqKv6oIFqbRXolTIx24NxPU737/8wdeHa4F6+YFQymmxPZhMz98Wz4JriHuS8PD HaMg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=cApOFU8qOFvmVPgAIGjsaJOtYO8xIgn0n0FlIO2vpso=; b=K66bREB1rSHWXqrSzfP9hy1VRa46BoTwP6Km81QabiXsYy/B6RSTGCQomI6MPNo7QA i9poUBnjHidTL/NvJzZQH1tT/iJL22rr/RwV6yrCDwLnCrNqJOgXrhWDqRufKKdsYvNA J/7/vwuFZ+ilrqhzR6C0Z1kPPZzmbG6SHeQ6fdNVdMSRkQs8vRMpQsX3SHL/nC+JPOv4 YNBHVP9y+1pe1HtR6sXSFwh/BvO9rDnoG/iquZv60jxcDwJ0c1PdqzIJOPEJQY+OXP5x CY8dir3z4UCFGfGygdFs0DjqcoYYhyFgfnxcAGHTDNi2j/9Ae5x7QNP8A5HAI/T1TdJL 0FLQ== 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=fail (p=REJECT sp=NONE dis=NONE) header.from=bme.hu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si1432686edv.94.2021.03.18.04.37.09; Thu, 18 Mar 2021 04:37:31 -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; 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=fail (p=REJECT sp=NONE dis=NONE) header.from=bme.hu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230175AbhCRLgM (ORCPT + 99 others); Thu, 18 Mar 2021 07:36:12 -0400 Received: from mail.sch.bme.hu ([152.66.249.140]:15944 "EHLO mail.sch.bme.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230125AbhCRLfx (ORCPT ); Thu, 18 Mar 2021 07:35:53 -0400 Received: from Exchange2016-1.sch.bme.hu (152.66.249.140) by Exchange2016-1.sch.bme.hu (152.66.249.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2176.2; Thu, 18 Mar 2021 12:35:47 +0100 Received: from Cognitio.sch.bme.hu (152.66.211.220) by Exchange2016-1.sch.bme.hu (152.66.249.140) with Microsoft SMTP Server id 15.1.2176.2 via Frontend Transport; Thu, 18 Mar 2021 12:35:47 +0100 From: =?UTF-8?q?Bence=20Cs=C3=B3k=C3=A1s?= To: CC: =?UTF-8?q?Bence=20Cs=C3=B3k=C3=A1s?= , Subject: [PATCH v3 1/2] i2c: Add I2C_AQ_NO_REP_START adapter quirk Date: Thu, 18 Mar 2021 11:52:09 +0000 Message-ID: <20210318115210.2014204-2-bence98@sch.bme.hu> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210318115210.2014204-1-bence98@sch.bme.hu> References: <20210318115210.2014204-1-bence98@sch.bme.hu> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This quirk signifies that the adapter cannot do a repeated START, it always issues a STOP condition after transfers. Signed-off-by: Bence Csókás --- include/linux/i2c.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 56622658b215..a670ae129f4b 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -687,6 +687,8 @@ struct i2c_adapter_quirks { #define I2C_AQ_NO_ZERO_LEN_READ BIT(5) #define I2C_AQ_NO_ZERO_LEN_WRITE BIT(6) #define I2C_AQ_NO_ZERO_LEN (I2C_AQ_NO_ZERO_LEN_READ | I2C_AQ_NO_ZERO_LEN_WRITE) +/* adapter cannot do repeated START */ +#define I2C_AQ_NO_REP_START BIT(7) /* * i2c_adapter is the structure used to identify a physical i2c bus along -- 2.31.0