[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <81b162e821747d807816673f89a171fbd0a0bba5.camel@sapience.com>
Date: Fri, 28 Mar 2025 06:00:17 -0400
From: Genes Lists <lists@...ience.com>
To: Bartosz Golaszewski <brgl@...ev.pl>
Cc: Linus Walleij <linus.walleij@...aro.org>, linux-gpio@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: rc4 and later log message: gpiochip_add_data_with_key:
get_direction failed -> missing pinctrl patch
On Sun, 2025-03-16 at 08:48 -0400, Genes Lists wrote:
> On Tue, 2025-03-11 at 10:40 -0700, Bartosz Golaszewski wrote:
> > On Tue, 11 Mar 2025 15:03:59 +0100, Genes Lists
> > <lists@...ience.com> said:
> > > On Sat, 2025-03-08 at 15:45 -0500, Genes Lists wrote:
> > > > ......
>
> >
> > There are two problems here. The issue you're seeing is fixed in
> > next but
> > not in mainline due to my omission. I will send a patch for that.
> >
> > On the other hand, the pinctrl driver in question should be fixed
> > too.
> > Can you try the following change:
> >
> > diff --git a/drivers/pinctrl/intel/pinctrl-intel.c
> > b/drivers/pinctrl/intel/pinctrl-intel.c
> > index d889c7c878e2..0c6925b53d9f 100644
> > --- a/drivers/pinctrl/intel/pinctrl-intel.c
> > +++ b/drivers/pinctrl/intel/pinctrl-intel.c
> > @@ -1068,7 +1068,11 @@ static int intel_gpio_get_direction(struct
> > gpio_chip *chip, unsigned int offset)
> >
> > pin = intel_gpio_to_pin(pctrl, offset, NULL, NULL);
> > if (pin < 0)
> > - return -EINVAL;
> > + /*
> > + * For pins configured to functions other than
> > GPIO, default
> > + * to the safe INPUT value.
> > + */
> > + return GPIO_LINE_DIRECTION_IN;
> >
> > reg = intel_get_padcfg(pctrl, pin, PADCFG0);
> > if (!reg)
> >
> > ?
> >
> > FYI: This was uncovered by commit 9d846b1aebbe ("gpiolib: check the
> > return value of gpio_chip::get_direction()").
> >
> > Bart
>
> Hi Bart - I don't see this pincntrl patch in mainline yet - what's
> your thinking on this?
>
> thanks!
>
>
Following up - same question - this patch is not in mainline as of
today.
Can you share your thoughts/plans on this one?
thanks.
--
Gene
Content of type "text/html" skipped
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists