Skip to content

z_device_ready() lies #28873

@pabigot

Description

@pabigot

#28369 was merged in the late days of 2.4 development to fix a problem where device drivers with incorrect/conflicting dependencies used device_get_binding() to identify a driver they depend on before that driver was initialized. Consequently z_device_ready() will succeed for devices that have not yet been initialized.

This really needs to get fixed as there are limited checks that a successfully obtained device pointer remains valid when it's actually used.

Metadata

Metadata

Assignees

Labels

bugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions