Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp326373pxj; Thu, 20 May 2021 10:11:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGs/r2DwDdwwhbCbcNfNdlPStPlNILk5lYUEofbvhqPmisttEfkHosv5/F1Afm3CBGDgUx X-Received: by 2002:a05:6602:2bef:: with SMTP id d15mr6623587ioy.13.1621530690279; Thu, 20 May 2021 10:11:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621530690; cv=none; d=google.com; s=arc-20160816; b=m/NgRiTo5Gf2SPyLu5bR4bRuBH1LmtxmB7NoMb8EnC2gjJbkzaVXL9g1o27o2Oa5iP FbsdK3X0kJ6NipC+1Mj38R9JhSMCwKPYFyqOIJNs0gGqD9lygiXnOpZBAcCQRKBpqUXB 4/mbwhJm85w314GoBT3vjoggY1mWJh3+KNK4ib4AUmZmpKsJ1KmQSW+/wyg015iFE6Q2 UbPENAMcZJJZxmkDl/nOzvq6+tUf1YVrpQe0ub1Sh1W0S1XzPhuNXuDieVIkEz6pW+/H /zSrlZheULnmkVlQRqyGx1BHB6OdMTyrPIk9DUE4X9/6F3b1n3HhHpgcNGP6rwOa/Kwh /ofA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qgLwPtcmadHc/pKjm3OY9YDxFc0OQ6TMDGN85QWnfOg=; b=KJzNn6pY3idzX9KoyZwI8wn865jxEixhZwuGs5AkSaUMQRX4pO0yL0j07gb10gjCHC yIc2gnSJsdCkbe7sE6Q/UkYNmeS21j/iziqp0pg1FHlBAtGVJX/tlbxE2srH+Q/HysTc xfhnSzb/TrF50lfhfIsWyiPZLpnfOd1uDe5vk2NwqOod408i3XsBhMBdIfXnvFREeDiP QzwrBRLyVdtSrnUaP1r3K8Zc5yjxTgB+AVIO/IywVj+WBszUIeUBMBsANzB5b53TEZwA eJ49ty4Ct3gDCu97/Lz9j1xT1b/vnTEYXD8NeyBSRaqw3ViUmW0LBMpW4KAZYZqMTn5x bg+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xecR4VJO; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a23si2695432jap.18.2021.05.20.10.11.15; Thu, 20 May 2021 10:11:30 -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=@linuxfoundation.org header.s=korg header.b=xecR4VJO; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235710AbhETKMH (ORCPT + 99 others); Thu, 20 May 2021 06:12:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:36564 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235389AbhETKE6 (ORCPT ); Thu, 20 May 2021 06:04:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 636926142A; Thu, 20 May 2021 09:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621503647; bh=fE8jg5uAIRl/bt8t+FQsXsgY5X3KlleAIN93G7Ume60=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xecR4VJOuyt2c35Ow6spDMn/Aa5u5GTnBZaQeqb+KjUACs7qVHQY4YI9bFB4F7POe kYuEHTffeTgdkqyW8lP5cK1bs8O4tIllrYQHjkGJ86dGrCwww+HtkeFiddqV4XlNVh mkkL7OgZcUjKgUQWR7wzxBBOZ1nd/GZ/QjoIN4dk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Wolfram Sang , =?UTF-8?q?Bence=20Cs=C3=B3k=C3=A1s?= , Sasha Levin Subject: [PATCH 4.19 316/425] i2c: Add I2C_AQ_NO_REP_START adapter quirk Date: Thu, 20 May 2021 11:21:25 +0200 Message-Id: <20210520092141.819465740@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520092131.308959589@linuxfoundation.org> References: <20210520092131.308959589@linuxfoundation.org> User-Agent: quilt/0.66 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 From: Bence Csókás [ Upstream commit aca01415e076aa96cca0f801f4420ee5c10c660d ] 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 Signed-off-by: Wolfram Sang Signed-off-by: Sasha Levin --- include/linux/i2c.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/i2c.h b/include/linux/i2c.h index 7e748648c7d3..6fda0458745d 100644 --- a/include/linux/i2c.h +++ b/include/linux/i2c.h @@ -662,6 +662,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.30.2