Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1953808AbdDZEma (ORCPT ); Wed, 26 Apr 2017 00:42:30 -0400 Received: from mail-pg0-f47.google.com ([74.125.83.47]:34191 "EHLO mail-pg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1953724AbdDZEmX (ORCPT ); Wed, 26 Apr 2017 00:42:23 -0400 From: tnhuynh@apm.com To: Wolfram Sang , linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Loc Ho , Phong Vo , patches@apm.com, Tin Huynh Subject: [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality Date: Wed, 26 Apr 2017 11:41:45 +0700 Message-Id: <1493181705-18531-1-git-send-email-tnhuynh@apm.com> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 869 Lines: 25 From: Tin Huynh Certain I2C slave drivers, such as the pca95xx, require only I2C operations instead of SMBus extensions. This patch adds I2C_FUNC_I2C functionally to support those drivers. --- drivers/i2c/busses/i2c-xgene-slimpro.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/drivers/i2c/busses/i2c-xgene-slimpro.c b/drivers/i2c/busses/i2c-xgene-slimpro.c index dbe7e44..439357c 100644 --- a/drivers/i2c/busses/i2c-xgene-slimpro.c +++ b/drivers/i2c/busses/i2c-xgene-slimpro.c @@ -365,7 +365,8 @@ static int xgene_slimpro_i2c_xfer(struct i2c_adapter *adap, u16 addr, */ static u32 xgene_slimpro_i2c_func(struct i2c_adapter *adapter) { - return I2C_FUNC_SMBUS_BYTE | + return I2C_FUNC_I2C | + I2C_FUNC_SMBUS_BYTE | I2C_FUNC_SMBUS_BYTE_DATA | I2C_FUNC_SMBUS_WORD_DATA | I2C_FUNC_SMBUS_BLOCK_DATA | -- 1.7.1