[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+FuTSecj3FYGd5xnybgNFH7ndceLu9Orsa9O4RFp0U5bpNy7w@mail.gmail.com>
Date: Mon, 1 Jul 2019 11:12:06 -0400
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: Antoine Tenart <antoine.tenart@...tlin.com>
Cc: David Miller <davem@...emloft.net>,
Richard Cochran <richardcochran@...il.com>,
alexandre.belloni@...tlin.com, UNGLinuxDriver@...rochip.com,
ralf@...ux-mips.org, paul.burton@...s.com, jhogan@...nel.org,
Network Development <netdev@...r.kernel.org>,
linux-mips@...r.kernel.org, thomas.petazzoni@...tlin.com,
allan.nielsen@...rochip.com
Subject: Re: [PATCH net-next 8/8] net: mscc: PTP Hardware Clock (PHC) support
On Mon, Jul 1, 2019 at 6:05 AM Antoine Tenart
<antoine.tenart@...tlin.com> wrote:
>
> This patch adds support for PTP Hardware Clock (PHC) to the Ocelot
> switch for both PTP 1-step and 2-step modes.
>
> Signed-off-by: Antoine Tenart <antoine.tenart@...tlin.com>
> void ocelot_deinit(struct ocelot *ocelot)
> {
> + struct ocelot_port *port;
> + struct ocelot_skb *entry;
> + struct list_head *pos;
> + int i;
> +
> destroy_workqueue(ocelot->stats_queue);
> mutex_destroy(&ocelot->stats_lock);
> ocelot_ace_deinit();
> +
> + for (i = 0; i < ocelot->num_phys_ports; i++) {
> + port = ocelot->ports[i];
> +
> + list_for_each(pos, &port->skbs) {
> + entry = list_entry(pos, struct ocelot_skb, head);
> +
> + list_del(pos);
list_for_each_safe
> + kfree(entry);
> + }
> + }
> }
> EXPORT_SYMBOL(ocelot_deinit);
Powered by blists - more mailing lists