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 C84AAC74A5B for ; Fri, 17 Mar 2023 20:02:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229940AbjCQUC5 (ORCPT ); Fri, 17 Mar 2023 16:02:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjCQUCz (ORCPT ); Fri, 17 Mar 2023 16:02:55 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65510C562C; Fri, 17 Mar 2023 13:02:54 -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=hjoCaoMyVwfgWhD4Puq2LxQCA6EVw2Wv3xpe0y2HjhU=; b=VvMDgXSWSuISs5SyCvjp+lODMu QqCrLOmqRKDsGdp2VWRP0XhGosjp0gk1Lla1MRRpO5WQVdw/xQ+l59VfBCAQwkjOR4in31O5/QLJC ZJQ5Ypl0AqdPgvpwTY56U1qi7FV2qUr4OImCXjmZIJAnDOJBk8WnsS/KZlij+tr01sqs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pdGHi-007eEh-Qs; Fri, 17 Mar 2023 21:02:42 +0100 Date: Fri, 17 Mar 2023 21:02:42 +0100 From: Andrew Lunn To: Michael Sit Wei Hong Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Ong Boon Leong , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Looi Hong Aun , Voon Weifeng , Lai Peter Jun Ann Subject: Re: [PATCH net v2 2/2] net: stmmac: move fixed-link support fixup code Message-ID: <166f45dc-c27e-41fd-aa82-bad696f32184@lunn.ch> References: <20230314070208.3703963-1-michael.wei.hong.sit@intel.com> <20230314070208.3703963-3-michael.wei.hong.sit@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230314070208.3703963-3-michael.wei.hong.sit@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 14, 2023 at 03:02:08PM +0800, Michael Sit Wei Hong wrote: > xpcs_an_inband value is updated in the speed_mode_2500 function > which turns on the xpcs_an_inband mode. > > Moving the fixed-link fixup code to right before phylink setup to > ensure no more fixup will affect the fixed-link mode configurations. Please could you explain why this is correct, when you could simple not set priv->plat->mdio_bus_data->xpcs_an_inband = true; in intel_speed_mode_2500()? This all seems like hacks, rather than a clean design. Andrew