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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64756C4332F for ; Wed, 9 Nov 2022 17:02:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231503AbiKIRCp (ORCPT ); Wed, 9 Nov 2022 12:02:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229967AbiKIRBQ (ORCPT ); Wed, 9 Nov 2022 12:01:16 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EC1F248C8; Wed, 9 Nov 2022 08:59:44 -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=JyqzWiwPZfcvvZni8B+6LuoQxAl6mxqRVFKIRB4evYw=; b=XCZfr5gYSakAuB33bcK/AaWnAP ilf0qpLSv5aDrz4rmJidxHx30jKKdet5IiSHM1oBn9B2vhmedbVo4D1LR3VSmfX42Wd41hx5y2HxF xZfo++vNAJZZ8jKJFZq1xUfq2CsJlO1Umqy1OUPbhKtPExq+s2865l9sGgwwwITP4p1Q=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1osoPh-001vqB-6F; Wed, 09 Nov 2022 17:58:57 +0100 Date: Wed, 9 Nov 2022 17:58:57 +0100 From: Andrew Lunn To: Noor Azura Ahmad Tarmizi Cc: "David S . Miller" , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Muhammad Husaini Zulkifli , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Voon Weifeng , Tan Tee Min , Looi Hong Aun , Noor Azura Ahmad Tarmizi Subject: Re: [PATCH net 1/1] net: stmmac: add check for supported link mode before mode change Message-ID: References: <20221109024329.15805-1-noor.azura.ahmad.tarmizi@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221109024329.15805-1-noor.azura.ahmad.tarmizi@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 09, 2022 at 10:43:29AM +0800, Noor Azura Ahmad Tarmizi wrote: > From: Noor Azura Ahmad Tarmizi > > Currently, change for unsupported speed and duplex are sent to the phy, > rendering the link to unknown speed (link state down). Something does not seem correct. See: https://elixir.bootlin.com/linux/v6.1-rc4/source/drivers/net/phy/phy.c#L816 /* We make sure that we don't pass unsupported values in to the PHY */ linkmode_and(advertising, advertising, phydev->supported); Do you somehow have phydev->supported set wrong? Andrew