mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-29 15:44:02 +00:00
54cf1334e1
The ported i2c_hid driver contains driver code for the "Intel Tigerlake/Alderlake PCH pinctrl/GPIO" device. Unfortunately, acpica driver also accesses the same device on Lid open/close via ACPI AML code of the DSDT table to read out the state of a GPIO pin connected to the notebook lid. This would fail as I/O memory is handed out only once and cannot be shared. The workaround disables the region check for the specified GPIO I/O memory regions and provides both drivers shared access to the regions. This is a preliminary workaround. A general solution should separate the GPIO driver into a component (e.g., platform driver) that regulates accesses by i2c_hid and acpica. Issue #5195