Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postpone driver initialization #24318

Closed
chris-schra opened this issue Apr 13, 2020 · 3 comments
Closed

Postpone driver initialization #24318

chris-schra opened this issue Apr 13, 2020 · 3 comments
Assignees
Labels
area: Power Management RFC Request For Comments: want input from the community

Comments

@chris-schra
Copy link
Contributor

Introduction

Currently drivers are always started during the kernel boot process. I suggest to add a mechanism to disable autostart of specific drivers.

Problem description

In our use case some drivers are only optional. Think of a fully packed board with tons of sensors and you want a single firmware. In worst case a lot of drivers are started although the specific device might dynamically load config data from the cloud which configures the device to only use a single sensor.

Proposed change

Allow to set drivers to „manual“ startup mode to let application logic decide if and when to start them

Proposed change (Detailed)

I know this will possibly have an big impact to the kernel. So as a naive idea I personally thought of using a dedicated init priority (eg 255) to let the kernel know to not call the init fn automatically. That way it‘s not required to change the device drivers but rather have a single change in device.c

@chris-schra chris-schra added the RFC Request For Comments: want input from the community label Apr 13, 2020
@carlescufi
Copy link
Member

@pabigot
Copy link
Collaborator

pabigot commented Apr 21, 2020

Relates to #19448

@pabigot
Copy link
Collaborator

pabigot commented Jul 7, 2020

Closing this as a duplicate of #19448 which proposes support for the devicetree standard way of identifying devices as not started at boot. If there are subtleties of the requirements here please ensure 19448 has enough information to identify them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Power Management RFC Request For Comments: want input from the community
Projects
None yet
Development

No branches or pull requests

4 participants