Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp2837411rwi; Fri, 21 Oct 2022 08:27:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6p39v07rN9/valLJEAreIOxIcOMr9hp0CfOdzs4YvlbFYtWDcrFewkibLfs6hmfEcVylNg X-Received: by 2002:a17:902:7894:b0:178:bb0b:5740 with SMTP id q20-20020a170902789400b00178bb0b5740mr20453868pll.65.1666366051400; Fri, 21 Oct 2022 08:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666366051; cv=none; d=google.com; s=arc-20160816; b=Xm9dKqLTF8tfiDJ/mt6XjRIYuOnyRw3dkdGzYFnJGfS9zj0CcmxhSLA41wz7NX+1Vv TbjaoTEis2SxxJkGTUClZmNrT5NF7IyTBGSNYxoWkm6tHcdqVezChPrZeQmb1kth8xLp 0tDbpip1fz69XHxCLZSCJAop9d+XkYjoIsRaCX952+jDjT1Yvfr/73oAuI9+etk+bp9L XU12wUdOGuLbPmcwbdKvT7AEZu//kD24Eo1CZtvR/eXn92ObWzvnSMlHSlPckJ+qusc0 KScpiqy6dEoRIgh0Q7K47okzKh2lDb/vGpk2pvBDkNHiy1QJrJPqgQ/YYmf0BYuOKlPX eFjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=D9L9gWEpqVSBkoML8PsO+P3x7+AWH1EUh92SK7KY3pI=; b=U+Fr3kQr80DVA8swkjaYbeH3LJIyQRl7Zht6KopYYXm7R0BRas2ykG3A3G88AJ70wq WqNNWHwx8SGNaZhbR4D/3naGsj4Sjx4C+zvaKlZKEAK20HdfIJIuE8mc2qrMRM6W81d3 jjtJDQAWGQHXCKaM2Rf1ASbFD9Aogywlv1bfDFmv3Xab9P+uL+gaf/xLIJKpUdu6kBF2 O0w4s9fE0n864G1j8imr2zrQs0aZtmKTWjZ+9oIbdfDM7XE7EvB6zva8OTx6H+AyS4Bf gjHdnXC6Pg2NyLuQTLrPdan8MRSPgXQOv90Jkg5ih359OyqGTMPhIYexWBfgIHrwYDpk hOLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=49jIcLnM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bm6-20020a656e86000000b0044034f3a27bsi26225796pgb.101.2022.10.21.08.27.19; Fri, 21 Oct 2022 08:27:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=49jIcLnM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbiJUOkA (ORCPT + 99 others); Fri, 21 Oct 2022 10:40:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230351AbiJUOj4 (ORCPT ); Fri, 21 Oct 2022 10:39:56 -0400 Received: from vps0.lunn.ch (unknown [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28CEC4B0E1; Fri, 21 Oct 2022 07:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=D9L9gWEpqVSBkoML8PsO+P3x7+AWH1EUh92SK7KY3pI=; b=49jIcLnMiwuJE4tD9XSbawbmB/ FlTXGg0PNbhAHZtw7MLLHh7r4VhO/o6+PWH/z73jgqoIE0pY4PhHvueaHneuKFtTddu3hl5oK5iar AgDV+G9JDLgWMxdCjOqupEEib4aZOPKg5M3/yKyrTZC1oZUnwag5TOHtsK4gVgvEeudc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oltBU-000F8B-6x; Fri, 21 Oct 2022 16:39:40 +0200 Date: Fri, 21 Oct 2022 16:39:40 +0200 From: Andrew Lunn To: Maxime Chevallier Cc: davem@davemloft.net, Rob Herring , Krzysztof Kozlowski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com, Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Vladimir Oltean , Luka Perkov , Robert Marko Subject: Re: [PATCH net-next v5 2/5] net: ipqess: introduce the Qualcomm IPQESS driver Message-ID: References: <20221021124556.100445-1-maxime.chevallier@bootlin.com> <20221021124556.100445-3-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221021124556.100445-3-maxime.chevallier@bootlin.com> X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NEUTRAL,SPF_NEUTRAL, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > +static int ipqess_axi_remove(struct platform_device *pdev) > +{ > + const struct net_device *netdev = platform_get_drvdata(pdev); > + struct ipqess *ess = netdev_priv(netdev); > + > + ipqess_hw_stop(ess); > + unregister_netdev(ess->netdev); Should the unregister come first? What happens if the network stack tries to use the interface during/after ipqess_hw_stop()? It just seems like it would be safer to first unregister the interface, and then stop it? > +struct ipqess_tx_desc { > + __le16 len; > + __le16 svlan_tag; > + __le32 word1; > + __le32 addr; > + __le32 word3; > +} __aligned(16) __packed; > + > +struct ipqess_rx_desc { > + u16 rrd0; > + u16 rrd1; > + u16 rrd2; > + u16 rrd3; > + u16 rrd4; > + u16 rrd5; > + u16 rrd6; > + u16 rrd7; > +} __aligned(16) __packed; The TX descriptor is little endian, but the RX descriptor is host endian? Andrew