felix.c (a7096915e4276fff6905a8eff89986ef9704bbe7) felix.c (d19741b0f54487cf3a11307900f8633935cd2849)
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright 2019 NXP Semiconductors
3 *
4 * This is an umbrella module for all network switches that are
5 * register-compatible with Ocelot and that perform I/O to their host CPU
6 * through an NPI (Node Processor Interface) Ethernet port.
7 */
8#include <uapi/linux/if_bridge.h>

--- 595 unchanged lines hidden (view full) ---

604}
605
606static void felix_teardown(struct dsa_switch *ds)
607{
608 struct ocelot *ocelot = ds->priv;
609 struct felix *felix = ocelot_to_felix(ocelot);
610 int port;
611
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright 2019 NXP Semiconductors
3 *
4 * This is an umbrella module for all network switches that are
5 * register-compatible with Ocelot and that perform I/O to their host CPU
6 * through an NPI (Node Processor Interface) Ethernet port.
7 */
8#include <uapi/linux/if_bridge.h>

--- 595 unchanged lines hidden (view full) ---

604}
605
606static void felix_teardown(struct dsa_switch *ds)
607{
608 struct ocelot *ocelot = ds->priv;
609 struct felix *felix = ocelot_to_felix(ocelot);
610 int port;
611
612 if (felix->info->mdio_bus_free)
613 felix->info->mdio_bus_free(ocelot);
612 ocelot_deinit_timestamp(ocelot);
613 ocelot_deinit(ocelot);
614
615 for (port = 0; port < ocelot->num_phys_ports; port++)
616 ocelot_deinit_port(ocelot, port);
614
615 for (port = 0; port < ocelot->num_phys_ports; port++)
616 ocelot_deinit_port(ocelot, port);
617 ocelot_deinit_timestamp(ocelot);
618 /* stop workqueue thread */
619 ocelot_deinit(ocelot);
617
618 if (felix->info->mdio_bus_free)
619 felix->info->mdio_bus_free(ocelot);
620}
621
622static int felix_hwtstamp_get(struct dsa_switch *ds, int port,
623 struct ifreq *ifr)
624{
625 struct ocelot *ocelot = ds->priv;
626
627 return ocelot_hwstamp_get(ocelot, port, ifr);

--- 186 unchanged lines hidden ---
620}
621
622static int felix_hwtstamp_get(struct dsa_switch *ds, int port,
623 struct ifreq *ifr)
624{
625 struct ocelot *ocelot = ds->priv;
626
627 return ocelot_hwstamp_get(ocelot, port, ifr);

--- 186 unchanged lines hidden ---