Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp636947pxf; Wed, 31 Mar 2021 12:04:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEZUrbJvHkZgQVjA3gT/nl6KgpssIA+34CmphW0AHAUJlJDCeE8IW1JRy0uF8GL8ZbvTzp X-Received: by 2002:a17:906:f0d0:: with SMTP id dk16mr5296943ejb.48.1617217462579; Wed, 31 Mar 2021 12:04:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617217462; cv=none; d=google.com; s=arc-20160816; b=gXrE6yWlp57jcKh1jUnACrOnqakXHNlpoK/dsT0OnN/cu39cEmr96r3Y9rcy4tnpqn lru681hhZ85EQeFQRrcA3BDlN4btVBbowu3cm7k97OEK+2ekCm4Tm/V84Aa/C00fqOhP mWz3bFc8y146QjiBHDPcbhe5cIloSuISs3DXpZQ/DCaRpSXRQdhEKRtS7e21EbCk+E1i LDg6S//HWBR160fao4/HWHx5x4qIj/Yy/kXlNS+IW9VPdjUyDy2IjF+mdwo8gkuUF4Fs XZtBNjLnvAxZwnB/JQ/+9UPHVZSpOwKsWmswLA0msIM2gGotV4/++V4+4Ct5GhLljWdy nF3Q== 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=cFp0p9nFHt7oU+Lp29geK7PyqJ9I2SRh+tNeELB1iCY=; b=EIUT3gqEQQONQ2B8bW8EzFQnhwzfBmPye44HriawVUF63+h1BnSWgS9VrIApu/v/8l y/qwk7pp23CCE3sqJe37VV/n88cufztGPr5ZWe+Cd91L4kfdWtDA8jQ6SWMd+dhf+mxu bTww3wIyxjFI8iKKpwITCxe+//vmpCOoHepFggLDGtj6IAwj3mq2wCi5PA685AwcfPD2 t5Zb6ruPwhe8u6K5jIoDRs4e1hXJ5Gcg87tRybQK+5YIFu6/DVAhpgAj0WggygfxcOr0 OEUSXqd7hvUufCWPRMD/dv+jsxPs4ppmT/xmhQmH9c+xrxlCRAvIekfjsVnuik+9F2nh Zqeg== 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 m19si2423129eds.451.2021.03.31.12.03.58; Wed, 31 Mar 2021 12:04:22 -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 S235599AbhCaTCu (ORCPT + 99 others); Wed, 31 Mar 2021 15:02:50 -0400 Received: from mail.sch.bme.hu ([152.66.249.140]:62560 "EHLO mail.sch.bme.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235351AbhCaTCP (ORCPT ); Wed, 31 Mar 2021 15:02:15 -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; Wed, 31 Mar 2021 21:02:14 +0200 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; Wed, 31 Mar 2021 21:02:14 +0200 From: =?UTF-8?q?Bence=20Cs=C3=B3k=C3=A1s?= To: CC: =?UTF-8?q?Bence=20Cs=C3=B3k=C3=A1s?= , , Wolfram Sang Subject: [PATCH v4 1/2] i2c: Add I2C_AQ_NO_REP_START adapter quirk Date: Wed, 31 Mar 2021 19:19:20 +0000 Message-ID: <20210331191921.1066172-2-bence98@sch.bme.hu> X-Mailer: git-send-email 2.31.0 In-Reply-To: <20210331191921.1066172-1-bence98@sch.bme.hu> References: <20210331191921.1066172-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. Suggested-by: Wolfram Sang 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