Re: [PATCH v2] net: mdio: mvusb: drop redundant device reference
From: Johan Hovold
Date: Mon Mar 09 2026 - 05:28:59 EST
On Mon, Mar 09, 2026 at 09:26:41AM +0100, Johan Hovold wrote:
> Driver core holds a reference to the USB interface and its parent USB
> device while the interface is bound to a driver and there is no need to
> take additional references unless the structures are needed after
> disconnect.
>
> Drop the redundant device reference to reduce cargo culting, make it
> easier to spot drivers where an extra reference is needed, and reduce
> the risk of memory leaks when drivers fail to release it.
>
> Signed-off-by: Johan Hovold <johan@xxxxxxxxxx>
> ---
Forgot the changelog.
Changes in v2:
- drop explicit error path for of_mdio_bus_register()
Johan