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.
This bug is a symptom of another bug already reported.
*** This bug has been marked as a duplicate of bug 198715 ***