diff mbox series

i2c: add Kconfig help text for slave mode

Message ID 20200628185522.5902-1-wsa+renesas@sang-engineering.com
State Accepted
Headers show
Series i2c: add Kconfig help text for slave mode | expand

Commit Message

Wolfram Sang June 28, 2020, 6:55 p.m. UTC
I can't recall why there was none, but we surely want to have it.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
 drivers/i2c/Kconfig | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Niklas Söderlund June 28, 2020, 10:13 p.m. UTC | #1
Hi Wolfram,

Thanks for your patch.

On 2020-06-28 20:55:22 +0200, Wolfram Sang wrote:
> I can't recall why there was none, but we surely want to have it.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>

> ---
>  drivers/i2c/Kconfig | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
> index dbcbb8a6024e..e2d6063bdb4d 100644
> --- a/drivers/i2c/Kconfig
> +++ b/drivers/i2c/Kconfig
> @@ -114,6 +114,11 @@ config I2C_STUB
>  config I2C_SLAVE
>  	bool "I2C slave support"
>  
> +	help
> +	  This enables Linux to act as an I2C slave device. Note that your I2C
> +	  bus master driver also needs to support this functionality. Please
> +	  read Documentation/i2c/slave-interface.rst for further details.
> +
>  if I2C_SLAVE
>  
>  config I2C_SLAVE_EEPROM
> -- 
> 2.20.1
>
Geert Uytterhoeven June 29, 2020, 7:51 a.m. UTC | #2
Hi Wolfram,

On Sun, Jun 28, 2020 at 8:55 PM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> I can't recall why there was none, but we surely want to have it.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Thanks for your patch!

> --- a/drivers/i2c/Kconfig
> +++ b/drivers/i2c/Kconfig
> @@ -114,6 +114,11 @@ config I2C_STUB
>  config I2C_SLAVE
>         bool "I2C slave support"
>

Why the blank line here ^^^?

> +       help
> +         This enables Linux to act as an I2C slave device. Note that your I2C
> +         bus master driver also needs to support this functionality. Please
> +         read Documentation/i2c/slave-interface.rst for further details.
> +
>  if I2C_SLAVE
>
>  config I2C_SLAVE_EEPROM

The rest looks fine to me.
As you don't like conditional R-b's, I'll add mine on v2 ;-)

Gr{oetje,eeting}s,

                        Geert
Wolfram Sang June 29, 2020, 11:21 a.m. UTC | #3
> >  config I2C_SLAVE
> >         bool "I2C slave support"
> >
> 
> Why the blank line here ^^^?

Sure, I can fix before applying.

> 
> > +       help
> > +         This enables Linux to act as an I2C slave device. Note that your I2C
> > +         bus master driver also needs to support this functionality. Please
> > +         read Documentation/i2c/slave-interface.rst for further details.
> > +
> >  if I2C_SLAVE
> >
> >  config I2C_SLAVE_EEPROM
> 
> The rest looks fine to me.

Thanks, Geert!

> As you don't like conditional R-b's, I'll add mine on v2 ;-)

I don't? I can't recall that :) Maybe there was a corner case once...
Geert Uytterhoeven June 29, 2020, 11:28 a.m. UTC | #4
Hi Wolfram,

On Mon, Jun 29, 2020 at 1:21 PM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> > >  config I2C_SLAVE
> > >         bool "I2C slave support"
> > >
> >
> > Why the blank line here ^^^?
>
> Sure, I can fix before applying.
>
> >
> > > +       help
> > > +         This enables Linux to act as an I2C slave device. Note that your I2C
> > > +         bus master driver also needs to support this functionality. Please
> > > +         read Documentation/i2c/slave-interface.rst for further details.
> > > +
> > >  if I2C_SLAVE
> > >
> > >  config I2C_SLAVE_EEPROM
> >
> > The rest looks fine to me.
>
> Thanks, Geert!
>
> > As you don't like conditional R-b's, I'll add mine on v2 ;-)
>
> I don't? I can't recall that :) Maybe there was a corner case once...

Lore does not forgive, and does not forget ;-)
https://lore.kernel.org/r/20190802133656.GA23542@kunai

Hence with the above fixed:
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>

Gr{oetje,eeting}s,

                        Geert
Wolfram Sang June 29, 2020, 11:37 a.m. UTC | #5
> Lore does not forgive, and does not forget ;-)
> https://lore.kernel.org/r/20190802133656.GA23542@kunai

Ah, right. That reasoning still makes sense to me.
Wolfram Sang July 4, 2020, 6:17 a.m. UTC | #6
On Sun, Jun 28, 2020 at 08:55:22PM +0200, Wolfram Sang wrote:
> I can't recall why there was none, but we surely want to have it.
> 
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>

Applied to for-current, thanks!
diff mbox series

Patch

diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig
index dbcbb8a6024e..e2d6063bdb4d 100644
--- a/drivers/i2c/Kconfig
+++ b/drivers/i2c/Kconfig
@@ -114,6 +114,11 @@  config I2C_STUB
 config I2C_SLAVE
 	bool "I2C slave support"
 
+	help
+	  This enables Linux to act as an I2C slave device. Note that your I2C
+	  bus master driver also needs to support this functionality. Please
+	  read Documentation/i2c/slave-interface.rst for further details.
+
 if I2C_SLAVE
 
 config I2C_SLAVE_EEPROM