ocelot.c (f6fe01d6fa24dd3c89996ad82780872441e86bfa) | ocelot.c (a4ae997adcbdf8ead133bafa5e9e2d6925c576b6) |
---|---|
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/if_bridge.h> 8#include <soc/mscc/ocelot_vcap.h> --- 1610 unchanged lines hidden (view full) --- 1619 for (i = 0; i < 16; i++) 1620 ocelot_write_rix(ocelot, ANA_CPUQ_8021_CFG_CPUQ_GARP_VAL(6) | 1621 ANA_CPUQ_8021_CFG_CPUQ_BPDU_VAL(6), 1622 ANA_CPUQ_8021_CFG, i); 1623 1624 INIT_DELAYED_WORK(&ocelot->stats_work, ocelot_check_stats_work); 1625 queue_delayed_work(ocelot->stats_queue, &ocelot->stats_work, 1626 OCELOT_STATS_CHECK_DELAY); | 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/if_bridge.h> 8#include <soc/mscc/ocelot_vcap.h> --- 1610 unchanged lines hidden (view full) --- 1619 for (i = 0; i < 16; i++) 1620 ocelot_write_rix(ocelot, ANA_CPUQ_8021_CFG_CPUQ_GARP_VAL(6) | 1621 ANA_CPUQ_8021_CFG_CPUQ_BPDU_VAL(6), 1622 ANA_CPUQ_8021_CFG, i); 1623 1624 INIT_DELAYED_WORK(&ocelot->stats_work, ocelot_check_stats_work); 1625 queue_delayed_work(ocelot->stats_queue, &ocelot->stats_work, 1626 OCELOT_STATS_CHECK_DELAY); |
1627 ocelot_watermark_init(ocelot); |
|
1627 1628 return 0; 1629} 1630EXPORT_SYMBOL(ocelot_init); 1631 1632void ocelot_deinit(struct ocelot *ocelot) 1633{ 1634 cancel_delayed_work(&ocelot->stats_work); --- 15 unchanged lines hidden --- | 1628 1629 return 0; 1630} 1631EXPORT_SYMBOL(ocelot_init); 1632 1633void ocelot_deinit(struct ocelot *ocelot) 1634{ 1635 cancel_delayed_work(&ocelot->stats_work); --- 15 unchanged lines hidden --- |