Re: [PATCH 1/2] driver: core: Allow drivers to opt out of driver_override

From: Danilo Krummrich

Date: Tue Sep 22 2026 - 09:03:16 EST


On Tue Sep 22, 2026 at 2:13 PM CEST, Greg Kroah-Hartman wrote:
> On Tue, Sep 22, 2026 at 01:38:28PM +0200, Thierry Reding wrote:
>> From: Thierry Reding <treding@xxxxxxxxxx>
> What's wrong with just not allowing bind/unbind at all? Why would you
> want that, but NOT the driver_override file?

pwm-tegra is a platform driver, but for drivers on hot-pluggable buses we still
want bind/unbind for testing, even if we opt-out from driver_override.

Besides that, I think that even for buses that do not have hotplug, there are
cases where it can be useful to be able test whether a driver survives
bind/unbind (i.e. follows the device driver lifecycle rules). E.g. because the
same IP will later receive an implementation on a hot-pluggable bus that shares
driver code, or just to validate driver design in general.