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
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to