Re: [PATCH v4] driver core: enforce device_lock for driver_match_device()

From: Danilo Krummrich

Date: Tue Jan 13 2026 - 10:58:14 EST


On Tue Jan 13, 2026 at 4:55 PM CET, Gui-Dong Han wrote:
> The three call sites for driver_match_device() have been stable for
> over a decade. With only two sites requiring the lock, and no new
> callers anticipated, adding a helper function seems to have limited
> value.

On the other hand, driver_match_device() and driver_match_device_locked() makes
things very clear. :)