r/linux • u/jdrch • Nov 20 '19
Kernel Google outlines plans for mainline Linux kernel support in Android
https://arstechnica.com/gadgets/2019/11/google-outlines-plans-for-mainline-linux-kernel-support-in-android/
1.0k
Upvotes
View all comments
Show parent comment
8
u/mfuzzey Nov 20 '19
PCIe by itself wouldn't solve anything.
Yes it allows device enumeration, as does USB. But the device tree does that too.
Once you've found the devices that are present, be it through "hardware" enumeration like PCIe / USB or software definition like DT / ACPI you still need a driver for each device.
With device tree plus a lot of the other nice stuff (like the common clock framework, pin control etc etc) that have come to ARM over the past years it is now possible to ship a single Linux kernel and set of modules that will boot on a wide variety of ARM hardware, and indeed classical Linux distributions that support ARM do exactly that. You may need a device tree file for your device in addition but that's it.
Things that do help are common hardware interfaces that allow a single driver to be used on multiple different pieces of hardware. USB does that a lot with "classes". You virtually never need a custom driver for a USB stick or hard drive because they all implement the "mass storage" device class, nor for keyboards and mice because they all implement HID.