Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp636856lqg; Fri, 1 Mar 2024 16:57:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXEGH01nDmuuS8WzlVUVUxiKkaPsnyOxMYLZLhIbY/xPtiIzHse6ALYtx5IXs8kH2jdj3ql2w0V44LT/yaan6S5I+O78m4kvdcQJr6BaA== X-Google-Smtp-Source: AGHT+IH+n1UQDyJeuXX7ap/MJFahgRjvWlR/4Diota956uUse5VY4hJzzX9G9FTz9Aoe9hZ43sfs X-Received: by 2002:a05:6a00:c91:b0:6e5:7be5:79f8 with SMTP id a17-20020a056a000c9100b006e57be579f8mr3809051pfv.5.1709341067542; Fri, 01 Mar 2024 16:57:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709341067; cv=pass; d=google.com; s=arc-20160816; b=y2YEtrEP365eqdtSYKolCO/t+M9aFlu0df9fEghmwlg6JRBZab/pwT8LqRTG+2wUBb qwz7/ENs1OpjUnC14j6DAgdKRKoEaclKhJ1j+YnXeDZj+IZGHFVHL1fNxa2sNFAfugun Ika9hytRhNa+xsL8HU8ZrF/i21Gvm/cFhjG34v9n2s7/XyVSyqgVVrM69tkJlcU0J+CC rAu6PJUeY1bcn001NhInhTqRB1n8nRHGK14EoVbjzaoC0FJttC41ZcZhIeLhJctQB8vy 5aNPPd+28tdRC+xDd5XJOYB9bzS71EnwMG5VtGhl/DvawwUk4TqjMPSWeQ6fr5HOYEGy 9GZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=ui-outboundreport:content-transfer-encoding:in-reply-to:autocrypt :from:content-language:references:cc:to:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=nZs5ORY9ov7UtkwG+kRZRZ81mATMvGLCsBNxAEae/xU=; fh=hsc5lARFkXaaCfQ2eXyLc+TasRrT3ITCaxfOwAHOsFs=; b=OS1HyX6uRnfCPuEVyX+WXZDc8iR/C2SRDaeFztLs/2RNZGsjQ5ZT/rBmZC1qbGl0Kg 1mVCY1qPyGWVtilSKkZ50JtimmzCxQ6mGxntpEBhyJieaaBHbvg9144PnYOJuB1mzYve Jc4HLLhAJGadQ3moENnvowSNxUPt6crTJ5DE+PsQzcDu5NFKPI8xpUWluGh61vEhEIPk DcNNra+KrQLagN+0Ht5WrQRF1Gqky2su74wgAkXQLteT/93VuJKiEVJ3tXOxOdgvLzS/ /6L9gbr2Esxrv9djD6Z7rWOTaVd9IoVR5+K2WpVxsYWG09t2sUuhkHUhz/cU9YOuf+ZD jXKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=MWCI2s7w; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-wireless+bounces-4312-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4312-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id f9-20020aa79d89000000b006e54b34bfc7si4348282pfq.299.2024.03.01.16.57.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 16:57:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4312-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=MWCI2s7w; arc=pass (i=1 spf=pass spfdomain=gmx.de dkim=pass dkdomain=gmx.de dmarc=pass fromdomain=gmx.de); spf=pass (google.com: domain of linux-wireless+bounces-4312-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4312-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 65999284F64 for ; Sat, 2 Mar 2024 00:57:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F349F6AD6; Sat, 2 Mar 2024 00:57:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=fiona.klute@gmx.de header.b="MWCI2s7w" X-Original-To: linux-wireless@vger.kernel.org Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (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 37AA710E5; Sat, 2 Mar 2024 00:57:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.20 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709341054; cv=none; b=QAA1aCb4v1xYPmfeyT15ibOlsckXjmqI5ozhdIwV8pwkUkL/j00i/tS/Kqm75fyL3Wupq/c8o3Wsz3OuAMs8oE3qTro0tkKXo/qWbA4wEyjwfBsT6IrLfKiXnU7zJPI2hOm7ShqOH1Etb467652bK/qijHcZG2ATBycPwZdp6zY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709341054; c=relaxed/simple; bh=HdjjSZHkIvezioP3p22iivT1Q2zoquV3UXNTsY218Lc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KaHSewNQHdMHukDeaFhU6TA6uJRayEwAqUA/0ZWzvTXwtEo3jqtVFh5EvV6k2O+QIgJCwPDq7r2rgNt9JFBD9hx8pszf07b2bST5MJHPa/rYOxj39qiq6jqkB3aRKTrbxioAKfTZCNXUQlzFP715/4vfDn95kAs8Wd8zoPWSZwY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=fiona.klute@gmx.de header.b=MWCI2s7w; arc=none smtp.client-ip=212.227.17.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1709341036; x=1709945836; i=fiona.klute@gmx.de; bh=HdjjSZHkIvezioP3p22iivT1Q2zoquV3UXNTsY218Lc=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=MWCI2s7wg+n6j7NQP/zVJbNyR8XX5NsPO24CBFPr16esADJ7TD5VGJa7eSmxbVOP Y9FN5jOD5uoFDNSdnjkFaPZ8a/MIO5u/Atm6aQQsr1X5n48DLkgim0bA6nxzMWgcL ZBKibpj7a8aDZCB9TDVqc5dvmZnZcQR7isDbwymJGxyWjz2EczZSG2npLqUyB/Ndu QPjfm17Mwc0TUtstdbKjdsN1ZX7HsZaK6P0l7PJPmKvA784dWeMMHsEaw0/bi2reD 59GaziX10bNzp8tqWp1hC/oWKeGI1d6wVidWbJ3MoCa4y+XiSKdNeLOwwaPBG0C8M o5XgBDpCQjF63lT9YA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.7.2] ([85.22.26.244]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MGz1f-1rbUit06L5-00E8UO; Sat, 02 Mar 2024 01:57:16 +0100 Message-ID: <66a094b4-da4a-4211-ad9e-8c21cabe32cc@gmx.de> Date: Sat, 2 Mar 2024 01:57:14 +0100 Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/9] wifi: rtw88: Add rtw8703b.h To: Ping-Ke Shih , "linux-wireless@vger.kernel.org" Cc: "kvalo@kernel.org" , "ulf.hansson@linaro.org" , "pavel@ucw.cz" , "linux-mmc@vger.kernel.org" , "megi@xff.cz" References: <20240227235507.781615-1-fiona.klute@gmx.de> <20240227235507.781615-5-fiona.klute@gmx.de> <368ebc04c2ec436791a27b5661189783@realtek.com> <613176601db939f6e078b398c4207b6cd279b120.camel@realtek.com> Content-Language: de-DE, en-US From: Fiona Klute Autocrypt: addr=fiona.klute@gmx.de; keydata= xsFNBFrLsicBEADA7Px5KipL9zM7AVkZ6/U4QaWQyxhqim6MX88TxZ6KnqFiTSmevecEWbls ppqPES8FiSl+M00Xe5icsLsi4mkBujgbuSDiugjNyqeOH5iqtg69xTd/r5DRMqt0K93GzmIj 7ipWA+fomAMyX9FK3cHLBgoSLeb+Qj28W1cH94NGmpKtBxCkKfT+mjWvYUEwVdviMymdCAJj Iabr/QJ3KVZ7UPWr29IJ9Dv+SwW7VRjhXVQ5IwSBMDaTnzDOUILTxnHptB9ojn7t6bFhub9w xWXJQCsNkp+nUDESRwBeNLm4G5D3NFYVTg4qOQYLI/k/H1N3NEgaDuZ81NfhQJTIFVx+h0eT pjuQ4vATShJWea6N7ilLlyw7K81uuQoFB6VcG5hlAQWMejuHI4UBb+35r7fIFsy95ZwjxKqE QVS8P7lBKoihXpjcxRZiynx/Gm2nXm9ZmY3fG0fuLp9PQK9SpM9gQr/nbqguBoRoiBzONM9H pnxibwqgskVKzunZOXZeqyPNTC63wYcQXhidWxB9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LLJR7pGut/kprDe2r3b00/nttlWyuRSm+8+4+pErj8l7moAMNtKbIX RQTOT31dfRQRDQM2E35nXMh0Muw2uUJrldrBBPwjK2YQKklpTPTomxPAnYRY8LVVCwwPy8Xx MCTaUC2HWAAsiG90beT7JkkKKgMLS9DxmX9BN5Cm18Azckexy+vMg79LCcfw/gocQ4+lQn4/ 3BjqSuHfj+dXG+qcQ9pgB5+4/812hHog78dKT2r8l3ax3mHZCDTAC9Ks3LQU9/pMBm6K6nnL a4ASpGZSg2zLGIT0gnzi5h8EcIu9J1BFq6zRPZIjxBlhswF6J0BXjlDVe/3JzmeTTts= In-Reply-To: <613176601db939f6e078b398c4207b6cd279b120.camel@realtek.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:VbOVg0wjykTRwnN+1uyG4R7eIQOAAifA84Ajlr7vjqMW8/Xtxxn teGIFbCdPYbS1gYO3nLfNFkvpaRK4jrhMHgUSQ0E5kOLE1iuJA2OpxZOx6ytkQ1ZqSLEb1i qikeeR0gj/GDjDiAToD6NR8hVDcomdXbOdhO4I7bhb7RWKt9V/sTaX3tJZh2uQmAuMxcsZN oCe6iOLaZDimFWR/Kch2w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:iobTZX3IJn4=;ZQCqfKybbpJtLyrK3/du4VFL5FQ wnqF5ipVT3CW7IjcWEhX3MZfwjywj8bO/sBVttyhBgRnYvZcJ2xIuR1n6qqf9u9ALBUT4vc4b QtMQDdQMCavYA1+rkf+MYEjyhMyoVqnFqY0YuP/eOQmOZRYJt+s1adryUnRF7TQ1BdfFQ1hT2 xf1arIuMcUZbVBCbD2QVPpSfwg0XRjk6vakBrt4zCaiRZoRmtSUBdsNEEXiKDuIAPZ+MzfUqh dBN4Hk8btJYp5BSQBtFFIUJ6iuxVKgYY0VSClQ81XSkjSGXXjd4A3qnNwTLoQ7pTRQ/EpshLx ir0hGo2rfZDLvUxXEIqM4bekBm/jCuCXW9eOETBj7EL93ss1YBqEB0hCT9t+Fz0OIOkrniLKi M43+8jhHSlEcSo1w4DVrYThkK6kJFASWCzsZmHLmuY596crbkuU6gjwDU5vjd+RDq8PsIwz1L lCFtJmKkTzHMdah1wzNuAFJA0Zg3isHk6jqs/jaLf+3+MuJ/pyiZLiolkfA7grotWbWmJNjS7 XZhLVD1Q1S7VVMzrVLAGIviqG+rI9+XIyIsmnhRdGn5VxwtxXJ4F/FPpTwUV8ik8K5mIY8jl3 yiRRnQ1IUlHwPMYnJ1LWLWxwN9ZfgE5q2NR7wwRATZ7+b2orBWNOAhRS6z8qUf119l1NgyvXM G2Jp2V86C72Is4wfhAg0R2Wltu+wPWX17K5WI/KSjwcai4PWXXuCf/ply4GdpVr5lCiGc+x84 w51Q9QYeYJPj6bTeIKTNNboDsYwSPKLSC1wf6aHR2HJsUK5T8dw76h0pek/8iD1kY62k3iLEj U9ynou9tIJw1sevBLk9ve3tn6LmVg+cYpM0eoN6WdB13c= Am 02.03.24 um 01:33 schrieb Ping-Ke Shih: > On Fri, 2024-03-01 at 17:35 +0100, Fiona Klute wrote: >> >> Am 01.03.24 um 03:09 schrieb Ping-Ke Shih: >>>> +++ b/drivers/net/wireless/realtek/rtw88/rtw8703b.h >>>> @@ -0,0 +1,103 @@ >>>> +/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ >>>> +/* Copyright Fiona Klute */ >>>> + >>>> +#ifndef __RTW8703B_H__ >>>> +#define __RTW8703B_H__ >>>> + >>>> +#include >>>> +#include >>> >>> Removing these two headers can still compiled pass in my side. Please = check why >>> you need them. >> >> If I remove them whether the code compiles depends on the order of >> #includes. If some other header that includes those two is included >> before rtw8703b.h it works, otherwise it will break. I don't think >> that's desirable, though other rtw88 headers already behave that way >> (e.g. main.h must be included before the others). Also, clangd will >> complain about undefined types (u8, s8), which is less important but >> still annoying when working on the code. So I'd prefer to keep the incl= udes. >> >>> By the way, rtw8723d.h does >>> #include "rtw8723x.h" >>> >>> Can we use the same stuff? >> >> I don't think so. The vendor driver has different code paths: With 8723= D >> it takes one for "PHYSTS_2ND_TYPE_IC" [1], with 8703B the one for >> "ODM_IC_11N_SERIES" a few lines below. For those "2nd type" ICs there >> are different structs depending on the page number >> (phy_sts_rpt_jgr2_type[0-2]), while the "11N series" ones always use >> phy_status_rpt_8192cd (all defined in [2]). >> >> However, the mainline rtlwifi driver has an equivalent struct called >> "phy_status_rpt" in >> drivers/net/wireless/realtek/rtlwifi/rtl8723be/trx.h. I don't know if >> sharing such definitions between different drivers is desirable. If yes= , >> please let me know where the header should go. >> >> [1] >> https://xff.cz/git/linux/tree/drivers/staging/rtl8723cs/hal/phydm/phydm= _phystatus.c?h=3Dorange-pi-6.7#n3142 >> [2] >> https://xff.cz/git/linux/tree/drivers/staging/rtl8723cs/hal/phydm/phydm= _phystatus.h?h=3Dorange-pi-6.7 >> > > Sorry for confusing. I meant to remove > #include > #include > and to add > #include "rtw8723x.h" > like rtw8723d.h does after this patchset, not reference to vendor driver= . Oh yes, that makes sense. Thanks for the clarification, I'll do that. Best regards, Fiona