Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2965802pxj; Mon, 17 May 2021 14:19:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwaPfPl15JbxMNjNqMULE1hfA45SoAb3QBCdV7mDlmvB3wUXgAB9FVpaNpfVFVDnQQpWYm3 X-Received: by 2002:a50:c09a:: with SMTP id k26mr2459236edf.27.1621286371362; Mon, 17 May 2021 14:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621286371; cv=none; d=google.com; s=arc-20160816; b=T7S0dzCvQl/fOKNRTGn6e3k3pF0BzMsHsUyP3qcHiAvDX7RJqZYsK6HxXZLq5cihtj 1wvYafh1kAC16cLktzYupc3r65jQkc2jYtYzxIEos0paft2vyV1CuATUFU5Qs2C/tp+N kf8uBoKgZziqylH2zQDFgHdyMT9RIInVQ4gPgm9zf8NJDFa2zM3jbW79d5Nfb8Y1L98K NGr56a0vDz3Hoh/ZN1LgkOJ1n+SF9MSTRTLcQYKRgJf8o0k87OZN+t0EDT9TRSee8uqJ 75Vqr/x91qeg48NXi5PIzk+SBziLO4vRVD3cvDZ18uLIyxzYX9mb1MSDGUuIknDOoQhS eThw== 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=tzbFYwfo16O0Uwcj7k47oNRVlc/7SOb+FIAJRFziCA4=; b=Z/V5180oLBXSOzEFpO4cd2nw/rwOtlTqePLPZbtwQcuTa6GBvCyrn+opzFNjccmCnL hDbL4sOjF/opmGQO9UxTd4ZHwek9RIxIk9lztbbpuN/AKjV7kJ9B2xjAh2E59GgNN/aO yg4dAYmeW+fxsaJ+TC7H7NR6FmVEiW5G6S3eT3pZnGtfASVPYuj9o3iNB0xH0i+tB1Oc bpN4I0e64FsHCB2GF4Dgq/TGo/XeI4j1PdhCHueZrg4cF/pwBJlJgz7iY9yUtpLzHhMB JU5STnuj3qpdZz1/EqlxSgbIMN9pMzktov2hhTkhbXoJcui5tKRdF2eSPvcpnMIIfJlQ H0Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bgnwcSgY; 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 fc6si14001729ejc.580.2021.05.17.14.19.08; Mon, 17 May 2021 14:19: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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bgnwcSgY; 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 S237993AbhEQOKI (ORCPT + 99 others); Mon, 17 May 2021 10:10:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:58350 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238086AbhEQOHj (ORCPT ); Mon, 17 May 2021 10:07:39 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id B57A261377; Mon, 17 May 2021 14:06:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621260372; bh=IMJ8hZyHaeaxYIxJ3ChM/Z56gbfXgXe0IxNM/jf0ZWY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bgnwcSgYDtkFb7aeeGSPZk15LCwCD5hrS3dYf3WNQHgAmejnO3J6ORH/jEEPszslG Pft3+8srnJ7nyms4nC3WtUmW1uReZXnsO76+lcCpIj0vqk9hT88SijQ0xo3vltv0jD nZsMp2Gb5dDGYiFjD/Osef9idDZyN46fy5IxzL0M= 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 5.12 051/363] i2c: Add I2C_AQ_NO_REP_START adapter quirk Date: Mon, 17 May 2021 15:58:37 +0200 Message-Id: <20210517140304.331833596@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210517140302.508966430@linuxfoundation.org> References: <20210517140302.508966430@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 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.30.2