Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2513761rdb; Mon, 5 Feb 2024 08:47:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IEr4Tmi6+y5xyVSyQbhaYR5qfiqYVm3skHb22kImBJSUKl9Kt+TonDd6Ss7QmXtSCjKSJgy X-Received: by 2002:a25:bb10:0:b0:dc2:331e:48bd with SMTP id z16-20020a25bb10000000b00dc2331e48bdmr14516406ybg.44.1707151674256; Mon, 05 Feb 2024 08:47:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707151673; cv=pass; d=google.com; s=arc-20160816; b=EdD/gYn63RiCl/xXvIjwFQhLPqVSVKKlfRrKfxF1SAWSzr9N9zF7vnaCsAaAcK+5/p 7Ni0SO3ux2qungnY4wKIB+2TsXZlDktkrEKZtphTAhcIJ29fi7UGk2An5uBtCdN0ARu5 sTv/5knVRRZC4c+qQO3OFN0Nz78mL2hNHR5DBs5V2YQBtfGkhqtesYJoJnOMI0srBZ0I AEL08zjlTE2vdugmId5Z+JLzOkMtHist2NVaU2ShR6EiWGjTUiqWOoJjVadldB3uDzTt QKlCi4L1+bnp6riM7RryO4JIAvFfRZYZqjz6OmNDOxabrLYPYZdvTmxcFmYlbPQ7IkS+ hJVw== 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=sJjZPkl8Psdo9OXPU54zoD3ZFUVwxhikSULeb9Rt5ek=; fh=+g19/uMIxVLg7PEuiVzy08w7Z6KmE2ijBZhjJXhIhsE=; b=WN9gPYoeDDNVaGnPrrAq2+a6eE+Laj3WHG2rotzv7M3/WbnSbxlDLwNtMPXOGGL6ew 5Hfz48UtP+BsjmL44tYsZ1MWcKBi6xTrcs4crTlzhHgiOUBlwJ9f0K+VMJh2a+HtFb2D lO8LNQNANlFl5jO4zgCHSHAGWqT6/32IxH0m0du5iG1kkb38QZemW7OytM85FqIz89zU K2o0GXtLFKJL/jmv73KWiXgAA12lH22kL/Jfu58KQtY/e2gUxGbxky+zF8Eit+keQDsj 3rBiuwJvGUy6asYMrY6BL5JrmROfllK8Rxmxxm2sGSNmHrlrvdY0wxg1GhQ3aqNRFhkE Bpig==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=ogjpCz0w; 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-3139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=gmx.de X-Forwarded-Encrypted: i=1; AJvYcCV8jtKaQXe5jQG9k4+tweKl9GhTCf0/UW7GZm6KJF5YqkdZH6uBhwiu1QSYWruUxaZcS0GsuvqB0+jvYZok9gWXdCY3gA50Y3OOjAN2Zw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id k13-20020a05621414ed00b0068c9854d4a8si286203qvw.5.2024.02.05.08.47.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:47:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-3139-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; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=ogjpCz0w; 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-3139-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-3139-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7E1581C20F3F for ; Mon, 5 Feb 2024 16:47:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A2D333CF6A; Mon, 5 Feb 2024 16:47:48 +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="ogjpCz0w" X-Original-To: linux-wireless@vger.kernel.org Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (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 0D3C53CF4B; Mon, 5 Feb 2024 16:47:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.21 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707151668; cv=none; b=YedILifuMtpl+7x4JNcL6AFo8ONnFwPpXzOxaGDWwIz8j1Ip5Q1KU8lMwPQaH17jEcMc5y+WrbJVN3uMZFgLDw597RYEF465d3Lq0L0naAB2IGNB/l/Qv7OqleKMGOmyMf8DklE5CoGbgFao0s1N0ZWtzLkg4iRLjZGo3lAtXRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707151668; c=relaxed/simple; bh=bo3HQwApf0/5rgYzToEQzOKEI2pgeLRw1q5w0CK+n0U=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BsfdOSVYmP29GS4B8gZFPKgcXWVPv+38JvEpDRnE8EgxayYXjytdQudrW4JdQSN66dpWv0OirbglvpWPupboYDgaGbWpe1f34oy0wSRtXAtwICjLn6n6OKbYckw8McYQCT4LyuR1DkGRxJz9Iz9QzD7zVPt7RI7APGfejbziTJc= 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=ogjpCz0w; arc=none smtp.client-ip=212.227.17.21 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=1707151650; x=1707756450; i=fiona.klute@gmx.de; bh=bo3HQwApf0/5rgYzToEQzOKEI2pgeLRw1q5w0CK+n0U=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From: In-Reply-To; b=ogjpCz0wvaO4Iu3WnaydlqHCC7GbOiZuAbUE6yw8t9fJEsUC3yH7ZJCnIicbolDs WZQ4Dn45gtUjgn6gMvPgfS00ojvuRtvGclRl1h44pExjv33jMbyuUpMxi8ufeL8eS TL3HULKsJ6pu5TOOf9hkWMMZR+T+ZN+igBREgwQi1QGh2yJOlmL1DXMfwfL70FZYE 8Vmpi5qlctTN7JEWpKx6+0w3B3oIxiRtNCTR69BGpHRoKTseQGzcwuHN1tVA+hMVf BYjnikdNIkHXqXKFkSXxatZpqX6rpFWPC0l7w4qlAzrN2ItyIlgfPs+5aragAaYSl 77yXQs2NKD8D7Rp6Vw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [192.168.7.2] ([85.22.18.163]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MKbg4-1rIofN3o2W-00Kvsy; Mon, 05 Feb 2024 17:47:30 +0100 Message-ID: <080d2209-151c-4493-93bb-8fddd51f0e1b@gmx.de> Date: Mon, 5 Feb 2024 17:47:28 +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 1/9] wifi: rtw88: Shared module for rtw8723x devices To: Ping-Ke Shih , "linux-wireless@vger.kernel.org" Cc: Kalle Valo , Ulf Hansson , "linux-mmc@vger.kernel.org" , Pavel Machek , =?UTF-8?Q?Ond=C5=99ej_Jirman?= References: <20240202121050.977223-1-fiona.klute@gmx.de> <20240202121050.977223-2-fiona.klute@gmx.de> Content-Language: en-US, de-DE 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 pnxibwqgskVKzunZOXZeqyPNTC63wYcQXh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z+HRrLLJR7pGut/kprDe2r3b00/nttlWyuRSm+8+4+pErj8l7moAMNtKbIX RQTOT31dfRQRDQM2E35nXMh0Muw2uUJrldrBBPwjK2YQKklpTPTomxPAnYRY8LVVCwwPy8Xx MCTaUC2HWAAsiG90beT7JkkKKgMLS9DxmX9BN5Cm18Azckexy+vMg79LCcfw/gocQ4+lQn4/ 3BjqSuHfj+dXG+qcQ9pgB5+4/812hHog78dKT2r8l3ax3mHZCDTAC9Ks3LQU9/pMBm6K6nnL a4ASpGZSg2zLGIT0gnzi5h8EcIu9J1BFq6zRPZIjxBlhswF6J0BXjlDVe/3JzmeTTts= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:WcfgcZXDsfAPwakWcVMs7k9qX9PZtj/NFAl1i/yN/B526E3Yd/X LYPrg1ExEIXNFKAkt08hsU/CjMVMDXHAKiN9hldM93AExYFG6BZJKcCpjGtvKaYpAvvse46 qSAT8tBzRqS9+mc4E40B7SNeiDfkn2yBI1p5jlGT7nxfM/82E+E+J1XzV6SiBf6aCzrOxys JvlBiC5d7M9b3V4b7UN9w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:nLDgcOe3LCs=;P0Idmh9/uX0q0jX/ha+bqGOhDEW EQLxvFP9rSvemuF6+unXZ+AvoLlXDztRJGbH4yd7ZqFIkqcQcEjPybYCdZdc2sbdSeviC1F1b ZRL33L3YtBF1sIMz/7h9HGe38cDrZw/BUX6uS7MbL/Md9zBle4tJCjjo2SUZKsZ8XoROmmnu6 K3tsO5BudJnkzZF6NK2HIFLgs5qSpe/ahEjI/e0A4S+/6oXefTNDl9P7Lz7b1BNRmr5UQGiUP QVhnyfLGhqKVTbAI5I/5BcFnbtJjl2tmoqhtsig1yB4ozAb41A2gFOsEsDKOrTQJjf/Fina88 kEjXh1cVP1DqNa5mRkkUVU5nfKVlZDgQvSYF7TGkHJA6Ipt4W9oY97nLfg3nPS4mhOBzLMU/v NWJ1SHm602o8Ur5Tgj2K++DmRlsUJrQtb+N1nwUTYHNS6tT5sQtkDjMAcP8rhj0pk2piJeAzC P8qrz9Bz89PGKo4ed+ZBuQmjehDmhG2afcl4k638U3Wwv7wxjkrIheHAEpZ5QngLpu0YNLu1n ce3ePRGTJKaCXP6YZjEysCrj3DKXKvHy75vqBVHHny6JOKYEM4aHe/yXw6kGPOYT/UXooL1YG xMAEez4BkZinjw5F7FKLgK84jMIEsjf8CkoQIt4lR5H298crvwhdbcyrHY4Umra0Ia4RC96Vv UUFsigjiBEpk30x6qzWwYkr3g55aM+FXppY0JUlhQHtX/sVzKTNlzrKny6dV+3yA8N4qkkFIQ 2CdYH6OS+bccHSGh2xhT8O3xohOrv6PZaHck/87Z4cVhP1PGzpn7Ws/EjqkB44dSLwuB59LZ8 5UmcXyX+R0UIRVhCfyiKWugSmjNO2/xhbPr/+YEBa7knU= Am 05.02.24 um 02:45 schrieb Ping-Ke Shih: >> -----Original Message----- >> From: Fiona Klute >> Sent: Friday, February 2, 2024 8:11 PM >> To: linux-wireless@vger.kernel.org; Ping-Ke Shih >> Cc: Kalle Valo ; Ulf Hansson = ; linux-mmc@vger.kernel.org; Pavel >> Machek ; Ond=C5=99ej Jirman ; Fiona Klute >> Subject: [PATCH 1/9] wifi: rtw88: Shared module for rtw8723x devices >> >> The already supported 8723d chip is very similar to 8703b/8723cs, >> split code that can be shared into a new module. The spec definition >> tables are combined into a struct so we only need one EXPORT_SYMBOL >> for them all. >> >> Signed-off-by: Fiona Klute >> --- >> I'm not sure how who should be MODULE_AUTHOR in rtw8723x.c. Most of >> the code is from rtw8723d, I created the separate module. I don't want >> to claim authorship over code I didn't write, but assigning authorship >> unasked (by copying the MODULE_AUTHOR from rtw8723d.c) also seems >> wrong. > > If two MODULE_AUTHOR are allowed, maybe list both? I just checked the macro documentation, it says to use multiple MODULE_AUTHOR for multiple authors, so I'll do that. :-) > [...] > >> diff --git a/drivers/net/wireless/realtek/rtw88/rtw8723d.c >> b/drivers/net/wireless/realtek/rtw88/rtw8723d.c >> index c575476a00..68245f34b5 100644 >> --- a/drivers/net/wireless/realtek/rtw88/rtw8723d.c >> +++ b/drivers/net/wireless/realtek/rtw88/rtw8723d.c > > [...] > >> @@ -930,6 +532,8 @@ static u8 rtw8723d_iqk_check_rx_failed(struct rtw_d= ev *rtwdev, >> return 0; >> } >> >> +#define IQK_LTE_WRITE_VAL 0x0000ff00 >> + >> static void rtw8723d_iqk_one_shot(struct rtw_dev *rtwdev, bool tx, >> const struct rtw_8723d_iqk_cfg *iqk_= cfg) >> { >> @@ -937,7 +541,7 @@ static void rtw8723d_iqk_one_shot(struct rtw_dev *r= twdev, bool tx, >> >> /* enter IQK mode */ >> rtw_write32_mask(rtwdev, REG_FPGA0_IQK_11N, BIT_MASK_IQK_MOD, = EN_IQK); >> - rtw8723d_iqk_config_lte_path_gnt(rtwdev); >> + rtw8723x_iqk_config_lte_path_gnt(rtwdev, IQK_LTE_WRITE_VAL); > > It would be better to discriminate IQK_LTE_WRITE_VAL_8723D and > IQK_LTE_WRITE_VAL_8703B to prevent misreading. Good point, I'll do that. Same for the ADDA_ON_VAL. >> diff --git a/drivers/net/wireless/realtek/rtw88/rtw8723x.c >> b/drivers/net/wireless/realtek/rtw88/rtw8723x.c >> new file mode 100644 >> index 0000000000..2b58064547 >> --- /dev/null >> +++ b/drivers/net/wireless/realtek/rtw88/rtw8723x.c >> @@ -0,0 +1,561 @@ > > [...] > >> +const struct rtw8723x_common rtw8723x_common =3D { >> + .iqk_adda_regs =3D { >> + 0x85c, 0xe6c, 0xe70, 0xe74, 0xe78, 0xe7c, 0xe80, 0xe84, >> + 0xe88, 0xe8c, 0xed0, 0xed4, 0xed8, 0xedc, 0xee0, 0xeec >> + }, >> + .iqk_mac8_regs =3D {0x522, 0x550, 0x551}, >> + .iqk_mac32_regs =3D {0x40}, >> + .iqk_bb_regs =3D { >> + 0xc04, 0xc08, 0x874, 0xb68, 0xb6c, 0x870, 0x860, 0x864,= 0xa04 >> + }, >> + >> + .ltecoex_addr =3D { >> + .ctrl =3D REG_LTECOEX_CTRL, >> + .wdata =3D REG_LTECOEX_WRITE_DATA, >> + .rdata =3D REG_LTECOEX_READ_DATA, >> + }, >> + .rf_sipi_addr =3D { >> + [RF_PATH_A] =3D { .hssi_1 =3D 0x820, .lssi_read =3D = 0x8a0, >> + .hssi_2 =3D 0x824, .lssi_read_pi =3D 0x= 8b8}, >> + [RF_PATH_B] =3D { .hssi_1 =3D 0x828, .lssi_read =3D = 0x8a4, >> + .hssi_2 =3D 0x82c, .lssi_read_pi =3D 0x= 8bc}, >> + }, >> + .dig =3D { >> + [0] =3D { .addr =3D 0xc50, .mask =3D 0x7f }, >> + [1] =3D { .addr =3D 0xc50, .mask =3D 0x7f }, >> + }, >> + .dig_cck =3D { >> + [0] =3D { .addr =3D 0xa0c, .mask =3D 0x3f00 }, >> + }, >> + .prioq_addrs =3D { >> + .prio[RTW_DMA_MAPPING_EXTRA] =3D { >> + .rsvd =3D REG_RQPN_NPQ + 2, .avail =3D REG_RQPN= _NPQ + 3, >> + }, >> + .prio[RTW_DMA_MAPPING_LOW] =3D { >> + .rsvd =3D REG_RQPN + 1, .avail =3D REG_FIFOPAGE= _CTRL_2 + 1, >> + }, >> + .prio[RTW_DMA_MAPPING_NORMAL] =3D { >> + .rsvd =3D REG_RQPN_NPQ, .avail =3D REG_RQPN_NPQ= + 1, >> + }, >> + .prio[RTW_DMA_MAPPING_HIGH] =3D { >> + .rsvd =3D REG_RQPN, .avail =3D REG_FIFOPAGE_CTR= L_2, >> + }, >> + .wsize =3D false, >> + }, >> + >> + .lck =3D __rtw8723x_lck, >> + .read_efuse =3D __rtw8723x_read_efuse, >> + .mac_init =3D __rtw8723x_mac_init, >> + .cfg_ldo25 =3D __rtw8723x_cfg_ldo25, >> + .set_tx_power_index =3D __rtw8723x_set_tx_power_index, >> + .efuse_grant =3D __rtw8723x_efuse_grant, >> + .false_alarm_statistics =3D __rtw8723x_false_alarm_statistics, >> + .iqk_backup_regs =3D __rtw8723x_iqk_backup_regs, >> + .iqk_restore_regs =3D __rtw8723x_iqk_restore_regs, >> + .iqk_similarity_cmp =3D __rtw8723x_iqk_similarity_cmp, >> + .pwrtrack_get_limit_ofdm =3D __rtw8723x_pwrtrack_get_limit_ofdm= , >> + .pwrtrack_set_xtal =3D __rtw8723x_pwrtrack_set_xtal, >> + .coex_cfg_init =3D __rtw8723x_coex_cfg_init, >> + .fill_txdesc_checksum =3D __rtw8723x_fill_txdesc_checksum, >> +}; >> +EXPORT_SYMBOL(rtw8723x_common); > > I think these are just copy-and-paste stuff. Is there anything special y= ou want > me look deeper? It should be just copy-and-paste. If you (or anyone else reading this) have the opportunity to test with an 8723D device to make sure I didn't make any mistake that breaks things there that'd be great. >> + >> +MODULE_AUTHOR("Fiona Klute "); >> +MODULE_DESCRIPTION("Common functions for Realtek 802.11n wireless 8723= x drivers"); >> +MODULE_LICENSE("Dual BSD/GPL"); >> diff --git a/drivers/net/wireless/realtek/rtw88/rtw8723x.h >> b/drivers/net/wireless/realtek/rtw88/rtw8723x.h >> new file mode 100644 >> index 0000000000..d3930f1f2c >> --- /dev/null >> +++ b/drivers/net/wireless/realtek/rtw88/rtw8723x.h > > [...] > > >> +/* IQK helper functions, defined as inline so they can be shared >> + * without needing an EXPORT_SYMBOL each. >> + */ >> +inline void > > These inline functions should be 'static'. > (I believe you have addressed this, and will change them by v2.) Yes, that was what broke building the driver into the kernel (not as a module) as reported by Pavel Machek. >> +rtw8723x_iqk_backup_path_ctrl(struct rtw_dev *rtwdev, >> + struct rtw8723x_iqk_backup_regs *backup) >> +{ >> + backup->btg_sel =3D rtw_read8(rtwdev, REG_BTG_SEL); >> + rtw_dbg(rtwdev, RTW_DBG_RFK, "[IQK] original 0x67 =3D 0x%x\n", >> + backup->btg_sel); >> +} >> + > > [...] >