Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp711672ybj; Tue, 5 May 2020 06:39:14 -0700 (PDT) X-Google-Smtp-Source: APiQypIqDZbomIUjO2oCNQznDZbG2q5CypSKJQ6bwomzKwgiJ2zuOh6K5Z+DVuHTynj7jU6dsRVY X-Received: by 2002:a17:906:288b:: with SMTP id o11mr2765579ejd.237.1588685954396; Tue, 05 May 2020 06:39:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588685954; cv=none; d=google.com; s=arc-20160816; b=NoQMkjalXDPLU1O/dxxgdRk+HcCngX+c6er53Vc5Bo+o7S1Y6bBogGB4RfRoXlba8S Q/DknKsMrC4mPk2ba3EHkvpKQQjSMFhw6yoG/axBtWjRw+UbTSv8UqR6fnwFi9Y7/4Px DWGzhVDeiGJB+JTObhkbJCcrDBeAYQEcS7dn1IklUbVaNnB46OBUou9/AARu9II2xue6 LUo5tT21fmeBedKwUekbSE9rwjLEXprYND/IwuZQGN8TJWWx+EJx4Bk2bdqbqyWjwEho BGbjJhiyGWQk7Va6r6nzMd0/FuaBIsTUxGC97ZrD4xn8/d95y0YggfqHZ5eo5rTeRu06 AWWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=sFNHujv1GFaQd3l8g6Q8sxU37CtUcurztTERQ73XVkw=; b=NBCK7Ln/q5GRpikLInpNohHOm8TMUKApXQlLvzBGtyidXcuu9HuWTv+becXB7n7nYY iWu43o+TFwBy+56X0oP2jZBhZwDISdg8GyQvPVlEUmfYfZAVA/pQGIwdUS1QIeNbWhjF MEzK21Ko/S3FZ46T9gaz+imxy3u/mC+ZjT+mE2RyL/9v9LqyLoaiDrEVaGHTDjVD/IBb Ak8DjoE6so4VFr7pRGxRTPxQw/wgFvODpgXqeMzefEOTxnEK9EP9UZq1UvfcTRnlZ1Tb HqbPEQxI7yrPbBpaxImvG+u1b3EfQgp7VcMKAMrWFqA3yjzcN5dT4cypLBun41/pQD7o U9RA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si1387988edn.103.2020.05.05.06.38.49; Tue, 05 May 2020 06:39:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729020AbgEENiU (ORCPT + 99 others); Tue, 5 May 2020 09:38:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728608AbgEENiU (ORCPT ); Tue, 5 May 2020 09:38:20 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8862C061A0F for ; Tue, 5 May 2020 06:38:19 -0700 (PDT) Received: from bigeasy by Galois.linutronix.de with local (Exim 4.80) (envelope-from ) id 1jVxm5-0007ZH-JV; Tue, 05 May 2020 15:38:17 +0200 Date: Tue, 5 May 2020 15:38:17 +0200 From: Sebastian Andrzej Siewior To: yhchuang@realtek.com Cc: kvalo@codeaurora.org, linux-wireless@vger.kernel.org, pkshih@realtek.com Subject: Re: [PATCH v4 2/8] rtw88: 8723d: Add query_rx_desc Message-ID: <20200505133817.tkr3kxduzhjnk6e3@linutronix.de> References: <20200504105010.10780-1-yhchuang@realtek.com> <20200504105010.10780-3-yhchuang@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200504105010.10780-3-yhchuang@realtek.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-05-04 18:50:04 [+0800], yhchuang@realtek.com wrote: > diff --git a/drivers/net/wireless/realtek/rtw88/rtw8723d.h b/drivers/net/wireless/realtek/rtw88/rtw8723d.h > index 6321dea83519..035049a29e7c 100644 > --- a/drivers/net/wireless/realtek/rtw88/rtw8723d.h > +++ b/drivers/net/wireless/realtek/rtw88/rtw8723d.h > @@ -44,6 +44,28 @@ struct rtw8723d_efuse { > struct rtw8723de_efuse e; > }; > > +/* phy status page0 */ > +#define GET_PHY_STAT_P0_PWDB(phy_stat) \ > + le32_get_bits(*((__le32 *)(phy_stat) + 0x00), GENMASK(15, 8)) > + > +/* phy status page1 */ > +#define GET_PHY_STAT_P1_PWDB_A(phy_stat) \ > + le32_get_bits(*((__le32 *)(phy_stat) + 0x00), GENMASK(15, 8)) > +#define GET_PHY_STAT_P1_PWDB_B(phy_stat) \ > + le32_get_bits(*((__le32 *)(phy_stat) + 0x00), GENMASK(23, 16)) > +#define GET_PHY_STAT_P1_RF_MODE(phy_stat) \ > + le32_get_bits(*((__le32 *)(phy_stat) + 0x03), GENMASK(29, 28)) > +#define GET_PHY_STAT_P1_L_RXSC(phy_stat) \ > + le32_get_bits(*((__le32 *)(phy_stat) + 0x01), GENMASK(11, 8)) > +#define GET_PHY_STAT_P1_HT_RXSC(phy_stat) \ > + le32_get_bits(*((__le32 *)(phy_stat) + 0x01), GENMASK(15, 12)) > +#define GET_PHY_STAT_P1_RXEVM_A(phy_stat) \ > + le32_get_bits(*((__le32 *)(phy_stat) + 0x04), GENMASK(7, 0)) > +#define GET_PHY_STAT_P1_CFO_TAIL_A(phy_stat) \ > + le32_get_bits(*((__le32 *)(phy_stat) + 0x05), GENMASK(7, 0)) > +#define GET_PHY_STAT_P1_RXSNR_A(phy_stat) \ > + le32_get_bits(*((__le32 *)(phy_stat) + 0x06), GENMASK(7, 0)) > + Out of curiosity: Does it make sense to merge these defines into a common file? Unless I missed something, b and c have the same ones here. > #define REG_OFDM0_XAAGC1 0x0c50 > #define REG_OFDM0_XBAGC1 0x0c58 > > -- > 2.17.1 Sebastian