Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp68805lqg; Thu, 29 Feb 2024 20:36:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVECUikyyOnx47rhk03itWhrTjNGdljYcpslCJGwxs9aBrNpHWEzyPcmhbebzHWvfZYVsWxWptli36A8bqPewAaKb5gO2bFkeHVYjH9tw== X-Google-Smtp-Source: AGHT+IGaEvg1t9EiWcI190Wz/GMsMNmGag84LK30m8tnHb9IdKwjCsrkl0BgnA9HMZPDk7s6Ik9l X-Received: by 2002:a05:6a20:3d1d:b0:1a0:d3a8:6dfb with SMTP id y29-20020a056a203d1d00b001a0d3a86dfbmr541111pzi.19.1709267807396; Thu, 29 Feb 2024 20:36:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709267807; cv=pass; d=google.com; s=arc-20160816; b=Z0cKM05uqfXEE1hBg8vaRlWgNwQ52GKLmnFb7h09iR/t9BZcPJ6k5t5P0alTi5PkME VQiKX39h+ZbAeUFG4baev6+C4bpBU6fyXJxT15XTGdAIDO9zoiU8oq7xWBalSY+8EfCL DVQSqSTEb/Q9Utz1rMLUcZ2A3xQtqe9q9+YUIOfzrBAiOeUjle5Fuze4nnV0/fofxSTR 2HfLAjICUveGf14IDFOS3+HtggzH9M94HOv5HAxtglaFIrFA9Z/SZc4Yt0bhV1nq8pjE ikqpeB2RrtymCl/Ju2lGrggrkp9D9tp2aOnGwpg3awMW+w/aIaOLTvuiD123/nH4Fc7j b+Lw== 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=4xsDlJQuUYy6JktD+5R6OCIUsW6VmOpYq8fZnORFbe8=; fh=ymR7iz+mnSygwF1RdP3pH6BBazJix5S+ossAfVYCzm8=; b=iXyuqCXDByXk9+sAfnB76sqSqRuvGVWz1nlc9JjOleidgEus9HYjsB021TGKbot007 53b0RjETGIzDKUDI4ZfoJDOWYjqhARxtBSelEaRrQcIye+ickEc6qd+Fls+4pyFJrXpX DNMn76l8WNYOaMK2AsGxJ/9ZkYPXTjm/8AySdp4OZXuYb/etOiIvIz5XSktB2elpKVdd JBLRDpsVogHbxzw00AUtLf9cGLP5TBw07tSrz8a9VAygfYTDIU5sBT7+X7mBewuslU+y fxsQLHiJ3Dd+I2Jyim01UqSXpXIzEKqMVxLW9RoEIfwET43yYDZXZP3cyEOA+rlUUjze bL6w==; 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-4289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4289-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id l11-20020a63da4b000000b005dca7a43069si2841809pgj.603.2024.02.29.20.36.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 20:36:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-4289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=realtek.com); spf=pass (google.com: domain of linux-wireless+bounces-4289-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-wireless+bounces-4289-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id B0D31B22317 for ; Fri, 1 Mar 2024 04:36:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE48246425; Fri, 1 Mar 2024 04:36:37 +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 D6CF0405DB; Fri, 1 Mar 2024 04:36:34 +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=1709267797; cv=none; b=DMzdx+r34ksA462fXuoba67PY4FIkL2ezHbwQVUbai/v60xIgeOtN4/EDoNYfgzPivahrokXAc0OjA+Z1iBPnpUqvoT60uf7dwCNkmD4b/ErwwuESsJ8LNiPwl0g01f+e8+fll/4VNEISI5VFMssq4iP59E7SQn0m5rKXXRdGr0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709267797; c=relaxed/simple; bh=wdCREJ/ERf9GMjaN03MmgOGKwhRWI9srDXXsfp4H4vU=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=KacBlezhe5owo/SdsxAd1l4hgvqHSvOuKYrCz19GrL+eybr9UB8jmTLO7CqXXUly+hKI7LtddXiVQzqeU6em+Z/7M/T4C6hhCbKnNyghgYeEqLghkYvP2/XXcwuf/dq6Rzsweact3gMgtWJx1sepzuxPPSgQMdawV/C/HRIZ5cY= 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 4214a9Q011893683, 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 4214a9Q011893683 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 1 Mar 2024 12:36:09 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) 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.17; Fri, 1 Mar 2024 12:36:10 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 1 Mar 2024 12:36:08 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::c9b7:82a9:7e98:fa7f]) by RTEXMBS04.realtek.com.tw ([fe80::c9b7:82a9:7e98:fa7f%7]) with mapi id 15.01.2507.035; Fri, 1 Mar 2024 12:36:08 +0800 From: Ping-Ke Shih To: Ping-Ke Shih , Fiona Klute , "linux-wireless@vger.kernel.org" CC: "kvalo@kernel.org" , "ulf.hansson@linaro.org" , "linux-mmc@vger.kernel.org" , "pavel@ucw.cz" , "megi@xff.cz" Subject: RE: [PATCH v2 5/9] wifi: rtw88: Add rtw8703b.c Thread-Topic: [PATCH v2 5/9] wifi: rtw88: Add rtw8703b.c Thread-Index: AQHaadh8n611UJm6iUqkDrqnT0K/C7EiKLcwgAAmtxA= Date: Fri, 1 Mar 2024 04:36:08 +0000 Message-ID: <4fc45b4289d747dd80f76dcacef3c54d@realtek.com> References: <20240227235507.781615-1-fiona.klute@gmx.de> <20240227235507.781615-6-fiona.klute@gmx.de> <3805850d51334319984bc304ca1dc3c4@realtek.com> In-Reply-To: <3805850d51334319984bc304ca1dc3c4@realtek.com> 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 > -----Original Message----- > From: Ping-Ke Shih > Sent: Friday, March 1, 2024 10:33 AM > To: Fiona Klute ; linux-wireless@vger.kernel.org > Cc: kvalo@kernel.org; ulf.hansson@linaro.org; linux-mmc@vger.kernel.org; = pavel@ucw.cz; megi@xff.cz > Subject: RE: [PATCH v2 5/9] wifi: rtw88: Add rtw8703b.c >=20 >=20 >=20 > > -----Original Message----- > > From: Fiona Klute > > Sent: Wednesday, February 28, 2024 7:55 AM > > To: linux-wireless@vger.kernel.org; Ping-Ke Shih > > Cc: Fiona Klute ; kvalo@kernel.org; ulf.hansson@lin= aro.org; > linux-mmc@vger.kernel.org; > > pavel@ucw.cz; megi@xff.cz > > Subject: [PATCH v2 5/9] wifi: rtw88: Add rtw8703b.c > > > > + > > +#define TRANS_SEQ_END \ > > + {0xFFFF, \ > > + RTW_PWR_CUT_ALL_MSK, \ > > + RTW_PWR_INTF_ALL_MSK, \ > > + 0, \ > > + RTW_PWR_CMD_END, 0, 0} >=20 > Move this macro to main.h along with RTW_PWR_CUT_ALL_MSK. Think of this again, I prefer removing braces #define TRANS_SEQ_END \ 0xFFFF, \ RTW_PWR_CUT_ALL_MSK, \ RTW_PWR_INTF_ALL_MSK, \ 0, \ RTW_PWR_CMD_END, 0, 0 Then, consumers look like static const struct rtw_pwr_seq_cmd trans_carddis_to_cardemu_8703b[] =3D { {0x0005, RTW_PWR_CUT_ALL_MSK, RTW_PWR_INTF_ALL_MSK, RTW_PWR_ADDR_MAC, RTW_PWR_CMD_WRITE, BIT(7), 0}, {TRANS_SEQ_END}, // <=3D=3D=3D This one will be consistent with others. }; Ping-Ke