File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 117
117
RTL8366RB_STP_STATE((port), RTL8366RB_STP_MASK)
118
118
119
119
/* 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
122
122
/* 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
124
125
125
126
#define RTL8366RB_SMAR0 0x0070 /* bits 0..15 */
126
127
#define RTL8366RB_SMAR1 0x0071 /* bits 16..31 */
@@ -912,10 +913,10 @@ static int rtl8366rb_setup(struct dsa_switch *ds)
912
913
913
914
/* Enable CPU port with custom DSA tag 8899.
914
915
*
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
916
917
* the custom tag is turned off.
917
918
*/
918
- ret = regmap_update_bits (priv -> map , RTL8368RB_CPU_CTRL_REG ,
919
+ ret = regmap_update_bits (priv -> map , RTL8366RB_CPU_CTRL_REG ,
919
920
0xFFFF ,
920
921
BIT (priv -> cpu_port ));
921
922
if (ret )
You can’t perform that action at this time.
0 commit comments