diff mbox series

[v1,1/1] pinctrl: tangier: Enable 910 Ohm bias

Message ID 20231030141404.3242102-1-andriy.shevchenko@linux.intel.com
State Accepted
Commit 2b9282afa8e9c34c42de42c2064a056a735fd7f0
Headers show
Series [v1,1/1] pinctrl: tangier: Enable 910 Ohm bias | expand

Commit Message

Andy Shevchenko Oct. 30, 2023, 2:14 p.m. UTC
Family 7 (I2C) supports special bias value, i.e. 910 Ohm.

Enable it for configuring pin.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/pinctrl/intel/pinctrl-tangier.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Raag Jadav Oct. 30, 2023, 9:35 p.m. UTC | #1
On Mon, Oct 30, 2023 at 04:14:04PM +0200, Andy Shevchenko wrote:
> Family 7 (I2C) supports special bias value, i.e. 910 Ohm.
> 
> Enable it for configuring pin.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/pinctrl/intel/pinctrl-tangier.c | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/pinctrl/intel/pinctrl-tangier.c b/drivers/pinctrl/intel/pinctrl-tangier.c
> index 40dd60c9e526..007bca1cf224 100644
> --- a/drivers/pinctrl/intel/pinctrl-tangier.c
> +++ b/drivers/pinctrl/intel/pinctrl-tangier.c
> @@ -382,6 +382,9 @@ static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin,
>  		case 2000:
>  			term = BUFCFG_PUPD_VAL_2K;
>  			break;
> +		case 910:
> +			term = BUFCFG_PUPD_VAL_910;
> +			break;
>  		default:
>  			return -EINVAL;
>  		}
> @@ -405,6 +408,9 @@ static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin,
>  		case 2000:
>  			term = BUFCFG_PUPD_VAL_2K;
>  			break;
> +		case 910:
> +			term = BUFCFG_PUPD_VAL_910;
> +			break;
>  		default:
>  			return -EINVAL;
>  		}

Ah, I failed to notice this was already preset in the getter.

Looks good,
Raag
Raag Jadav Oct. 31, 2023, 1:59 p.m. UTC | #2
On Mon, Oct 30, 2023 at 11:35:42PM +0200, Raag Jadav wrote:
> On Mon, Oct 30, 2023 at 04:14:04PM +0200, Andy Shevchenko wrote:
> > Family 7 (I2C) supports special bias value, i.e. 910 Ohm.
> > 
> > Enable it for configuring pin.
> > 
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > ---
> >  drivers/pinctrl/intel/pinctrl-tangier.c | 6 ++++++
> >  1 file changed, 6 insertions(+)
> > 
> > diff --git a/drivers/pinctrl/intel/pinctrl-tangier.c b/drivers/pinctrl/intel/pinctrl-tangier.c
> > index 40dd60c9e526..007bca1cf224 100644
> > --- a/drivers/pinctrl/intel/pinctrl-tangier.c
> > +++ b/drivers/pinctrl/intel/pinctrl-tangier.c
> > @@ -382,6 +382,9 @@ static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin,
> >  		case 2000:
> >  			term = BUFCFG_PUPD_VAL_2K;
> >  			break;
> > +		case 910:
> > +			term = BUFCFG_PUPD_VAL_910;
> > +			break;
> >  		default:
> >  			return -EINVAL;
> >  		}
> > @@ -405,6 +408,9 @@ static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin,
> >  		case 2000:
> >  			term = BUFCFG_PUPD_VAL_2K;
> >  			break;
> > +		case 910:
> > +			term = BUFCFG_PUPD_VAL_910;
> > +			break;
> >  		default:
> >  			return -EINVAL;
> >  		}
> 
> Ah, I failed to notice this was already present in the getter.
> 
> Looks good,

Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Mika Westerberg Nov. 1, 2023, 6:33 a.m. UTC | #3
On Mon, Oct 30, 2023 at 04:14:04PM +0200, Andy Shevchenko wrote:
> Family 7 (I2C) supports special bias value, i.e. 910 Ohm.
> 
> Enable it for configuring pin.
> 
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Linus Walleij Nov. 2, 2023, 7:31 a.m. UTC | #4
On Mon, Oct 30, 2023 at 3:14 PM Andy Shevchenko
<andriy.shevchenko@linux.intel.com> wrote:

> Family 7 (I2C) supports special bias value, i.e. 910 Ohm.
>
> Enable it for configuring pin.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Neat,
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij
Andy Shevchenko Nov. 13, 2023, 11:51 a.m. UTC | #5
On Thu, Nov 02, 2023 at 08:31:22AM +0100, Linus Walleij wrote:
> On Mon, Oct 30, 2023 at 3:14 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> 
> > Family 7 (I2C) supports special bias value, i.e. 910 Ohm.
> >
> > Enable it for configuring pin.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> 
> Neat,
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>

Pushed to my review and testing queue, thanks!
diff mbox series

Patch

diff --git a/drivers/pinctrl/intel/pinctrl-tangier.c b/drivers/pinctrl/intel/pinctrl-tangier.c
index 40dd60c9e526..007bca1cf224 100644
--- a/drivers/pinctrl/intel/pinctrl-tangier.c
+++ b/drivers/pinctrl/intel/pinctrl-tangier.c
@@ -382,6 +382,9 @@  static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin,
 		case 2000:
 			term = BUFCFG_PUPD_VAL_2K;
 			break;
+		case 910:
+			term = BUFCFG_PUPD_VAL_910;
+			break;
 		default:
 			return -EINVAL;
 		}
@@ -405,6 +408,9 @@  static int tng_config_set_pin(struct tng_pinctrl *tp, unsigned int pin,
 		case 2000:
 			term = BUFCFG_PUPD_VAL_2K;
 			break;
+		case 910:
+			term = BUFCFG_PUPD_VAL_910;
+			break;
 		default:
 			return -EINVAL;
 		}