linux-surface / linux-surface

Linux Kernel for Surface Devices
4.53k stars 202 forks source link

pkg/arch: Build-in pinctrl and serial drivers #1426

Closed qzed closed 3 weeks ago

qzed commented 3 weeks ago

We have drivers that rely on pinctrl and serial devices being present, including soc-button-array and SAM. Not having them in the kernel itself or in the initramfs causes race-conditions and with that can prevent those drivers from working properly. So build them into the kernel. This PR should fix #1271, #1319, #1400, #1420, and #1392.

qzed commented 3 weeks ago

Not sure if I've caught all relevant pinctrl models (or if I selected too many)...

StollD commented 3 weeks ago

I don't think you forgot any, but I dont know which ones are relevant on the Surface Go family.

If we want to make sure, we could just make all of them built-in: https://gitlab.archlinux.org/archlinux/packaging/packages/linux/-/blob/main/config?ref_type=heads#L4910-4930

qzed commented 3 weeks ago

I started off with that but then thought we should probably try to only include the relevant ones. I guess we can always add more if we forgot any.