public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: tnhuynh@apm.com
To: Wolfram Sang <wsa@the-dreams.de>,
	linux-i2c@vger.kernel.org, linux-acpi@vger.kernel.org,
	linux-kernel@vger.kernel.org
Cc: Loc Ho <lho@apm.com>, Phong Vo <pvo@apm.com>,
	patches@apm.com, Tin Huynh <tnhuynh@apm.com>
Subject: [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality
Date: Wed, 26 Apr 2017 11:41:45 +0700	[thread overview]
Message-ID: <1493181705-18531-1-git-send-email-tnhuynh@apm.com> (raw)

From: Tin Huynh <tnhuynh@apm.com>

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


             reply	other threads:[~2017-04-26  4:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-26  4:41 tnhuynh [this message]
2017-05-16 21:36 ` [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality Wolfram Sang
2017-05-16 21:39 ` Wolfram Sang
2017-05-16 21:40   ` Wolfram Sang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1493181705-18531-1-git-send-email-tnhuynh@apm.com \
    --to=tnhuynh@apm.com \
    --cc=lho@apm.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-i2c@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=patches@apm.com \
    --cc=pvo@apm.com \
    --cc=wsa@the-dreams.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox