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 D6EE723D2; Fri, 26 Apr 2024 00:14:47 +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=1714090491; cv=none; b=jYjiUoCOIsBdA78rjzon9uA/ujCltH+trRPOv6ioL+05MEBy53IdOmtD5DYvaemLyZN+SEDMSEcO7Qs6AyH3dOqF+Q5B5X4VqeybEyR8FmNUSEIW6FcXEU15GU3ebPm2+0rtaDdzGbzY7LyHmLiWCIH3xqdX29sFRXlvIA0MSzQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714090491; c=relaxed/simple; bh=k6r6drPt42lh8qpYpj0tsTFHtAdn/42+65bkXtdamYI=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=cWKirnJyWC722i2dRDhEd+RJrHfwLD39ebKwGv84/SJcUQ9tuedEPxFWhHqV+zSnpJ+VKzcV5Wd0XFdPRcScLnKS6agFYBrldqJ8LwXtSJyjdnXBjZc1QPD8w7wRAezccMZOTytz6bTO05uwrfDq2bc0asHZYdNVucYQtrabx2g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com; spf=pass smtp.mailfrom=realtek.com; arc=none smtp.client-ip=211.75.126.72 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=realtek.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=realtek.com X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 43Q0EMX504051500, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 43Q0EMX504051500 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Apr 2024 08:14:22 +0800 Received: from RTEXMBS06.realtek.com.tw (172.21.6.99) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 26 Apr 2024 08:14:23 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS06.realtek.com.tw (172.21.6.99) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 26 Apr 2024 08:14:22 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7]) by RTEXMBS04.realtek.com.tw ([fe80::1a1:9ae3:e313:52e7%5]) with mapi id 15.01.2507.035; Fri, 26 Apr 2024 08:14:22 +0800 From: Ping-Ke Shih To: Breno Leitao , Kalle Valo CC: "leit@meta.com" , "open list:REALTEK WIRELESS DRIVER (rtw88)" , open list Subject: RE: [PATCH wireless-next] wifi: rtw88: Un-embed dummy device Thread-Topic: [PATCH wireless-next] wifi: rtw88: Un-embed dummy device Thread-Index: AQHaluqxs0A3huoTc0exV7lwy789V7F5rk7g Date: Fri, 26 Apr 2024 00:14:22 +0000 Message-ID: References: <20240425082910.2824393-1-leitao@debian.org> In-Reply-To: <20240425082910.2824393-1-leitao@debian.org> Accept-Language: en-US, zh-TW Content-Language: zh-TW Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback Breno Leitao wrote: > Embedding net_device into structures prohibits the usage of flexible > arrays in the net_device structure. For more details, see the discussion > at [1]. >=20 > Un-embed the net_device from the private struct by converting it > into a pointer. Then use the leverage the new alloc_netdev_dummy() > helper to allocate and initialize dummy devices. >=20 > [1] https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/ >=20 > Signed-off-by: Breno Leitao Acked-by: Ping-Ke Shih Like patch of rtw89, I will take it to my tree weeks later. > --- > drivers/net/wireless/realtek/rtw88/pci.c | 17 +++++++++++++---- > drivers/net/wireless/realtek/rtw88/pci.h | 2 +- > 2 files changed, 14 insertions(+), 5 deletions(-) >=20 > PS: This is compile-tested only due to lack of hardware to do better > testing. Tested with real hardware RTL8723DE and RTL8822CE.=20 Tested-by: Ping-Ke Shih