Skip to content

Commit 2507f04

Browse files
linuswNipaLocal
authored andcommitted
net: dsa: realtek: Rename bogus RTL8368S variable
Rename the register name to RTL8366RB instead of the bogus RTL8368S (internal product name?) Signed-off-by: Linus Walleij <[email protected]> Reviewed-by: Alvin Šipraga <[email protected]> Reviewed-by: Luiz Angelo Daros de Luca <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 1765b90 commit 2507f04

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

drivers/net/dsa/realtek/rtl8366rb.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,11 @@
117117
RTL8366RB_STP_STATE((port), RTL8366RB_STP_MASK)
118118

119119
/* CPU port control reg */
120-
#define RTL8368RB_CPU_CTRL_REG 0x0061
121-
#define RTL8368RB_CPU_PORTS_MSK 0x00FF
120+
#define RTL8366RB_CPU_CTRL_REG 0x0061
121+
#define RTL8366RB_CPU_PORTS_MSK 0x00FF
122122
/* Disables inserting custom tag length/type 0x8899 */
123-
#define RTL8368RB_CPU_NO_TAG BIT(15)
123+
#define RTL8366RB_CPU_NO_TAG BIT(15)
124+
#define RTL8366RB_CPU_TAG_SIZE 4
124125

125126
#define RTL8366RB_SMAR0 0x0070 /* bits 0..15 */
126127
#define RTL8366RB_SMAR1 0x0071 /* bits 16..31 */
@@ -912,10 +913,10 @@ static int rtl8366rb_setup(struct dsa_switch *ds)
912913

913914
/* Enable CPU port with custom DSA tag 8899.
914915
*
915-
* If you set RTL8368RB_CPU_NO_TAG (bit 15) in this registers
916+
* If you set RTL8366RB_CPU_NO_TAG (bit 15) in this register
916917
* the custom tag is turned off.
917918
*/
918-
ret = regmap_update_bits(priv->map, RTL8368RB_CPU_CTRL_REG,
919+
ret = regmap_update_bits(priv->map, RTL8366RB_CPU_CTRL_REG,
919920
0xFFFF,
920921
BIT(priv->cpu_port));
921922
if (ret)

0 commit comments

Comments
 (0)