Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B563C636CC for ; Mon, 13 Feb 2023 16:22:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229958AbjBMQWD (ORCPT ); Mon, 13 Feb 2023 11:22:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjBMQWB (ORCPT ); Mon, 13 Feb 2023 11:22:01 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 82468BB89; Mon, 13 Feb 2023 08:21:59 -0800 (PST) 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=exZcOddkjDu0HfW/hXM+k5G229KVfsjPaSImN5qfszY=; b=1ZuSCQD+LAy3QhTHF+TaB2g7QW HHqrvIogbHLNOzSIkqvHB2m+8UUQyN17R138T2XycxYdYwhOG1IrDku9xc4zJU3DUmCdyRkAcXhAO 4yp/fzPrsPO882EPf0iCmGadM10D7sOqlihU4j1RgdKsngz5202wimK//5FnhLdpoXMc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pRbaJ-004rRm-Es; Mon, 13 Feb 2023 17:21:43 +0100 Date: Mon, 13 Feb 2023 17:21:43 +0100 From: Andrew Lunn To: Alexander Lobakin Cc: wei.fang@nxp.com, shenwei.wang@nxp.com, xiaoning.wang@nxp.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, simon.horman@corigine.com, netdev@vger.kernel.org, linux-imx@nxp.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2 net-next] net: fec: add CBS offload support Message-ID: References: <20230213092912.2314029-1-wei.fang@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > + if (!speed) { > > + netdev_err(ndev, "Link speed is 0!\n"); > > ??? Is this possible? If so, why is it checked only here and why can it > be possible? The obvious way this happens is that there is no link partner, so auto-neg has not completed yet. The link speed is unknown. Andrew