ocelot.c (0568c3bf3f34ad2f86e6b2dfaa0855aad9c1c562) | ocelot.c (23e2c506ad6c588b469e3d06cc20299434440d02) |
---|---|
1// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2/* 3 * Microsemi Ocelot Switch driver 4 * 5 * Copyright (c) 2017 Microsemi Corporation 6 */ 7#include <linux/dsa/ocelot.h> 8#include <linux/if_bridge.h> --- 2338 unchanged lines hidden (view full) --- 2347 INIT_LIST_HEAD(&ocelot->pgids); 2348 INIT_LIST_HEAD(&ocelot->vlans); 2349 ocelot_detect_features(ocelot); 2350 ocelot_mact_init(ocelot); 2351 ocelot_vlan_init(ocelot); 2352 ocelot_vcap_init(ocelot); 2353 ocelot_cpu_port_init(ocelot); 2354 | 1// SPDX-License-Identifier: (GPL-2.0 OR MIT) 2/* 3 * Microsemi Ocelot Switch driver 4 * 5 * Copyright (c) 2017 Microsemi Corporation 6 */ 7#include <linux/dsa/ocelot.h> 8#include <linux/if_bridge.h> --- 2338 unchanged lines hidden (view full) --- 2347 INIT_LIST_HEAD(&ocelot->pgids); 2348 INIT_LIST_HEAD(&ocelot->vlans); 2349 ocelot_detect_features(ocelot); 2350 ocelot_mact_init(ocelot); 2351 ocelot_vlan_init(ocelot); 2352 ocelot_vcap_init(ocelot); 2353 ocelot_cpu_port_init(ocelot); 2354 |
2355 if (ocelot->ops->psfp_init) 2356 ocelot->ops->psfp_init(ocelot); 2357 |
|
2355 for (port = 0; port < ocelot->num_phys_ports; port++) { 2356 /* Clear all counters (5 groups) */ 2357 ocelot_write(ocelot, SYS_STAT_CFG_STAT_VIEW(port) | 2358 SYS_STAT_CFG_STAT_CLEAR_SHOT(0x7f), 2359 SYS_STAT_CFG); 2360 } 2361 2362 /* Only use S-Tag */ --- 114 unchanged lines hidden --- | 2358 for (port = 0; port < ocelot->num_phys_ports; port++) { 2359 /* Clear all counters (5 groups) */ 2360 ocelot_write(ocelot, SYS_STAT_CFG_STAT_VIEW(port) | 2361 SYS_STAT_CFG_STAT_CLEAR_SHOT(0x7f), 2362 SYS_STAT_CFG); 2363 } 2364 2365 /* Only use S-Tag */ --- 114 unchanged lines hidden --- |