Bug 199529
Summary: | pinctrl-amd fails with error -22 on HP Envy x360 | ||
---|---|---|---|
Product: | Other | Reporter: | Lukas Kahnert (openproggerfreak) |
Component: | Other | Assignee: | other_other |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | samuel-kbugs, trougnouf |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 4.16 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Bug Depends on: | |||
Bug Blocks: | 198715 | ||
Attachments: | dmesg for 4.16.4 |
This bug is a symptom of another bug already reported. *** This bug has been marked as a duplicate of bug 198715 *** |
Created attachment 275611 [details] dmesg for 4.16.4 The HP Envy x360(Ryzen 2500u) has an AMD GPIO device which is detected through ACPI. The pinctrl-amd driver probe fails with: amd_gpio AMDI0030:00: Failed to get gpio IRQ: -22 I searched and found out that the driver calls platform_get_irq -> which calls acpi_irq_get if the detected device is also an ACPI device. But this function is only available when CONFIG_ACPI_GENERIC_GSI is set(only set for ARM64). It looks like it's not implemented on x86/amd64. FWIW if the ACPI code in platform_get_irq will be commented out(with the macro) the driver probes successful and devices like touchscreen will be correctly detected. I'm not sure how a clean fix should look like.