--- a/drivers/net/phy/b53/b53_common.c +++ b/drivers/net/phy/b53/b53_common.c @@ -1372,6 +1372,14 @@ /* cpu port is always last */ sw_dev->ports = sw_dev->cpu_port + 1; +#ifdef CONFIG_CAVIUM_OCTEON_SOC + if (dev->chip_id == BCM53125_DEVICE_ID) { + /* CISCO RV042G */ + sw_dev->cpu_port = 5; + sw_dev->ports = 9; + dev->enabled_ports = 0x11f; + } +#endif dev->enabled_ports |= BIT(sw_dev->cpu_port); dev->ports = devm_kzalloc(dev->dev,