public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Jean Delvare <jdelvare@suse.de>
Cc: Linux I2C <linux-i2c@vger.kernel.org>,
	Luis Oliveira <lolivei@synopsys.com>,
	Jarkko Nikula <jarkko.nikula@linux.intel.com>,
	Mika Westerberg <mika.westerberg@linux.intel.com>,
	Jan Dabros <jsd@semihalf.com>, Andi Shyti <andi.shyti@kernel.org>
Subject: Re: [PATCH] i2c: designware: Fix the functionality flags of the slave-only interface
Date: Fri, 31 May 2024 12:23:26 +0300	[thread overview]
Message-ID: <ZlmXDgHnWNvVIN20@smile.fi.intel.com> (raw)
In-Reply-To: <20240531111748.441a85b6@endymion.delvare>

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



  reply	other threads:[~2024-05-31  9:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2024-05-31  9:31   ` Jean Delvare
2024-05-31 13:54     ` Jarkko Nikula
2024-06-04  1:10 ` Andi Shyti

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=ZlmXDgHnWNvVIN20@smile.fi.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=andi.shyti@kernel.org \
    --cc=jarkko.nikula@linux.intel.com \
    --cc=jdelvare@suse.de \
    --cc=jsd@semihalf.com \
    --cc=linux-i2c@vger.kernel.org \
    --cc=lolivei@synopsys.com \
    --cc=mika.westerberg@linux.intel.com \
    /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