Skip to contentSkip to conversation

rtlwifi: fix REG_USTIME_TSF register definition

PATCH In review Kevin Lo 2 participants 6 messages May 19, 2017 – Jun 21, 2017 1 message not in the archive Realtek wireless driver (rtlwifi family)

lore
Share & tools
lore

Kevin Lo

author
#0 lore raw

PATCH 1/1 rtlwifi: fix REG_USTIME_TSF register definition

The REG_USTIME_TSF (US Time Tuning for TSF) definition of Realtek chips should be 0x55C.

---

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/reg.h +1 -1
index 15400ee6c04b..0c0d64aea651 100644
@@ -248,7 +248,6 @@
 #define REG_RD_NAV_NXT				0x0544
 #define REG_NAV_PROT_LEN			0x0546
 #define REG_BCN_CTRL				0x0550
-#define REG_USTIME_TSF				0x0551
 #define REG_MBID_NUM				0x0552
 #define REG_DUAL_TSF_RST			0x0553
 #define REG_BCN_INTERVAL			0x0554
@@ -256,6 +255,7 @@
 #define REG_DRVERLYINT				0x0558
 #define REG_BCNDMATIM				0x0559
 #define REG_ATIMWND					0x055A
+#define REG_USTIME_TSF				0x055C
 #define REG_BCN_MAX_ERR				0x055D
 #define REG_RXTSF_OFFSET_CCK		0x055E
 #define REG_RXTSF_OFFSET_OFDM		0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/reg.h +1 -1
index 1bb7ed35812d..9e3b58a5d2bb 100644
@@ -227,7 +227,6 @@
 #define REG_RD_NAV_NXT				0x0544
 #define REG_NAV_PROT_LEN			0x0546
 #define REG_BCN_CTRL				0x0550
-#define REG_USTIME_TSF				0x0551
 #define REG_MBID_NUM				0x0552
 #define REG_DUAL_TSF_RST			0x0553
 #define REG_BCN_INTERVAL			0x0554
@@ -235,6 +234,7 @@
 #define REG_DRVERLYINT				0x0558
 #define REG_BCNDMATIM				0x0559
 #define REG_ATIMWND				0x055A
+#define REG_USTIME_TSF				0x055C
 #define REG_BCN_MAX_ERR				0x055D
 #define REG_RXTSF_OFFSET_CCK			0x055E
 #define REG_RXTSF_OFFSET_OFDM			0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8192de/reg.h +1 -1
index b354b95936e2..d4c4e76a9244 100644
@@ -255,7 +255,6 @@
 #define REG_RD_NAV_NXT			0x0544
 #define REG_NAV_PROT_LEN		0x0546
 #define REG_BCN_CTRL			0x0550
-#define REG_USTIME_TSF			0x0551
 #define REG_MBID_NUM			0x0552
 #define REG_DUAL_TSF_RST		0x0553
 #define REG_BCN_INTERVAL		0x0554
@@ -263,6 +262,7 @@
 #define REG_DRVERLYINT			0x0558
 #define REG_BCNDMATIM			0x0559
 #define REG_ATIMWND			0x055A
+#define REG_USTIME_TSF			0x055C
 #define REG_BCN_MAX_ERR			0x055D
 #define REG_RXTSF_OFFSET_CCK		0x055E
 #define REG_RXTSF_OFFSET_OFDM		0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/reg.h +1 -1
index 306059f9b9cc..30938cd9fce5 100644
@@ -217,7 +217,6 @@
 #define REG_RD_NAV_NXT				0x0544
 #define REG_NAV_PROT_LEN			0x0546
 #define REG_BCN_CTRL				0x0550
-#define REG_USTIME_TSF				0x0551
 #define REG_MBID_NUM				0x0552
 #define REG_DUAL_TSF_RST			0x0553
 #define REG_BCN_INTERVAL			0x0554
@@ -225,6 +224,7 @@
 #define REG_DRVERLYINT				0x0558
 #define REG_BCNDMATIM				0x0559
 #define REG_ATIMWND					0x055A
+#define REG_USTIME_TSF				0x055C
 #define REG_BCN_MAX_ERR				0x055D
 #define REG_RXTSF_OFFSET_CCK		0x055E
 #define REG_RXTSF_OFFSET_OFDM		0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8723be/reg.h +1 -1
index 03581d2a5da0..95c4f8e206c7 100644
@@ -261,7 +261,6 @@
 #define REG_RD_NAV_NXT				0x0544
 #define REG_NAV_PROT_LEN			0x0546
 #define REG_BCN_CTRL				0x0550
-#define REG_USTIME_TSF				0x0551
 #define REG_MBID_NUM				0x0552
 #define REG_DUAL_TSF_RST			0x0553
 #define REG_BCN_INTERVAL			0x0554
@@ -269,6 +268,7 @@
 #define REG_DRVERLYINT				0x0558
 #define REG_BCNDMATIM				0x0559
 #define REG_ATIMWND				0x055A
+#define REG_USTIME_TSF				0x055C
 #define REG_BCN_MAX_ERR				0x055D
 #define REG_RXTSF_OFFSET_CCK			0x055E
 #define REG_RXTSF_OFFSET_OFDM			0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/reg.h +1 -1
index ed69dbe178ff..db8bc8a2de61 100644
@@ -267,7 +267,6 @@
 #define REG_RD_NAV_NXT				0x0544
 #define REG_NAV_PROT_LEN			0x0546
 #define REG_BCN_CTRL				0x0550
-#define REG_USTIME_TSF				0x0551
 #define REG_MBID_NUM				0x0552
 #define REG_DUAL_TSF_RST			0x0553
 #define REG_BCN_INTERVAL			0x0554
@@ -275,6 +274,7 @@
 #define REG_DRVERLYINT				0x0558
 #define REG_BCNDMATIM				0x0559
 #define REG_ATIMWND				0x055A
+#define REG_USTIME_TSF				0x055C
 #define REG_BCN_MAX_ERR				0x055D
 #define REG_RXTSF_OFFSET_CCK			0x055E
 #define REG_RXTSF_OFFSET_OFDM			0x055F
#1 lore raw
Quoted 4 lines · Kevin Lo

The REG_USTIME_TSF (US Time Tuning for TSF) definition of Realtek chips should be 0x55C.

Larry, is this ok to take?

Signature · 3 lines
https://patchwork.kernel.org/patch/9737421/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

A message that is not in the archive (sent off-list or not yet received): CA+R5OdtxiN4XBZg3k-Suamj5r4+=jDY-10HdUCHuqb=Nt-baqg@mail.gmail.com

author
#3 lore raw

Sorry for the top post. This patch has an Acked-by Yan-Hsuan Chuang.

Quoted 141 lines · 莊彥宣

Yes, the register 0x55c is for REG_USTIME_TSF.
And 0x551 is for BCN_CTRL1.

2017-05-19 23:02 GMT+08:00 Kevin Lo <[email protected]>:

Quoted 133 lines

The REG_USTIME_TSF (US Time Tuning for TSF) definition of Realtek chips should be 0x55C.

---

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/reg.h +1 -1
index 15400ee6c04b..0c0d64aea651 100644
@@ -248,7 +248,6 @@
 #define REG_RD_NAV_NXT                         0x0544
 #define REG_NAV_PROT_LEN                       0x0546
 #define REG_BCN_CTRL                           0x0550
-#define REG_USTIME_TSF                         0x0551
 #define REG_MBID_NUM                           0x0552
 #define REG_DUAL_TSF_RST                       0x0553
 #define REG_BCN_INTERVAL                       0x0554
@@ -256,6 +255,7 @@
 #define REG_DRVERLYINT                         0x0558
 #define REG_BCNDMATIM                          0x0559
 #define REG_ATIMWND                                    0x055A
+#define REG_USTIME_TSF                         0x055C
 #define REG_BCN_MAX_ERR                                0x055D
 #define REG_RXTSF_OFFSET_CCK           0x055E
 #define REG_RXTSF_OFFSET_OFDM          0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/reg.h +1 -1
index 1bb7ed35812d..9e3b58a5d2bb 100644
@@ -227,7 +227,6 @@
 #define REG_RD_NAV_NXT                         0x0544
 #define REG_NAV_PROT_LEN                       0x0546
 #define REG_BCN_CTRL                           0x0550
-#define REG_USTIME_TSF                         0x0551
 #define REG_MBID_NUM                           0x0552
 #define REG_DUAL_TSF_RST                       0x0553
 #define REG_BCN_INTERVAL                       0x0554
@@ -235,6 +234,7 @@
 #define REG_DRVERLYINT                         0x0558
 #define REG_BCNDMATIM                          0x0559
 #define REG_ATIMWND                            0x055A
+#define REG_USTIME_TSF                         0x055C
 #define REG_BCN_MAX_ERR                                0x055D
 #define REG_RXTSF_OFFSET_CCK                   0x055E
 #define REG_RXTSF_OFFSET_OFDM                  0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8192de/reg.h +1 -1
index b354b95936e2..d4c4e76a9244 100644
@@ -255,7 +255,6 @@
 #define REG_RD_NAV_NXT                 0x0544
 #define REG_NAV_PROT_LEN               0x0546
 #define REG_BCN_CTRL                   0x0550
-#define REG_USTIME_TSF                 0x0551
 #define REG_MBID_NUM                   0x0552
 #define REG_DUAL_TSF_RST               0x0553
 #define REG_BCN_INTERVAL               0x0554
@@ -263,6 +262,7 @@
 #define REG_DRVERLYINT                 0x0558
 #define REG_BCNDMATIM                  0x0559
 #define REG_ATIMWND                    0x055A
+#define REG_USTIME_TSF                 0x055C
 #define REG_BCN_MAX_ERR                        0x055D
 #define REG_RXTSF_OFFSET_CCK           0x055E
 #define REG_RXTSF_OFFSET_OFDM          0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/reg.h +1 -1
index 306059f9b9cc..30938cd9fce5 100644
@@ -217,7 +217,6 @@
 #define REG_RD_NAV_NXT                         0x0544
 #define REG_NAV_PROT_LEN                       0x0546
 #define REG_BCN_CTRL                           0x0550
-#define REG_USTIME_TSF                         0x0551
 #define REG_MBID_NUM                           0x0552
 #define REG_DUAL_TSF_RST                       0x0553
 #define REG_BCN_INTERVAL                       0x0554
@@ -225,6 +224,7 @@
 #define REG_DRVERLYINT                         0x0558
 #define REG_BCNDMATIM                          0x0559
 #define REG_ATIMWND                                    0x055A
+#define REG_USTIME_TSF                         0x055C
 #define REG_BCN_MAX_ERR                                0x055D
 #define REG_RXTSF_OFFSET_CCK           0x055E
 #define REG_RXTSF_OFFSET_OFDM          0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8723be/reg.h +1 -1
index 03581d2a5da0..95c4f8e206c7 100644
@@ -261,7 +261,6 @@
 #define REG_RD_NAV_NXT                         0x0544
 #define REG_NAV_PROT_LEN                       0x0546
 #define REG_BCN_CTRL                           0x0550
-#define REG_USTIME_TSF                         0x0551
 #define REG_MBID_NUM                           0x0552
 #define REG_DUAL_TSF_RST                       0x0553
 #define REG_BCN_INTERVAL                       0x0554
@@ -269,6 +268,7 @@
 #define REG_DRVERLYINT                         0x0558
 #define REG_BCNDMATIM                          0x0559
 #define REG_ATIMWND                            0x055A
+#define REG_USTIME_TSF                         0x055C
 #define REG_BCN_MAX_ERR                                0x055D
 #define REG_RXTSF_OFFSET_CCK                   0x055E
 #define REG_RXTSF_OFFSET_OFDM                  0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/reg.h +1 -1
index ed69dbe178ff..db8bc8a2de61 100644
@@ -267,7 +267,6 @@
 #define REG_RD_NAV_NXT                         0x0544
 #define REG_NAV_PROT_LEN                       0x0546
 #define REG_BCN_CTRL                           0x0550
-#define REG_USTIME_TSF                         0x0551
 #define REG_MBID_NUM                           0x0552
 #define REG_DUAL_TSF_RST                       0x0553
 #define REG_BCN_INTERVAL                       0x0554
@@ -275,6 +274,7 @@
 #define REG_DRVERLYINT                         0x0558
 #define REG_BCNDMATIM                          0x0559
 #define REG_ATIMWND                            0x055A
+#define REG_USTIME_TSF                         0x055C
 #define REG_BCN_MAX_ERR                                0x055D
 #define REG_RXTSF_OFFSET_CCK                   0x055E
 #define REG_RXTSF_OFFSET_OFDM                  0x055F
#4 lore raw
Quoted 3 lines · Kevin Lo

Sorry for the top post. This patch has an Acked-by Yan-Hsuan Chuang.

On Wed, Jun 07, 2017 at 09:43:21AM +0800, =E8=8E=8A=E5=BD=A5=E5=AE=A3 wro=

te:

Quoted 8 lines
Quoted 8 lines

Yes, the register 0x55c is for REG_USTIME_TSF.
And 0x551 is for BCN_CTRL1.
=20
=20

=20
2017-05-19 23:02 GMT+08:00 Kevin Lo <[email protected]>:
=20

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

The REG_USTIME_TSF (US Time Tuning for TSF) definition of Realtek chips should be 0x55C.

I don't see Yan-Hsuan's ack on the mailing list (maybe it was dropped because of HTML?) and hence neither in patchwork:

https://patchwork.kernel.org/patch/9737421/

Yan-Hsuan or Larry, can you please resend the ack so that patchwork sees it?

--=20
Kalle Valo

author
#5 lore raw
Quoted 17 lines · Kalle Valo
Quoted 14 lines · Kevin Lo

Sorry for the top post. This patch has an Acked-by Yan-Hsuan Chuang.

Quoted 11 lines · 莊彥宣

Yes, the register 0x55c is for REG_USTIME_TSF.
And 0x551 is for BCN_CTRL1.

2017-05-19 23:02 GMT+08:00 Kevin Lo <[email protected]>:

Quoted 3 lines

The REG_USTIME_TSF (US Time Tuning for TSF) definition of Realtek chips should be 0x55C.

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

I don't see Yan-Hsuan's ack on the mailing list (maybe it was dropped because of HTML?) and hence neither in patchwork:

https://patchwork.kernel.org/patch/9737421/

Yan-Hsuan replied privately to me. I think he forgot to cc linux-wireless@.

Quoted 5 lines

Yan-Hsuan or Larry, can you please resend the ack so that patchwork sees it?

Signature · 1 line
Kalle Valo
#6 lore raw
In reply to Kevin Lo
Quoted 118 lines · Kevin Lo

The REG_USTIME_TSF (US Time Tuning for TSF) definition of Realtek chips should be 0x55C.

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/reg.h +1 -1
index 15400ee6c04b..0c0d64aea651 100644
@@ -248,7 +248,6 @@
 #define REG_RD_NAV_NXT				0x0544
 #define REG_NAV_PROT_LEN			0x0546
 #define REG_BCN_CTRL				0x0550
-#define REG_USTIME_TSF				0x0551
 #define REG_MBID_NUM				0x0552
 #define REG_DUAL_TSF_RST			0x0553
 #define REG_BCN_INTERVAL			0x0554
@@ -256,6 +255,7 @@
 #define REG_DRVERLYINT				0x0558
 #define REG_BCNDMATIM				0x0559
 #define REG_ATIMWND					0x055A
+#define REG_USTIME_TSF				0x055C
 #define REG_BCN_MAX_ERR				0x055D
 #define REG_RXTSF_OFFSET_CCK		0x055E
 #define REG_RXTSF_OFFSET_OFDM		0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8192ce/reg.h +1 -1
index 1bb7ed35812d..9e3b58a5d2bb 100644
@@ -227,7 +227,6 @@
 #define REG_RD_NAV_NXT				0x0544
 #define REG_NAV_PROT_LEN			0x0546
 #define REG_BCN_CTRL				0x0550
-#define REG_USTIME_TSF				0x0551
 #define REG_MBID_NUM				0x0552
 #define REG_DUAL_TSF_RST			0x0553
 #define REG_BCN_INTERVAL			0x0554
@@ -235,6 +234,7 @@
 #define REG_DRVERLYINT				0x0558
 #define REG_BCNDMATIM				0x0559
 #define REG_ATIMWND				0x055A
+#define REG_USTIME_TSF				0x055C
 #define REG_BCN_MAX_ERR				0x055D
 #define REG_RXTSF_OFFSET_CCK			0x055E
 #define REG_RXTSF_OFFSET_OFDM			0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8192de/reg.h +1 -1
index b354b95936e2..d4c4e76a9244 100644
@@ -255,7 +255,6 @@
 #define REG_RD_NAV_NXT			0x0544
 #define REG_NAV_PROT_LEN		0x0546
 #define REG_BCN_CTRL			0x0550
-#define REG_USTIME_TSF			0x0551
 #define REG_MBID_NUM			0x0552
 #define REG_DUAL_TSF_RST		0x0553
 #define REG_BCN_INTERVAL		0x0554
@@ -263,6 +262,7 @@
 #define REG_DRVERLYINT			0x0558
 #define REG_BCNDMATIM			0x0559
 #define REG_ATIMWND			0x055A
+#define REG_USTIME_TSF			0x055C
 #define REG_BCN_MAX_ERR			0x055D
 #define REG_RXTSF_OFFSET_CCK		0x055E
 #define REG_RXTSF_OFFSET_OFDM		0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/reg.h +1 -1
index 306059f9b9cc..30938cd9fce5 100644
@@ -217,7 +217,6 @@
 #define REG_RD_NAV_NXT				0x0544
 #define REG_NAV_PROT_LEN			0x0546
 #define REG_BCN_CTRL				0x0550
-#define REG_USTIME_TSF				0x0551
 #define REG_MBID_NUM				0x0552
 #define REG_DUAL_TSF_RST			0x0553
 #define REG_BCN_INTERVAL			0x0554
@@ -225,6 +224,7 @@
 #define REG_DRVERLYINT				0x0558
 #define REG_BCNDMATIM				0x0559
 #define REG_ATIMWND					0x055A
+#define REG_USTIME_TSF				0x055C
 #define REG_BCN_MAX_ERR				0x055D
 #define REG_RXTSF_OFFSET_CCK		0x055E
 #define REG_RXTSF_OFFSET_OFDM		0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8723be/reg.h +1 -1
index 03581d2a5da0..95c4f8e206c7 100644
@@ -261,7 +261,6 @@
 #define REG_RD_NAV_NXT				0x0544
 #define REG_NAV_PROT_LEN			0x0546
 #define REG_BCN_CTRL				0x0550
-#define REG_USTIME_TSF				0x0551
 #define REG_MBID_NUM				0x0552
 #define REG_DUAL_TSF_RST			0x0553
 #define REG_BCN_INTERVAL			0x0554
@@ -269,6 +268,7 @@
 #define REG_DRVERLYINT				0x0558
 #define REG_BCNDMATIM				0x0559
 #define REG_ATIMWND				0x055A
+#define REG_USTIME_TSF				0x055C
 #define REG_BCN_MAX_ERR				0x055D
 #define REG_RXTSF_OFFSET_CCK			0x055E
 #define REG_RXTSF_OFFSET_OFDM			0x055F
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/reg.h +0 -1
index ed69dbe178ff..db8bc8a2de61 100644
@@ -267,7 +267,6 @@
 #define REG_RD_NAV_NXT				0x0544
 #define REG_NAV_PROT_LEN			0x0546
 #define REG_BCN_CTRL				0x0550
-#define REG_USTIME_TSF				0x0551
 #define REG_MBID_NUM				0x0552
 #define REG_DUAL_TSF_RST			0x0553
 #define REG_BCN_INTERVAL			0x0554

drivers/net/wireless/realtek/rtlwifi/rtl8821ae/reg.h line 280

Quoted 7 lines
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/reg.h +1 -0
@@ -275,6 +274,7 @@
 #define REG_DRVERLYINT				0x0558
 #define REG_BCNDMATIM				0x0559
 #define REG_ATIMWND				0x055A
+#define REG_USTIME_TSF				0x055C
 #define REG_BCN_MAX_ERR				0x055D
 #define REG_RXTSF_OFFSET_CCK			0x055E
 #define REG_RXTSF_OFFSET_OFDM			0x055F

Patch applied to wireless-drivers-next.git, thanks.

9da96c5e7edd rtlwifi: fix REG_USTIME_TSF register definition

Signature · 3 lines
https://patchwork.kernel.org/patch/9737421/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches