From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751233AbbIGK1P (ORCPT ); Mon, 7 Sep 2015 06:27:15 -0400 Received: from 7.mo5.mail-out.ovh.net ([178.32.124.100]:50973 "EHLO 7.mo5.mail-out.ovh.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750939AbbIGK1N (ORCPT ); Mon, 7 Sep 2015 06:27:13 -0400 X-Greylist: delayed 2197 seconds by postgrey-1.27 at vger.kernel.org; Mon, 07 Sep 2015 06:27:13 EDT From: Nicola Corna To: Wolfram Sang , linux-i2c@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Nicola Corna Subject: [RESEND PATCH 1/2] i2c: added FUNC flag for unsupported clock stretching Date: Mon, 7 Sep 2015 11:48:01 +0200 Message-Id: <1441619282-1931-1-git-send-email-nicola@corna.info> X-Mailer: git-send-email 2.5.1 X-Ovh-Tracer-Id: 6757651241256051565 X-Ovh-Remote: 151.55.86.87 () X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-OVH-SPAMSTATE: OK X-OVH-SPAMSCORE: -100 X-OVH-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekgedruddtucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeekgedruddtucetufdoteggucfrrhhofhhilhgvmecuqfggjfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Added I2C_FUNC_NO_CLK_STRETCH, to be used when clock stretching is not supported. Signed-off-by: Nicola Corna --- Documentation/i2c/functionality | 1 + include/uapi/linux/i2c.h | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/i2c/functionality b/Documentation/i2c/functionality index 4aae8ed..f53807e 100644 --- a/Documentation/i2c/functionality +++ b/Documentation/i2c/functionality @@ -21,6 +21,7 @@ For the most up-to-date list of functionality constants, please check I2C_M_REV_DIR_ADDR and I2C_M_NO_RD_ACK flags (which modify the I2C protocol!) I2C_FUNC_NOSTART Can skip repeated start sequence + I2C_FUNC_NO_CLK_STRETCH Does NOT support clock stretching I2C_FUNC_SMBUS_QUICK Handles the SMBus write_quick command I2C_FUNC_SMBUS_READ_BYTE Handles the SMBus read_byte command I2C_FUNC_SMBUS_WRITE_BYTE Handles the SMBus write_byte command diff --git a/include/uapi/linux/i2c.h b/include/uapi/linux/i2c.h index b0a7dd6..59e4b43 100644 --- a/include/uapi/linux/i2c.h +++ b/include/uapi/linux/i2c.h @@ -88,6 +88,7 @@ struct i2c_msg { #define I2C_FUNC_SMBUS_PEC 0x00000008 #define I2C_FUNC_NOSTART 0x00000010 /* I2C_M_NOSTART */ #define I2C_FUNC_SLAVE 0x00000020 +#define I2C_FUNC_NO_CLK_STRETCH 0x00000040 /* No check for SCL low */ #define I2C_FUNC_SMBUS_BLOCK_PROC_CALL 0x00008000 /* SMBus 2.0 */ #define I2C_FUNC_SMBUS_QUICK 0x00010000 #define I2C_FUNC_SMBUS_READ_BYTE 0x00020000 -- 2.5.1