public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i2c: davinci: add I2C_FUNC_PROTOCOL_MANGLING to feature list
@ 2025-03-26 14:39 Marcus Folkesson
  2025-03-27  5:27 ` Mukesh Kumar Savaliya
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marcus Folkesson @ 2025-03-26 14:39 UTC (permalink / raw)
  To: Bartosz Golaszewski, Andi Shyti
  Cc: linux-arm-kernel, linux-i2c, linux-kernel, Marcus Folkesson

The driver do support I2C_M_IGNORE_NAK, so add
I2C_FUNC_PROTOCOL_MANGLING to the feature list.

Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
---
The driver do support I2C_M_IGNORE_NAK, so the
I2C_FUNC_PROTOCOL_MANGLING bit should be set.

I2C_M_IGNORE_NAK is the only supported "mangling-feature" though, but
other i2c bus drivers also seems to support only a subset of available
mangling-features, so I guess this is ok.
---
 drivers/i2c/busses/i2c-davinci.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c
index 6a909d339681214ed4f382b62f8cd924f4295e69..6a3d4e9e07f45ecc228943e877cde1fd9d72e8cb 100644
--- a/drivers/i2c/busses/i2c-davinci.c
+++ b/drivers/i2c/busses/i2c-davinci.c
@@ -551,7 +551,8 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
 
 static u32 i2c_davinci_func(struct i2c_adapter *adap)
 {
-	return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
+	return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL |
+		I2C_FUNC_PROTOCOL_MANGLING;
 }
 
 static void terminate_read(struct davinci_i2c_dev *dev)

---
base-commit: 1e26c5e28ca5821a824e90dd359556f5e9e7b89f
change-id: 20250326-i2c-5561bf853f8d

Best regards,
-- 
Marcus Folkesson <marcus.folkesson@gmail.com>


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

* Re: [PATCH] i2c: davinci: add I2C_FUNC_PROTOCOL_MANGLING to feature list
  2025-03-26 14:39 [PATCH] i2c: davinci: add I2C_FUNC_PROTOCOL_MANGLING to feature list Marcus Folkesson
@ 2025-03-27  5:27 ` Mukesh Kumar Savaliya
  2025-05-05 13:10 ` Marcus Folkesson
  2025-05-05 21:15 ` Andi Shyti
  2 siblings, 0 replies; 4+ messages in thread
From: Mukesh Kumar Savaliya @ 2025-03-27  5:27 UTC (permalink / raw)
  To: Marcus Folkesson, Bartosz Golaszewski, Andi Shyti
  Cc: linux-arm-kernel, linux-i2c, linux-kernel

Looks good to me.

On 3/26/2025 8:09 PM, Marcus Folkesson wrote:
> The driver do support I2C_M_IGNORE_NAK, so add
> I2C_FUNC_PROTOCOL_MANGLING to the feature list.
> 
> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Acked-by: Mukesh Kumar Savaliya <quic_msavaliy@quicinc.com>
> ---
> The driver do support I2C_M_IGNORE_NAK, so the
> I2C_FUNC_PROTOCOL_MANGLING bit should be set.
> 
> I2C_M_IGNORE_NAK is the only supported "mangling-feature" though, but
> other i2c bus drivers also seems to support only a subset of available
> mangling-features, so I guess this is ok.
> ---
>   drivers/i2c/busses/i2c-davinci.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davinci.c
> index 6a909d339681214ed4f382b62f8cd924f4295e69..6a3d4e9e07f45ecc228943e877cde1fd9d72e8cb 100644
> --- a/drivers/i2c/busses/i2c-davinci.c
> +++ b/drivers/i2c/busses/i2c-davinci.c
> @@ -551,7 +551,8 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num)
>   
>   static u32 i2c_davinci_func(struct i2c_adapter *adap)
>   {
> -	return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL;
> +	return I2C_FUNC_I2C | I2C_FUNC_SMBUS_EMUL |
> +		I2C_FUNC_PROTOCOL_MANGLING;
>   }
>   
>   static void terminate_read(struct davinci_i2c_dev *dev)
> 
> ---
> base-commit: 1e26c5e28ca5821a824e90dd359556f5e9e7b89f
> change-id: 20250326-i2c-5561bf853f8d
> 
> Best regards,


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

* Re: [PATCH] i2c: davinci: add I2C_FUNC_PROTOCOL_MANGLING to feature list
  2025-03-26 14:39 [PATCH] i2c: davinci: add I2C_FUNC_PROTOCOL_MANGLING to feature list Marcus Folkesson
  2025-03-27  5:27 ` Mukesh Kumar Savaliya
@ 2025-05-05 13:10 ` Marcus Folkesson
  2025-05-05 21:15 ` Andi Shyti
  2 siblings, 0 replies; 4+ messages in thread
From: Marcus Folkesson @ 2025-05-05 13:10 UTC (permalink / raw)
  To: Bartosz Golaszewski, Andi Shyti; +Cc: linux-arm-kernel, linux-i2c, linux-kernel

Hello,

On Wed, Mar 26, 2025 at 03:39:47PM +0100, Marcus Folkesson wrote:
> The driver do support I2C_M_IGNORE_NAK, so add
> I2C_FUNC_PROTOCOL_MANGLING to the feature list.
> 
> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
> ---

Is this patch picked up by any tree?
No confirmation nor showing up in -next makes me wonder.

Thanks,
Marcus Folkesson

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

* Re: [PATCH] i2c: davinci: add I2C_FUNC_PROTOCOL_MANGLING to feature list
  2025-03-26 14:39 [PATCH] i2c: davinci: add I2C_FUNC_PROTOCOL_MANGLING to feature list Marcus Folkesson
  2025-03-27  5:27 ` Mukesh Kumar Savaliya
  2025-05-05 13:10 ` Marcus Folkesson
@ 2025-05-05 21:15 ` Andi Shyti
  2 siblings, 0 replies; 4+ messages in thread
From: Andi Shyti @ 2025-05-05 21:15 UTC (permalink / raw)
  To: Marcus Folkesson
  Cc: Bartosz Golaszewski, linux-arm-kernel, linux-i2c, linux-kernel

Hi Marcus,

On Wed, Mar 26, 2025 at 03:39:47PM +0100, Marcus Folkesson wrote:
> The driver do support I2C_M_IGNORE_NAK, so add
> I2C_FUNC_PROTOCOL_MANGLING to the feature list.
> 
> Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>

merged to i2c/i2c-host.

Thanks,
Andi

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

end of thread, other threads:[~2025-05-05 21:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-26 14:39 [PATCH] i2c: davinci: add I2C_FUNC_PROTOCOL_MANGLING to feature list Marcus Folkesson
2025-03-27  5:27 ` Mukesh Kumar Savaliya
2025-05-05 13:10 ` Marcus Folkesson
2025-05-05 21:15 ` Andi Shyti

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