Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp902549lqd; Wed, 24 Apr 2024 23:15:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU0bKmWSn1+zLInFI5O8U5m7AT24IwVBTz9yxW8fSfku2W207+HccwYxpOoXlhfVYY8HK16SGMEqL1KcWh5vgHLkkYbHOV2rQGxjBEAjQ== X-Google-Smtp-Source: AGHT+IGc5/VU297yGr5XOW1+sDQjup3fTA6ME8qzWfFxi+5edPN0Lw6gpjJcbG13MrpoMKST6Jyi X-Received: by 2002:a0c:e483:0:b0:6a0:8bc5:ae51 with SMTP id n3-20020a0ce483000000b006a08bc5ae51mr4608358qvl.18.1714025755784; Wed, 24 Apr 2024 23:15:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714025755; cv=pass; d=google.com; s=arc-20160816; b=pG/9vc4ewsjccjqC7hPDS4nmBzjujALEcTKGM65hmXeQWh17WfpbjNKhMw1MSSaYRs 7rkuWJRBuKKwxyjd4nbnWie4S8VLUSzoxyQsTUiUqn68BvFSAXN/ALhhUV/+3UutUXpo ZWL5sR8CZVFQ8U0Q2REkycL0UH5gxqW8L2X0F3frAsihNkjpRicWWdjb3IM3fz0M3k4T woKhwRbz4GozsRz5KyvOgAwwlDRIFN2gtjHL7L90Z4Ka8f4P0f5nfkPVc8PksGSoXVyG YXHIqNTSV89b5rFrKLrgE7fB4PLav40n8DF4qV7REWkm3+YqdQHBRMJBJY8qmPx0LBaf lz0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from; bh=1B4NCTUfAOlDuTyaNE+7fwt1AaVHLnQEj8B6nEJD4ds=; fh=U68sN0Fk2IRssaexNDmzQpZD9QD5TEGHtUhK9vFI+Kg=; b=xu3onwpMX7Ul7hQcH21j8qimQL4k6IDPGTrnC4fyJtZpjWrLQfXXpeX02Z0bMAXPxW Jjr6U4vLg8Vj1mEfbmyxYUe+aSfVkQ7cg6RqlVSLeJh1MQ0xOlIbmhO+QNyKigB2DC93 oe2k3zkS/+2w9ns/VQNGHCnOMqvq7XH9wkZ8wNRzz3sq7BOveH6Y1ICbSccboFv7OLN3 4Jbd0tg2huhmdE6swFGfenFYbPFUsE+GMXD8D6i32sd9b9crMJ77Lk55XJecMZdeBPL4 SliirZxhuUzv6uE4CaU2U0vg92QIEZA95nDRh3/jzI4+IEMSSk6owDM0YyDamlH2oui/ dEbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6816-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p12-20020ad45f4c000000b0069b5152f454si16335496qvg.516.2024.04.24.23.15.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 23:15:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless+bounces-6816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-6816-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-6816-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3CCA91C20E95 for ; Thu, 25 Apr 2024 06:15:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3401A3C466; Thu, 25 Apr 2024 06:15:52 +0000 (UTC) X-Original-To: linux-wireless@vger.kernel.org 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 09E115A0E1; Thu, 25 Apr 2024 06:15:49 +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=1714025752; cv=none; b=A4otfK4afTvwq+boelwMTElmsqCdSu19W5oB1czmn60ouKeEhbC2fpo6ButRaEd6pyCPZV5VrhUiDd2D+StYbBN16LdaLOcstgHgQEx7AGEPZX0eHtukU0QVfKcSu2Ydu56C2JH79OkSgydOVzrbTUsDL23GLMdBHMGvZ9SRKWI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714025752; c=relaxed/simple; bh=1B4NCTUfAOlDuTyaNE+7fwt1AaVHLnQEj8B6nEJD4ds=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=tmuzTfbmMzFXy8RYbbf36AaZqHSAmKglc3kSFxQHrSAmvzNWwWwBMlVjTBvRT3isREZhCj3cX2Cb3eyGeG37PomqDG55mPELSxtxu+LCMVXZbVnjolA7UQIgdLSlbKKiyMEFSlI9jTYw/3C7p+EeWcEoMoTeWNtymh8k+ylAALo= 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 43P6FLbjC3247949, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 43P6FLbjC3247949 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 25 Apr 2024 14:15:21 +0800 Received: from RTEXMBS01.realtek.com.tw (172.21.6.94) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 25 Apr 2024 14:15:22 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS01.realtek.com.tw (172.21.6.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Thu, 25 Apr 2024 14:15:21 +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; Thu, 25 Apr 2024 14:15:21 +0800 From: Ping-Ke Shih To: Kalle Valo CC: Breno Leitao , "leit@meta.com" , "open list:REALTEK WIRELESS DRIVER (rtw89)" , "open list" Subject: RE: [PATCH wireless] wifi: rtw89: Un-embed dummy device Thread-Topic: [PATCH wireless] wifi: rtw89: Un-embed dummy device Thread-Index: AQHalnSYD4Tb/iMnEk2tnRSMUSm6/rF4e3YAgAACc82AAAD0RYAAAhhA Date: Thu, 25 Apr 2024 06:15:21 +0000 Message-ID: References: <20240424182351.3936556-1-leitao@debian.org> <87ttjqgf2r.fsf@kernel.org> <87mspigex0.fsf@kernel.org> In-Reply-To: <87mspigex0.fsf@kernel.org> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-kse-serverinfo: RTEXMBS01.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback 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-AntiSpam-Interceptor-Info: fallback Kalle Valo wrote: > Kalle Valo writes: >=20 > > Ping-Ke Shih writes: > > > >> Breno Leitao wrote: > >>> Embedding net_device into structures prohibits the usage of flexible > >>> arrays in the net_device structure. For more details, see the discuss= ion > >>> at [1]. > >>> > >>> 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. > >>> > >>> [1] https://lore.kernel.org/all/20240229225910.79e224cf@kernel.org/ > >>> > >>> Signed-off-by: Breno Leitao > >> > >> I think this patch should go via net-next tree, because wireless-next = tree > >> doesn't have patch of dummy devices yet. > >> > >> Acked-by: Ping-Ke Shih > > > > FWIW I sent the wireless-next pull request yesterday and once it pulled > > we will fast forward wireless-next to latest net-next. >=20 > Oh, I just realised that this is not CCed to netdev so their patchwork > won't even see the patch. Ping, I recommend that you wait for the > dependency commits to trickle down to your tree and then apply the > patch. That's the simplest approach and no need to resend anything. Okay. If we don't hurry to get this patch merged, I will apply this patch to my tree.