Linux GPIO subsystem development
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Bartosz Golaszewski <brgl@kernel.org>
Cc: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>,
	Lee Jones <lee@kernel.org>, Linus Walleij <linusw@kernel.org>,
	linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org
Subject: Re: [PATCH 2/3] gpio: timberdale: use device properties
Date: Fri, 13 Mar 2026 16:08:35 +0200	[thread overview]
Message-ID: <abQaY7V74Zc80GaE@ashevche-desk.local> (raw)
In-Reply-To: <CAMRc=McJy2Fo4xarGmBtNpDi+7J8mvu_Q3G9wqddUaPhq8rbaQ@mail.gmail.com>

On Fri, Mar 13, 2026 at 02:27:36PM +0100, Bartosz Golaszewski wrote:
> On Fri, Mar 13, 2026 at 11:21 AM Andy Shevchenko
> <andriy.shevchenko@linux.intel.com> wrote:
> > On Fri, Mar 13, 2026 at 11:04:49AM +0100, Bartosz Golaszewski wrote:

...

> > > +     err = device_property_read_u32(dev, "intel,gpio-base", &gc->base);
> >
> > In drivers/mfd/intel_quark_i2c_gpio.c we use 'gpio-base' and I prefer to have
> > it common since it's Linux only property for now. Alternatively patch that to
> > have a snps prefix.
> 
> So "gpio-base" and "snps,irq-base" for the properties?

Either 'gpio-base' in all drivers that use it only as Linux property
(currently 2 + potentially this one), OR fixing _there_ (in two drivers)
by having 'snps,gpio-base' _there_, not in this driver.

And if you choose the former (dropping the vendor prefix here), the 'irq-base'
with it (vendor prefix) will look inconsistent.

> > > +     if (err)
> > > +             return err;

-- 
With Best Regards,
Andy Shevchenko



  reply	other threads:[~2026-03-13 14:08 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-13 10:04 [PATCH 0/3] gpio: timberdale: remove platform data header Bartosz Golaszewski
2026-03-13 10:04 ` [PATCH 1/3] mfd: timberdale: set up a software node for the GPIO cell Bartosz Golaszewski
2026-03-13 10:04 ` [PATCH 2/3] gpio: timberdale: use device properties Bartosz Golaszewski
2026-03-13 10:21   ` Andy Shevchenko
2026-03-13 10:24     ` Andy Shevchenko
2026-03-13 13:27     ` Bartosz Golaszewski
2026-03-13 14:08       ` Andy Shevchenko [this message]
2026-03-16 13:58   ` Linus Walleij
2026-03-13 10:04 ` [PATCH 3/3] gpio: timberdale: remove platform data header Bartosz Golaszewski
2026-03-13 10:24   ` Andy Shevchenko

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=abQaY7V74Zc80GaE@ashevche-desk.local \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=brgl@kernel.org \
    --cc=lee@kernel.org \
    --cc=linusw@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox