From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0829FC5B57D for ; Fri, 5 Jul 2019 07:47:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CD1F4218A3 for ; Fri, 5 Jul 2019 07:47:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727506AbfGEHrI (ORCPT ); Fri, 5 Jul 2019 03:47:08 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:53221 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725863AbfGEHrI (ORCPT ); Fri, 5 Jul 2019 03:47:08 -0400 X-Originating-IP: 86.250.200.211 Received: from localhost (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: antoine.tenart@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id E224AE0006; Fri, 5 Jul 2019 07:47:01 +0000 (UTC) Date: Fri, 5 Jul 2019 09:47:01 +0200 From: Antoine Tenart To: Willem de Bruijn Cc: Antoine Tenart , David Miller , Richard Cochran , alexandre.belloni@bootlin.com, UNGLinuxDriver@microchip.com, ralf@linux-mips.org, paul.burton@mips.com, jhogan@kernel.org, Network Development , linux-mips@vger.kernel.org, thomas.petazzoni@bootlin.com, allan.nielsen@microchip.com Subject: Re: [PATCH net-next 8/8] net: mscc: PTP Hardware Clock (PHC) support Message-ID: <20190705074701.GA3926@kwain> References: <20190701100327.6425-1-antoine.tenart@bootlin.com> <20190701100327.6425-9-antoine.tenart@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.12.0 (2019-05-25) Sender: linux-mips-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Hello Willem, On Mon, Jul 01, 2019 at 11:12:06AM -0400, Willem de Bruijn wrote: > On Mon, Jul 1, 2019 at 6:05 AM Antoine Tenart > wrote: > > > 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 Right, I'll fix this for v2. Thanks! Antoine -- Antoine Ténart, Bootlin Embedded Linux and Kernel engineering https://bootlin.com