From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1C16D221F0C; Mon, 16 Mar 2026 06:07:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=211.75.126.72 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773641268; cv=none; b=hMmaFxfE7MHeCboTf90Fm8n3Yjfu4PLD/tV0mmAOePNoO1RpkbUKfL+/JdzMTEmfIq8NH+fRFZx0OLpHbiXRh1wSiRf1S3vU83zT0y+ZoEIvT8hsEcSu8M9bgqjFguKAT6IUaFnDNBiQpK7Iukv7fYS3kLzGPHYtUyHtX5KpqrQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773641268; c=relaxed/simple; bh=lDduGvEqLo0dfSOUZAKT5zAs/eID8rpytofvzP63ZzI=; h=From:To:CC:Subject:In-Reply-To:References:Message-ID:Date: MIME-Version:Content-Type; b=kepej5ZLbELjmNX2muatAW0IAeGOtfX/wIIh/gUB0tHkEWt1Vc1GPbFpFw+uXCPBG9K4+nO+kTB99D4AGmS0exw3EQervjdaUL/DJ7Yp8rLRhbW5odSEaoSR9q7L9ZBEFbVfD037acSEp3AH3eL1pMP3Z5n4oEh2sz0UxptDCqQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.b=OECqDiid; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=realtek.com header.i=@realtek.com header.b="OECqDiid" X-SpamFilter-By: ArmorX SpamTrap 5.80 with qID 62G67fZ721342135, This message is accepted by code: ctloc85258 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=realtek.com; s=dkim; t=1773641261; bh=5rsNug6DJ/biLK14OLA2ISRCopF1JZ1FCyfTiXDZ100=; h=From:To:CC:Subject:In-Reply-To:References:Message-ID:Date: MIME-Version:Content-Type; b=OECqDiid8Zu1r8P/N9883vXvZdWOs6UjMP6WERfGBZmJxgZq62wYAOzggJ7bwFYl4 VCcBqByDYOkmfatlHq0JghIya+wctGCkGXtETyyxDOk0IMfg7As+9HfRtneGjGRo7M IU8XKlsuiBTZ3HfZZ3A1gXLV4YsYxkLPttJTVL/Ara0mX6D8JJcT1qjV/za33Dggun ktI+fXGbYATszjnuksEfBa5lk+kvBjS83tMZTDSF5NsRFGY9xpdNAuIKmIfCbdFBE2 /anRDp/Y165eY55pnJ4zyYejTnV8uGuwonBz4g/X9SCU/sxpiUyrrAmZAA2L3trs5l Qa9lzKkwy+LBw== Received: from mail.realtek.com (rtkexhmbs03.realtek.com.tw[10.21.1.53]) by rtits2.realtek.com.tw (8.15.2/3.21/5.94) with ESMTPS id 62G67fZ721342135 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 16 Mar 2026 14:07:41 +0800 Received: from RTKEXHMBS06.realtek.com.tw (10.21.1.56) by RTKEXHMBS03.realtek.com.tw (10.21.1.53) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10; Mon, 16 Mar 2026 14:07:41 +0800 Received: from [127.0.1.1] (172.21.40.75) by RTKEXHMBS06.realtek.com.tw (10.21.1.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1748.10 via Frontend Transport; Mon, 16 Mar 2026 14:07:36 +0800 From: Ping-Ke Shih To: Johan Hovold , CC: Ping-Ke Shih , , Johan Hovold Subject: Re: [PATCH RESEND] wifi: rtlwifi: usb: drop redundant device reference In-Reply-To: <20260309083336.16397-1-johan@kernel.org> References: <20260309083336.16397-1-johan@kernel.org> Message-ID: <7ba2d33c-6f0a-46ec-bded-0b8d237b0553@RTKEXHMBS06.realtek.com.tw> Date: Mon, 16 Mar 2026 14:07:36 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain 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 1 patch(es) applied to rtw-next branch of rtw.git, thanks. fc25b384fc0b wifi: rtlwifi: usb: drop redundant device reference --- https://github.com/pkshih/rtw.git