From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Hans de Goede <hdegoede@redhat.com>,
"Rafael J . Wysocki" <rjw@rjwysocki.net>,
Linus Walleij <linus.walleij@linaro.org>,
Alexandre Courbot <gnurou@gmail.com>
Cc: linux-acpi@vger.kernel.org, linux-gpio@vger.kernel.org,
joeyli <jlee@suse.com>, Takashi Iwai <tiwai@suse.de>
Subject: Re: [PATCH v4] gpio: Add driver for ACPI INT0002 Virtual GPIO device
Date: Wed, 24 May 2017 14:10:07 +0300 [thread overview]
Message-ID: <1495624207.6967.90.camel@linux.intel.com> (raw)
In-Reply-To: <d271bc6b-995e-e850-c090-0975d4796907@redhat.com>
On Wed, 2017-05-24 at 12:40 +0200, Hans de Goede wrote:
> On 24-05-17 12:27, Andy Shevchenko wrote:
> > On Wed, 2017-05-24 at 09:58 +0200, Hans de Goede wrote:
>>> +config GPIO_INT0002
> > > + tristate "Intel ACPI INT0002 Virtual GPIO"
> > > + depends on ACPI
> >
> > && X86 (see below why)
>
> This is part of:
>
> menu "Port-mapped I/O GPIO drivers"
> depends on X86 # Unconditional I/O space access
>
> So that is already required, which is why I dropped it
> (previous versions did have it).
OK!
> >
> > > +#include <asm/cpu_device_id.h>
> > > +#include <asm/intel-family.h>
> >
> > Please, move this after <linux/*> headers with empty line in
> > between.
>
> I'm using alphabetic sort for #includes, I don't see
> how these are special its not like they are "local" headers,
> e.g. drivers/gpio/gpio-aspeed.c does the same. What if this
> driver were to also need acpi/ headers should those go
> in their block too, etc. ?
Most of the drivers I saw are using such scheme
1. Most generic
2. Less generic
3. Local
<asm/*> category fits 2.
> > > +static int int0002_probe(struct platform_device *pdev)
> > > +{
> > > + struct device *dev = &pdev->dev;
> > > + const struct x86_cpu_id *cpu_id;
> > > + struct gpio_chip *chip;
> > > + int i, irq, ret;
> > > +
> > > + /* Menlow has a different INT0002 device? <sigh> */
> >
> > Perhaps we can remove that all code. I will look at it when I have
> > spare
> > time.
>
> Even if we remove the code for the INT0002 Menlow device we
> still don't want to bind to it,
> or are you talking about
> dropping Menlow support in such a way that newer kernels
> will not boot on Menlow at all anymore ?
Latter.
--
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy
prev parent reply other threads:[~2017-05-24 11:10 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-24 7:58 [PATCH v4 0/1] gpio: Add driver for ACPI INT0002 Virtual GPIO device Hans de Goede
2017-05-24 7:58 ` [PATCH v4] " Hans de Goede
2017-05-24 10:27 ` Andy Shevchenko
2017-05-24 10:40 ` Hans de Goede
2017-05-24 11:10 ` Andy Shevchenko [this message]
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=1495624207.6967.90.camel@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=gnurou@gmail.com \
--cc=hdegoede@redhat.com \
--cc=jlee@suse.com \
--cc=linus.walleij@linaro.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-gpio@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=tiwai@suse.de \
/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;
as well as URLs for NNTP newsgroup(s).