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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 05AD5C6FD1D for ; Thu, 30 Mar 2023 09:16:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uZtne6bC2BzX1Uw4LD8yVpxhb0nwH4ZyZkDQx46pNiA=; b=AI4RfIu+r9ZW/e Ed4pVir6y4Ncdh70MjndwTW+XrFv8urjSPzku5zGXnzTHfmijpn1AZMbJECng6o4OhPbI43RbD7DY 5496HpIvtfvL0M9AfbDBI21wnbe2nIZoTQTA0Z7ZPbLKqXm0sGroNdCLXQrj6sSuSJzU93r8H21Yu ID5q5HfNdIDKrm5ymRgToJywlnTnF+CA3ZNPlIFXt4PpqN00U+lvUXc+O9mN3JCVEx9JNEdq4ylyO UdLuuKkjfuZqZWeZkoByEcTIr31x6rKzv7FWw1w6iJMj8HN5+hPJLImbK/WISYea7K4WIGPPBUU0o t+si9l7RDXbtg2HU8+FQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1phoNB-003E0N-1v; Thu, 30 Mar 2023 09:15:09 +0000 Received: from mga18.intel.com ([134.134.136.126]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1phoN8-003DzC-2U for linux-arm-kernel@lists.infradead.org; Thu, 30 Mar 2023 09:15:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680167706; x=1711703706; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=g22zFmNySSWgZmeT+/AthuzFeH0QQevQ7c24N5MEm5U=; b=h5Q0lutJly1njaFK39Mtj2/k+Kd5KZL0bT8JSokznTRlogquNkgsf3eL rbIakenYjVEBRewvS0ScSMIOOzbbIujM6iRk31/RgJDH6W0+D/GzU+GCd 6q4WACBonOuiKb2yrPFUC9Ns/+iJiHFpcBV8BO21U8yMy9FyQaKKkUYNO quH0RzfkToB33xF7Giy7j/PuqPS4BOmdZq4G55YHuMeNZksJ29Y+QwpC+ Y3C1NGUw/oHLrc1XTh68P2JeUXqWfk1UEdHI7eONEwTesTh2GIwtHtIQc K28ZXL3TlIw9AmUYc7yDMhmwYqIA5TowtNxkVMUnCieQOnMKNU033Q8+v A==; X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="325038858" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="325038858" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Mar 2023 02:15:03 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10664"; a="678125351" X-IronPort-AV: E=Sophos;i="5.98,303,1673942400"; d="scan'208";a="678125351" Received: from mike-ilbpg1.png.intel.com ([10.88.227.76]) by orsmga007.jf.intel.com with ESMTP; 30 Mar 2023 02:14:47 -0700 From: Michael Sit Wei Hong To: 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, linux@armlinux.org.uk, hkallweit1@gmail.com, andrew@lunn.ch Cc: Looi Hong Aun , Voon Weifeng , Lai Peter Jun Ann Subject: [PATCH net v5 0/3] Fix PHY handle no longer parsing Date: Thu, 30 Mar 2023 17:14:01 +0800 Message-Id: <20230330091404.3293431-1-michael.wei.hong.sit@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230330_021506_888884_BD884438 X-CRM114-Status: GOOD ( 10.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org After the fixed link support was introduced, it is observed that PHY no longer attach to the MAC properly. So we introduce a helper function to determine if the MAC should expect to connect to a PHY and proceed accordingly. Michael Sit Wei Hong (3): net: phylink: add phylink_expects_phy() method net: stmmac: check if MAC needs to attach to a PHY net: stmmac: remove redundant fixup to support fixed-link mode .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 1 - .../net/ethernet/stmicro/stmmac/stmmac_main.c | 4 +++- drivers/net/phy/phylink.c | 19 +++++++++++++++++++ include/linux/phylink.h | 1 + 4 files changed, 23 insertions(+), 2 deletions(-) v2: Initialize fwnode before using the variable v3: Introduced phylink_expects_phy() method as suggested by Russell King remove xpcs_an_inband fixup instead of moving the fixed-link check as suggested by Andrew Lunn v4: Modify phylink_expects_phy() to check for more complete set of conditions when no PHY is needed and return false if met. v5: Enhance phylink_expects_phy() description. -- 2.34.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel