public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality
@ 2017-04-26  4:41 tnhuynh
  2017-05-16 21:36 ` Wolfram Sang
  2017-05-16 21:39 ` Wolfram Sang
  0 siblings, 2 replies; 4+ messages in thread
From: tnhuynh @ 2017-04-26  4:41 UTC (permalink / raw)
  To: Wolfram Sang, linux-i2c, linux-acpi, linux-kernel
  Cc: Loc Ho, Phong Vo, patches, Tin Huynh

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


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality
  2017-04-26  4:41 [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality tnhuynh
@ 2017-05-16 21:36 ` Wolfram Sang
  2017-05-16 21:39 ` Wolfram Sang
  1 sibling, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2017-05-16 21:36 UTC (permalink / raw)
  To: tnhuynh; +Cc: linux-i2c, linux-acpi, linux-kernel, Loc Ho, Phong Vo, patches

[-- Attachment #1: Type: text/plain, Size: 712 bytes --]

On Wed, Apr 26, 2017 at 11:41:45AM +0700, tnhuynh@apm.com wrote:
> 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.

No Signed-off, please run checkpatch on your patches!

> -	return I2C_FUNC_SMBUS_BYTE |
> +	return I2C_FUNC_I2C |
> +		I2C_FUNC_SMBUS_BYTE |

Does this really work? You don't have a master_xfer function, so I think
it cannot work. You don't seem to have I2C_FUNC_I2C support in your driver.

>  		I2C_FUNC_SMBUS_BYTE_DATA |
>  		I2C_FUNC_SMBUS_WORD_DATA |
>  		I2C_FUNC_SMBUS_BLOCK_DATA |
> -- 
> 1.7.1
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality
  2017-04-26  4:41 [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality tnhuynh
  2017-05-16 21:36 ` Wolfram Sang
@ 2017-05-16 21:39 ` Wolfram Sang
  2017-05-16 21:40   ` Wolfram Sang
  1 sibling, 1 reply; 4+ messages in thread
From: Wolfram Sang @ 2017-05-16 21:39 UTC (permalink / raw)
  To: tnhuynh; +Cc: linux-i2c, linux-acpi, linux-kernel, Loc Ho, Phong Vo, patches

[-- Attachment #1: Type: text/plain, Size: 398 bytes --]

On Wed, Apr 26, 2017 at 11:41:45AM +0700, tnhuynh@apm.com wrote:
> 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.

Again, no Signed-off. I can't apply it without one. lso, please add your
full name to the mail header.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality
  2017-05-16 21:39 ` Wolfram Sang
@ 2017-05-16 21:40   ` Wolfram Sang
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfram Sang @ 2017-05-16 21:40 UTC (permalink / raw)
  To: tnhuynh; +Cc: linux-i2c, linux-acpi, linux-kernel, Loc Ho, Phong Vo, patches

[-- Attachment #1: Type: text/plain, Size: 548 bytes --]

On Tue, May 16, 2017 at 11:39:08PM +0200, Wolfram Sang wrote:
> On Wed, Apr 26, 2017 at 11:41:45AM +0700, tnhuynh@apm.com wrote:
> > 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.
> 
> Again, no Signed-off. I can't apply it without one. lso, please add your
> full name to the mail header.

Wrong mail, should have been replied to the other patch, sorry!



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-16 21:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-26  4:41 [PATCH V1] i2c: xgene: Add support for I2C_FUNC_I2C functionality tnhuynh
2017-05-16 21:36 ` Wolfram Sang
2017-05-16 21:39 ` Wolfram Sang
2017-05-16 21:40   ` Wolfram Sang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox