@@ -246,16 +246,16 @@ static const struct ksz_drive_strength ksz9477_drive_strengths[] = {
246
246
{ SW_DRIVE_STRENGTH_28MA , 28000 },
247
247
};
248
248
249
- /* ksz8830_drive_strengths - Drive strength mapping for KSZ8830 , KSZ8873, ..
249
+ /* ksz88x3_drive_strengths - Drive strength mapping for KSZ8863 , KSZ8873, ..
250
250
* variants.
251
251
* This values are documented in KSZ8873 and KSZ8863 datasheets.
252
252
*/
253
- static const struct ksz_drive_strength ksz8830_drive_strengths [] = {
253
+ static const struct ksz_drive_strength ksz88x3_drive_strengths [] = {
254
254
{ 0 , 8000 },
255
255
{ KSZ8873_DRIVE_STRENGTH_16MA , 16000 },
256
256
};
257
257
258
- static void ksz8830_phylink_mac_config (struct phylink_config * config ,
258
+ static void ksz88x3_phylink_mac_config (struct phylink_config * config ,
259
259
unsigned int mode ,
260
260
const struct phylink_link_state * state );
261
261
static void ksz_phylink_mac_config (struct phylink_config * config ,
@@ -265,8 +265,8 @@ static void ksz_phylink_mac_link_down(struct phylink_config *config,
265
265
unsigned int mode ,
266
266
phy_interface_t interface );
267
267
268
- static const struct phylink_mac_ops ksz8830_phylink_mac_ops = {
269
- .mac_config = ksz8830_phylink_mac_config ,
268
+ static const struct phylink_mac_ops ksz88x3_phylink_mac_ops = {
269
+ .mac_config = ksz88x3_phylink_mac_config ,
270
270
.mac_link_down = ksz_phylink_mac_link_down ,
271
271
.mac_link_up = ksz8_phylink_mac_link_up ,
272
272
};
@@ -1442,8 +1442,8 @@ const struct ksz_chip_data ksz_switch_chips[] = {
1442
1442
.internal_phy = {true, true, true, true, false},
1443
1443
},
1444
1444
1445
- [KSZ8830 ] = {
1446
- .chip_id = KSZ8830_CHIP_ID ,
1445
+ [KSZ88X3 ] = {
1446
+ .chip_id = KSZ88X3_CHIP_ID ,
1447
1447
.dev_name = "KSZ8863/KSZ8873" ,
1448
1448
.num_vlans = 16 ,
1449
1449
.num_alus = 0 ,
@@ -1453,7 +1453,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
1453
1453
.num_tx_queues = 4 ,
1454
1454
.num_ipms = 4 ,
1455
1455
.ops = & ksz88xx_dev_ops ,
1456
- .phylink_mac_ops = & ksz8830_phylink_mac_ops ,
1456
+ .phylink_mac_ops = & ksz88x3_phylink_mac_ops ,
1457
1457
.mib_names = ksz88xx_mib_names ,
1458
1458
.mib_cnt = ARRAY_SIZE (ksz88xx_mib_names ),
1459
1459
.reg_mib_cnt = MIB_COUNTER_NUM ,
@@ -1487,7 +1487,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
1487
1487
.num_tx_queues = 4 ,
1488
1488
.num_ipms = 4 ,
1489
1489
.ops = & ksz88xx_dev_ops ,
1490
- .phylink_mac_ops = & ksz8830_phylink_mac_ops ,
1490
+ .phylink_mac_ops = & ksz88x3_phylink_mac_ops ,
1491
1491
.mib_names = ksz88xx_mib_names ,
1492
1492
.mib_cnt = ARRAY_SIZE (ksz88xx_mib_names ),
1493
1493
.reg_mib_cnt = MIB_COUNTER_NUM ,
@@ -1510,7 +1510,7 @@ const struct ksz_chip_data ksz_switch_chips[] = {
1510
1510
.num_tx_queues = 4 ,
1511
1511
.num_ipms = 4 ,
1512
1512
.ops = & ksz88xx_dev_ops ,
1513
- .phylink_mac_ops = & ksz8830_phylink_mac_ops ,
1513
+ .phylink_mac_ops = & ksz88x3_phylink_mac_ops ,
1514
1514
.mib_names = ksz88xx_mib_names ,
1515
1515
.mib_cnt = ARRAY_SIZE (ksz88xx_mib_names ),
1516
1516
.reg_mib_cnt = MIB_COUNTER_NUM ,
@@ -2724,7 +2724,7 @@ static u32 ksz_get_phy_flags(struct dsa_switch *ds, int port)
2724
2724
struct ksz_device * dev = ds -> priv ;
2725
2725
2726
2726
switch (dev -> chip_id ) {
2727
- case KSZ8830_CHIP_ID :
2727
+ case KSZ88X3_CHIP_ID :
2728
2728
/* Silicon Errata Sheet (DS80000830A):
2729
2729
* Port 1 does not work with LinkMD Cable-Testing.
2730
2730
* Port 1 does not respond to received PAUSE control frames.
@@ -3050,7 +3050,7 @@ static enum dsa_tag_protocol ksz_get_tag_protocol(struct dsa_switch *ds,
3050
3050
if (ksz_is_ksz87xx (dev ) || ksz_is_8895_family (dev ))
3051
3051
proto = DSA_TAG_PROTO_KSZ8795 ;
3052
3052
3053
- if (dev -> chip_id == KSZ8830_CHIP_ID ||
3053
+ if (dev -> chip_id == KSZ88X3_CHIP_ID ||
3054
3054
dev -> chip_id == KSZ8563_CHIP_ID ||
3055
3055
dev -> chip_id == KSZ9893_CHIP_ID ||
3056
3056
dev -> chip_id == KSZ9563_CHIP_ID )
@@ -3162,7 +3162,7 @@ static int ksz_max_mtu(struct dsa_switch *ds, int port)
3162
3162
case KSZ8794_CHIP_ID :
3163
3163
case KSZ8765_CHIP_ID :
3164
3164
return KSZ8795_HUGE_PACKET_SIZE - VLAN_ETH_HLEN - ETH_FCS_LEN ;
3165
- case KSZ8830_CHIP_ID :
3165
+ case KSZ88X3_CHIP_ID :
3166
3166
case KSZ8864_CHIP_ID :
3167
3167
case KSZ8895_CHIP_ID :
3168
3168
return KSZ8863_HUGE_PACKET_SIZE - VLAN_ETH_HLEN - ETH_FCS_LEN ;
@@ -3334,7 +3334,7 @@ phy_interface_t ksz_get_xmii(struct ksz_device *dev, int port, bool gbit)
3334
3334
return interface ;
3335
3335
}
3336
3336
3337
- static void ksz8830_phylink_mac_config (struct phylink_config * config ,
3337
+ static void ksz88x3_phylink_mac_config (struct phylink_config * config ,
3338
3338
unsigned int mode ,
3339
3339
const struct phylink_link_state * state )
3340
3340
{
@@ -3518,7 +3518,7 @@ static int ksz_switch_detect(struct ksz_device *dev)
3518
3518
break ;
3519
3519
case KSZ88_FAMILY_ID :
3520
3520
if (id2 == KSZ88_CHIP_ID_63 )
3521
- dev -> chip_id = KSZ8830_CHIP_ID ;
3521
+ dev -> chip_id = KSZ88X3_CHIP_ID ;
3522
3522
else
3523
3523
return - ENODEV ;
3524
3524
break ;
@@ -4592,24 +4592,24 @@ static int ksz9477_drive_strength_write(struct ksz_device *dev,
4592
4592
}
4593
4593
4594
4594
/**
4595
- * ksz8830_drive_strength_write () - Set the drive strength configuration for
4596
- * KSZ8830 compatible chip variants.
4595
+ * ksz88x3_drive_strength_write () - Set the drive strength configuration for
4596
+ * KSZ8863 compatible chip variants.
4597
4597
* @dev: ksz device
4598
4598
* @props: Array of drive strength properties to be set
4599
4599
* @num_props: Number of properties in the array
4600
4600
*
4601
- * This function applies the specified drive strength settings to KSZ8830 chip
4601
+ * This function applies the specified drive strength settings to KSZ88X3 chip
4602
4602
* variants (KSZ8873, KSZ8863).
4603
4603
* It ensures the configurations align with what the chip variant supports and
4604
4604
* warns or errors out on unsupported settings.
4605
4605
*
4606
4606
* Return: 0 on success, error code otherwise
4607
4607
*/
4608
- static int ksz8830_drive_strength_write (struct ksz_device * dev ,
4608
+ static int ksz88x3_drive_strength_write (struct ksz_device * dev ,
4609
4609
struct ksz_driver_strength_prop * props ,
4610
4610
int num_props )
4611
4611
{
4612
- size_t array_size = ARRAY_SIZE (ksz8830_drive_strengths );
4612
+ size_t array_size = ARRAY_SIZE (ksz88x3_drive_strengths );
4613
4613
int microamp ;
4614
4614
int i , ret ;
4615
4615
@@ -4622,10 +4622,10 @@ static int ksz8830_drive_strength_write(struct ksz_device *dev,
4622
4622
}
4623
4623
4624
4624
microamp = props [KSZ_DRIVER_STRENGTH_IO ].value ;
4625
- ret = ksz_drive_strength_to_reg (ksz8830_drive_strengths , array_size ,
4625
+ ret = ksz_drive_strength_to_reg (ksz88x3_drive_strengths , array_size ,
4626
4626
microamp );
4627
4627
if (ret < 0 ) {
4628
- ksz_drive_strength_error (dev , ksz8830_drive_strengths ,
4628
+ ksz_drive_strength_error (dev , ksz88x3_drive_strengths ,
4629
4629
array_size , microamp );
4630
4630
return ret ;
4631
4631
}
@@ -4685,8 +4685,8 @@ static int ksz_parse_drive_strength(struct ksz_device *dev)
4685
4685
return 0 ;
4686
4686
4687
4687
switch (dev -> chip_id ) {
4688
- case KSZ8830_CHIP_ID :
4689
- return ksz8830_drive_strength_write (dev , of_props ,
4688
+ case KSZ88X3_CHIP_ID :
4689
+ return ksz88x3_drive_strength_write (dev , of_props ,
4690
4690
ARRAY_SIZE (of_props ));
4691
4691
case KSZ8795_CHIP_ID :
4692
4692
case KSZ8794_CHIP_ID :
0 commit comments