* [PATCH] i2c: designware: Fix the functionality flags of the slave-only interface
@ 2024-05-31 9:17 Jean Delvare
2024-05-31 9:23 ` Andy Shevchenko
2024-06-04 1:10 ` Andi Shyti
0 siblings, 2 replies; 5+ messages in thread
From: Jean Delvare @ 2024-05-31 9:17 UTC (permalink / raw)
To: Linux I2C
Cc: Luis Oliveira, Jarkko Nikula, Andy Shevchenko, Mika Westerberg,
Jan Dabros, Andi Shyti
When an I2C adapter acts only as a slave, it should not claim to
support I2C master capabilities.
Fixes: 5b6d721b266a ("i2c: designware: enable SLAVE in platform module")
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Cc: Luis Oliveira <lolivei@synopsys.com>
Cc: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
Cc: Jan Dabros <jsd@semihalf.com>
Cc: Andi Shyti <andi.shyti@kernel.org>
---
drivers/i2c/busses/i2c-designware-slave.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- linux-6.9.orig/drivers/i2c/busses/i2c-designware-slave.c
+++ linux-6.9/drivers/i2c/busses/i2c-designware-slave.c
@@ -220,7 +220,7 @@ static const struct i2c_algorithm i2c_dw
void i2c_dw_configure_slave(struct dw_i2c_dev *dev)
{
- dev->functionality = I2C_FUNC_SLAVE | DW_IC_DEFAULT_FUNCTIONALITY;
+ dev->functionality = I2C_FUNC_SLAVE;
dev->slave_cfg = DW_IC_CON_RX_FIFO_FULL_HLD_CTRL |
DW_IC_CON_RESTART_EN | DW_IC_CON_STOP_DET_IFADDRESSED;
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] i2c: designware: Fix the functionality flags of the slave-only interface
2024-05-31 9:17 [PATCH] i2c: designware: Fix the functionality flags of the slave-only interface Jean Delvare
@ 2024-05-31 9:23 ` Andy Shevchenko
2024-05-31 9:31 ` Jean Delvare
2024-06-04 1:10 ` Andi Shyti
1 sibling, 1 reply; 5+ messages in thread
From: Andy Shevchenko @ 2024-05-31 9:23 UTC (permalink / raw)
To: Jean Delvare
Cc: Linux I2C, Luis Oliveira, Jarkko Nikula, Mika Westerberg,
Jan Dabros, Andi Shyti
On Fri, May 31, 2024 at 11:17:48AM +0200, Jean Delvare wrote:
> When an I2C adapter acts only as a slave, it should not claim to
> support I2C master capabilities.
>
> Fixes: 5b6d721b266a ("i2c: designware: enable SLAVE in platform module")
> Signed-off-by: Jean Delvare <jdelvare@suse.de>
The below can be separated by
---
to avoid noise in the commit messages. The effect, namely Cc'ing to people,
will stay the same.
> Cc: Luis Oliveira <lolivei@synopsys.com>
> Cc: Jarkko Nikula <jarkko.nikula@linux.intel.com>
> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
> Cc: Jan Dabros <jsd@semihalf.com>
> Cc: Andi Shyti <andi.shyti@kernel.org>
> ---
Other than that, LGTM,
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> drivers/i2c/busses/i2c-designware-slave.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> --- linux-6.9.orig/drivers/i2c/busses/i2c-designware-slave.c
> +++ linux-6.9/drivers/i2c/busses/i2c-designware-slave.c
> @@ -220,7 +220,7 @@ static const struct i2c_algorithm i2c_dw
>
> void i2c_dw_configure_slave(struct dw_i2c_dev *dev)
> {
> - dev->functionality = I2C_FUNC_SLAVE | DW_IC_DEFAULT_FUNCTIONALITY;
> + dev->functionality = I2C_FUNC_SLAVE;
>
> dev->slave_cfg = DW_IC_CON_RX_FIFO_FULL_HLD_CTRL |
> DW_IC_CON_RESTART_EN | DW_IC_CON_STOP_DET_IFADDRESSED;
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] i2c: designware: Fix the functionality flags of the slave-only interface
2024-05-31 9:23 ` Andy Shevchenko
@ 2024-05-31 9:31 ` Jean Delvare
2024-05-31 13:54 ` Jarkko Nikula
0 siblings, 1 reply; 5+ messages in thread
From: Jean Delvare @ 2024-05-31 9:31 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Linux I2C, Jarkko Nikula, Mika Westerberg, Jan Dabros, Andi Shyti
On Fri, 31 May 2024 12:23:26 +0300, Andy Shevchenko wrote:
> On Fri, May 31, 2024 at 11:17:48AM +0200, Jean Delvare wrote:
> > When an I2C adapter acts only as a slave, it should not claim to
> > support I2C master capabilities.
> >
> > Fixes: 5b6d721b266a ("i2c: designware: enable SLAVE in platform module")
> > Signed-off-by: Jean Delvare <jdelvare@suse.de>
>
> The below can be separated by
>
> ---
>
> to avoid noise in the commit messages. The effect, namely Cc'ing to people,
> will stay the same.
Noted, I'll do that from now on.
> > Cc: Luis Oliveira <lolivei@synopsys.com>
BTW, the address above is no longer valid so it should be omitted when replying.
> > Cc: Jarkko Nikula <jarkko.nikula@linux.intel.com>
> > Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
> > Cc: Jan Dabros <jsd@semihalf.com>
> > Cc: Andi Shyti <andi.shyti@kernel.org>
> > ---
>
> Other than that, LGTM,
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Thanks,
--
Jean Delvare
SUSE L3 Support
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] i2c: designware: Fix the functionality flags of the slave-only interface
2024-05-31 9:31 ` Jean Delvare
@ 2024-05-31 13:54 ` Jarkko Nikula
0 siblings, 0 replies; 5+ messages in thread
From: Jarkko Nikula @ 2024-05-31 13:54 UTC (permalink / raw)
To: Jean Delvare, Andy Shevchenko
Cc: Linux I2C, Mika Westerberg, Jan Dabros, Andi Shyti
On 5/31/24 12:31 PM, Jean Delvare wrote:
> On Fri, 31 May 2024 12:23:26 +0300, Andy Shevchenko wrote:
>> On Fri, May 31, 2024 at 11:17:48AM +0200, Jean Delvare wrote:
>>> When an I2C adapter acts only as a slave, it should not claim to
>>> support I2C master capabilities.
>>>
>>> Fixes: 5b6d721b266a ("i2c: designware: enable SLAVE in platform module")
>>> Signed-off-by: Jean Delvare <jdelvare@suse.de>
>>
>> The below can be separated by
>>
>> ---
>>
>> to avoid noise in the commit messages. The effect, namely Cc'ing to people,
>> will stay the same.
>
> Noted, I'll do that from now on.
>
>>> Cc: Luis Oliveira <lolivei@synopsys.com>
>
> BTW, the address above is no longer valid so it should be omitted when replying.
>
>>> Cc: Jarkko Nikula <jarkko.nikula@linux.intel.com>
>>> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>>> Cc: Mika Westerberg <mika.westerberg@linux.intel.com>
>>> Cc: Jan Dabros <jsd@semihalf.com>
>>> Cc: Andi Shyti <andi.shyti@kernel.org>
>>> ---
>>
>> Other than that, LGTM,
>> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] i2c: designware: Fix the functionality flags of the slave-only interface
2024-05-31 9:17 [PATCH] i2c: designware: Fix the functionality flags of the slave-only interface Jean Delvare
2024-05-31 9:23 ` Andy Shevchenko
@ 2024-06-04 1:10 ` Andi Shyti
1 sibling, 0 replies; 5+ messages in thread
From: Andi Shyti @ 2024-06-04 1:10 UTC (permalink / raw)
To: Linux I2C, Jean Delvare
Cc: Luis Oliveira, Jarkko Nikula, Andy Shevchenko, Mika Westerberg,
Jan Dabros
Hi
On Fri, 31 May 2024 11:17:48 +0200, Jean Delvare wrote:
> When an I2C adapter acts only as a slave, it should not claim to
> support I2C master capabilities.
>
>
Applied to i2c/i2c-host-next on
git://git.kernel.org/pub/scm/linux/kernel/git/local tree
Thank you,
Andi
Patches applied
===============
[1/1] i2c: designware: Fix the functionality flags of the slave-only interface
commit: 9224b8546453758f73210256597f60f897f8dafe
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-06-04 1:16 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 9:17 [PATCH] i2c: designware: Fix the functionality flags of the slave-only interface Jean Delvare
2024-05-31 9:23 ` Andy Shevchenko
2024-05-31 9:31 ` Jean Delvare
2024-05-31 13:54 ` Jarkko Nikula
2024-06-04 1:10 ` Andi Shyti
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox