linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mathias Nyman <mathias.nyman@linux.intel.com>
To: Jean Delvare <jdelvare@suse.de>
Cc: linux-gpio@vger.kernel.org, Linus Walleij <linus.walleij@linaro.org>
Subject: Re: Modular gpio-lynxpoint
Date: Mon, 21 Oct 2013 10:50:50 +0300	[thread overview]
Message-ID: <5264DCDA.60508@linux.intel.com> (raw)
In-Reply-To: <20131019205702.4bfba569@endymion.delvare>

On 10/19/2013 09:57 PM, Jean Delvare wrote:
> Hi Mathias,
>
> What is the rationale for CONFIG_GPIO_LYNXPOINT being a bool? Device
> drivers that can't be built as modules are a pain for distribution
> kernels. And I tried building gpio-lynxpoint as a module and it worked
> (although I can't run-time test it.)
>

For Lynxpoint I think it only was about competition for port respources. 
IO port ranges used for gpios were specified in ACPI tables both in the 
gpio device, and as a part of a motherboard device. Pnpacpi code 
reserved all the IO port ranges in the motherboard device before the 
gpio driver.

For Baytrail the gpio driver can handle hw reduced ACPI events,
(basically ACPI telling operating system it wants an ACPI event run
when a certain gpio interrupt is triggered, and it wants the OS gpio 
driver to do it. If this feature is used then I think it's better to 
build in the driver.

I'm not sure if there is a resource conflict anymore in the Lynxpoint 
case. Should be checked, and fix it properly on the pnpacpi side. 
Otherwise I guess Lynxpoint could be built as a module

-Mathias

  reply	other threads:[~2013-10-21  7:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-19 18:57 Modular gpio-lynxpoint Jean Delvare
2013-10-21  7:50 ` Mathias Nyman [this message]
2013-10-28 22:06 ` Linus Walleij

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=5264DCDA.60508@linux.intel.com \
    --to=mathias.nyman@linux.intel.com \
    --cc=jdelvare@suse.de \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@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;
as well as URLs for NNTP newsgroup(s).