Modular gpio-lynxpoint
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.)
Any problem with the patch below?
From: Jean Delvare <[email protected]>
Subject: gpio-lynxpoint: Allow building as a module
Change CONFIG_GPIO_LYNXPOINT from bool to tristate so that the gpio-lynxpoint driver can be built as a module.
--- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/Kconfig +1 -1
@@ -344,7 +344,7 @@ config GPIO_GE_FPGA board computers. config GPIO_LYNXPOINT - bool "Intel Lynxpoint GPIO support" + tristate "Intel Lynxpoint GPIO support" depends on ACPI && X86 select IRQ_DOMAIN help
Signature · 2 lines
Jean Delvare Suse L3 Support
Quoted 7 lines · Jean Delvare
Hi Mathias,
What is the rationale for
CONFIG_GPIO_LYNXPOINTbeing 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
Quoted 1 line · Jean Delvare
Any problem with the patch below?
Looks OK to me but I won't apply it until after the merge window, so please send the patch after that.
Yours,
Linus Walleij