From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
Bartosz Golaszewski <brgl@bgdev.pl>, Lee Jones <lee@kernel.org>,
Daniel Thompson <daniel.thompson@linaro.org>,
Jingoo Han <jingoohan1@gmail.com>, Helge Deller <deller@gmx.de>
Subject: Re: [PATCH v1 1/1] backlight: hx8357: Convert to agnostic GPIO API
Date: Mon, 20 Mar 2023 13:54:26 +0200 [thread overview]
Message-ID: <ZBhJctqSkdtoUmBi@smile.fi.intel.com> (raw)
In-Reply-To: <CACRpkdYXTk2pzXEM9MTjt=oT-CbhENABSLeb9dN7ZvEy8oqiag@mail.gmail.com>
On Fri, Mar 17, 2023 at 09:53:40PM +0100, Linus Walleij wrote:
> On Fri, Mar 17, 2023 at 7:51 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
>
> > The of_gpio.h is going to be removed. In preparation of that convert
> > the driver to the agnostic API.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> Thanks for fixing this Andy!
>
> > -#if !IS_ENABLED(CONFIG_LCD_HX8357)
> > +#if IS_ENABLED(CONFIG_LCD_HX8357)
> > /*
> > * Himax LCD controllers used incorrectly named
> > * "gpios-reset" property and also specified wrong
> > @@ -452,7 +452,7 @@ static struct gpio_desc *of_find_gpio_rename(struct device_node *np,
> > */
> > const char *compatible;
> > } gpios[] = {
> > -#if !IS_ENABLED(CONFIG_LCD_HX8357)
> > +#if IS_ENABLED(CONFIG_LCD_HX8357)
> > /* Himax LCD controllers used "gpios-reset" */
> > { "reset", "gpios-reset", "himax,hx8357" },
> > { "reset", "gpios-reset", "himax,hx8369" },
>
> Eh what happened here .. it's even intuitively wrong.
I believe it had to be something like
#if 0 && IS_ENABLED()
to show that this change is for the future.
Currently it does something unneeded for the kernels with that option off.
> I would add
> Fixes: fbbbcd177a27 ("gpiolib: of: add quirk for locating reset lines
> with legacy bindings")
I'm not sure. But it's fine, I can add it. Just want to double confirm
you really want this Fixes tag.
> It wasn't used until now it seems so not a regression and no
> need for a separate patch.
Exactly why I'm not sure about the tag :-)
> Other than that it looks correct.
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Thank you!
--
With Best Regards,
Andy Shevchenko
WARNING: multiple messages have this Message-ID (diff)
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-fbdev@vger.kernel.org, Lee Jones <lee@kernel.org>,
Bartosz Golaszewski <bartosz.golaszewski@linaro.org>,
Jingoo Han <jingoohan1@gmail.com>,
Bartosz Golaszewski <brgl@bgdev.pl>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-gpio@vger.kernel.org,
Daniel Thompson <daniel.thompson@linaro.org>,
Helge Deller <deller@gmx.de>
Subject: Re: [PATCH v1 1/1] backlight: hx8357: Convert to agnostic GPIO API
Date: Mon, 20 Mar 2023 13:54:26 +0200 [thread overview]
Message-ID: <ZBhJctqSkdtoUmBi@smile.fi.intel.com> (raw)
In-Reply-To: <CACRpkdYXTk2pzXEM9MTjt=oT-CbhENABSLeb9dN7ZvEy8oqiag@mail.gmail.com>
On Fri, Mar 17, 2023 at 09:53:40PM +0100, Linus Walleij wrote:
> On Fri, Mar 17, 2023 at 7:51 PM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
>
> > The of_gpio.h is going to be removed. In preparation of that convert
> > the driver to the agnostic API.
> >
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
>
> Thanks for fixing this Andy!
>
> > -#if !IS_ENABLED(CONFIG_LCD_HX8357)
> > +#if IS_ENABLED(CONFIG_LCD_HX8357)
> > /*
> > * Himax LCD controllers used incorrectly named
> > * "gpios-reset" property and also specified wrong
> > @@ -452,7 +452,7 @@ static struct gpio_desc *of_find_gpio_rename(struct device_node *np,
> > */
> > const char *compatible;
> > } gpios[] = {
> > -#if !IS_ENABLED(CONFIG_LCD_HX8357)
> > +#if IS_ENABLED(CONFIG_LCD_HX8357)
> > /* Himax LCD controllers used "gpios-reset" */
> > { "reset", "gpios-reset", "himax,hx8357" },
> > { "reset", "gpios-reset", "himax,hx8369" },
>
> Eh what happened here .. it's even intuitively wrong.
I believe it had to be something like
#if 0 && IS_ENABLED()
to show that this change is for the future.
Currently it does something unneeded for the kernels with that option off.
> I would add
> Fixes: fbbbcd177a27 ("gpiolib: of: add quirk for locating reset lines
> with legacy bindings")
I'm not sure. But it's fine, I can add it. Just want to double confirm
you really want this Fixes tag.
> It wasn't used until now it seems so not a regression and no
> need for a separate patch.
Exactly why I'm not sure about the tag :-)
> Other than that it looks correct.
> Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Thank you!
--
With Best Regards,
Andy Shevchenko
next prev parent reply other threads:[~2023-03-20 11:54 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-17 18:52 [PATCH v1 1/1] backlight: hx8357: Convert to agnostic GPIO API Andy Shevchenko
2023-03-17 18:52 ` Andy Shevchenko
2023-03-17 20:53 ` Linus Walleij
2023-03-17 20:53 ` Linus Walleij
2023-03-20 11:54 ` Andy Shevchenko [this message]
2023-03-20 11:54 ` Andy Shevchenko
2023-06-05 16:07 ` Andy Shevchenko
2023-06-05 16:07 ` Andy Shevchenko
2023-06-06 8:17 ` Daniel Thompson
2023-06-06 8:17 ` Daniel Thompson
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=ZBhJctqSkdtoUmBi@smile.fi.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=bartosz.golaszewski@linaro.org \
--cc=brgl@bgdev.pl \
--cc=daniel.thompson@linaro.org \
--cc=deller@gmx.de \
--cc=dmitry.torokhov@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jingoohan1@gmail.com \
--cc=lee@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.