OPERATING SYSTEMSOS Linux

BoF: Early Platform Drivers in Linux Kernel – Bartosz Golaszewski, BayLibre



BoF: Early Platform Drivers in Linux Kernel – Bartosz Golaszewski, BayLibre

Certain class of devices, such as timers, certain clock drivers and irq chip drivers need to be probed early in the boot sequence. The currently preferred approach is using one of the OF_DECLARE() macros. This however does not allow the users to benefit from many helpful APIs exposed by the kernel that only work with actual device drivers (ones that deal with struct device * objects).

There were several attempts at solving this issue in the past. Some of them were merged only to be abandoned later. I recently posted series of patches that were initially aimed at solving an initialization problem on a client’s platform but grew into a full fledged early platform drivers implementation.

During this BoF session I’d like to start a discussion about how to best handle devices that need to be probed early in linux.

About Bartosz Golaszewski
Bartosz Golaszewski has over 8 years of engineering experience in the embedded systems domain ranging from low-level, real-time operating systems, through the linux kernel to user-space programs and libraries. He has worked on international projects in a broad range of fields: bleeding edge consumer electronics, high availability systems and military applications. He has contributed significant changes to several open-source projects including the linux kernel, busybox, buildroot, sigrok and many others. Bartosz maintains libgpiod – a C library for interacting with the GPIO character device for linux.

source
linux foundation

Leave a Reply

Your email address will not be published. Required fields are marked *