From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B305E3D3499; Tue, 10 Mar 2026 17:27:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773163657; cv=none; b=XHVVDP+lpybwUyV0GuOGisC94EhKnEXoyugYsW62SvJsIe0mQhvY/pbEvsUHkw90IJpbLsIO0rOEGb9BuZ8G349BUB1296IfpnbbXkPYv4yrMnBGl48raO4BywicyxcWOsQxWAONG9i30Bl4bmBno9Zd1lyDSPOpOjxAFgflpPc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773163657; c=relaxed/simple; bh=YJOrQ1EeSYmYr1fTeFIDSndaSyodcyB1pQCAfy0Zev0=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=V1MLoNXiiL14GAHAeSItiBFpCniob9EV9wiMsfHtGnTMIkdN7U9xZsVJ77Bta4mYYTvW5bX6g0BnfP4s+PKkU3xBbLvG1FKaZ6uYdGGhVN4s2yTtv+0PyI1C2q9xFsSfFZZdnPzljNZXrJzA6DLDvvQnYiwXPEPdkNbQ7b+WcHU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=RGUpgX8e; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="RGUpgX8e" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E93ADC19423; Tue, 10 Mar 2026 17:27:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773163657; bh=YJOrQ1EeSYmYr1fTeFIDSndaSyodcyB1pQCAfy0Zev0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RGUpgX8eN94G532WfputAf8qD9RsPHtkk52PGAiBJllCwM/7bEr0gcpILSYeU7vjb yBVypD8nPXlvpoZbSrhV9Ea9Fgv+a+lvT5nXCCO9IOUEe0yKCJ+g5YvWDrZPOsYwBk 4WfaLfZLSVQJnZRmQ2YFvA2ond2XY0Gx59pPzccRMDa02nNY1faVmlvvuh6ULoB64L PnfXCgX7ulqvntbxUl5lkQltIz07LuEbDkg51gKsepBgdr/NrTyqwZtFLQU+8JiYWX tWSmp04nrRTI+akZOLdrn2zPTMU4yAKrm3a5mIUT69O17QXzfm+8NsM1p2OhMSE4NV jLZP5w1VRAVlA== Date: Tue, 10 Mar 2026 17:27:32 +0000 From: Simon Horman To: Johan Hovold Cc: Tobias Waldekranz , Andrew Lunn , Heiner Kallweit , Russell King , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] net: mdio: mvusb: drop redundant device reference Message-ID: <20260310172732.GM461701@kernel.org> References: <20260309082641.15574-1-johan@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260309082641.15574-1-johan@kernel.org> 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 Reviewed-by: Simon Horman