From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D5B8E3655C4 for ; Sun, 26 Jul 2026 13:26:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785072396; cv=none; b=EcFOtbhUNIMTqhHEMrdDuYNDDbAzT4Sch8Q+jjlLB4hwYsu8HW/6ujaQjZWe+42MZsEtlWm9j8BwWn1ay2bYif6/3t3y/QGm+P8pErrLhkGLscFjy/stLP6UWIiGGknObYjft+NwoE59M0SIN+3XusiFB8xswl+LfBBTZUstDX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785072396; c=relaxed/simple; bh=ihoDJ696kVz8JcKwc2R5wo7CXL7TVJQtt7pxl9KegHk=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=WzPeFYUG1rUy7KJP/gartgyIZZ6aTiz0zdxImNJgpXi88FIfmEpfoRZYClfixjewQGo2vlPMtRBP2CEh5HfitzTrWtYocuOVmbS42OcMW/Fy0koAnMbNa/GmSpsEQPBIv0BhHNRbOdOhgBlQcTnKNuwA+Hmqf4tZ9U071b8/cfo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=J/dpjfGO; arc=none smtp.client-ip=209.85.214.179 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="J/dpjfGO" Received: by mail-pl1-f179.google.com with SMTP id d9443c01a7336-2ce7d2adef4so23515655ad.3 for ; Sun, 26 Jul 2026 06:26:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785072393; x=1785677193; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Pedwj7ip/TTN4l9zpA2Hv+d7tqQJ7Bsv4qn8F/T2XqY=; b=J/dpjfGODTfodmBgStCh/uKJK9RQASPL8G6tRyH5ZdbU2rT1rk7YVxJlCLKuiPwL8o VEngom8NHwGWd+GPxIvZp/EqVCk2FRqykuM+iMlYMq+vzKpMF0qa6KetXux4A4VinLuF wEd5hxkdUjvDjfMDJvjb1o3dZJSLgbbi+kgpq8MvuHWrZTE5eG3huK+o6DPM8bQ6KOht vV0+CgtBMk2gE/6YximRd1KWmpW25h60TpPOg2Pik+Wi/bHUauusKXTE2dugeChCFWgT s6gApxBTi8s+eqvm0ADvZWmwIqxgaUMh0RJMFwSMSHl4r5JFTTPMKwpTZMCoyeIEeCd7 g8Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785072393; x=1785677193; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Pedwj7ip/TTN4l9zpA2Hv+d7tqQJ7Bsv4qn8F/T2XqY=; b=hAcQQS5p+TnR5LdzhcAX3bW+3IHgM659Bha92THgKuLhbEn8dUGueYpYBnkSgYAhFL 19FAdwuMV7SL3siKELNJzQjeShnnron3UsAyk/fTBpdEtCFASqdK93VA9+jL3A19F95p K+dBhbkRO+XNsjpGajOSotR8MexIfs9klhhiiL2BiTicETlV5vNz8ZDBfjmcW8i8VWbJ O/3ydfkhok6bTqdEbk0CQBGTZ68q2LZHK1+vQ8yUjMmAJ3nEdYZkIh1SVOLs/FlBLzYo 07JYu+P6P4ximK2eKRyhuUnAJjQaZXORyqHtuPO4Sd8fYduRwihMKafTN/rjWQYdAtLh SG6g== X-Forwarded-Encrypted: i=1; AHgh+RqCa4kPgPyTuoUELIzQecV1PfM62VaXiSaSY0r1QCRkBSijC+AxfaLb+xBsLisx0Mj8A8wpj3r/N7kT/P0=@vger.kernel.org X-Gm-Message-State: AOJu0Yxh2nUpNOZUCKS4ifkqJpX9j2huPtRh2Anyew34xUBr9lyXeJGW c9mOXmf/1kJsmbsjiL8pp0PTOmDbR6YsAF48IiTTsjffchAB68i+rlyI X-Gm-Gg: AR+sD1129o7COXOFyffkK0HpXL5GtCOjdkJ6kO09yj6sWdMkTkoB+zc/OdHTOUNJFub my4k4LWQJc/0JpcxYN4Bg4QO6X88GLl4YSxL7r68u9ylk3YEC/xsFjXkm0fcNLr4OtG1pHFXpqA ltHOKeM+nyw0hqHGkbjbO64NyKbfDxm9BmbbS9EJkG6D5pOreJfdV+fkc+0yh6cGalno67xEw1T QO573zje3EbHQs+OQ+lycuxP5sBKBNrXRay2zKxpPkUOmyV7NQbGWbp3aLdfrKK9cwzwco4UTNx P1MgKx4vSA1JIiDEHOY1AriCAqEJVmfFvGeTkgrUJoj5SONsCjh/S0s5esyFi3/d0UzX48Ozq0u qptF02L7NjevN3KWTN7fLUpb2r6r8ANBgp15VyrDlizwSMGqShu3n5MfX0SDRHZhnRIpYSp7+Rw y9 X-Received: by 2002:a17:903:b0d:b0:2ca:4f33:e86f with SMTP id d9443c01a7336-2cfde7ae37cmr48204445ad.12.1785072392719; Sun, 26 Jul 2026 06:26:32 -0700 (PDT) Received: from server227.. ([39.170.101.209]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2cfde7bbdc2sm20677655ad.42.2026.07.26.06.26.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Jul 2026 06:26:32 -0700 (PDT) From: Zxyan Zhu To: netdev@vger.kernel.org Cc: Andrew Lunn , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , Alexandre Torgue , Russell King , Russell King , Maxime Chevallier , Serge Semin , Romain Gantois , Hariprasad Kelam , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Zxyan Zhu Subject: [PATCH net-next v2 0/2] net: stmmac: Fix PHY attach when custom PCS is in use Date: Sun, 26 Jul 2026 21:26:16 +0800 Message-Id: <20260726132618.3580612-1-zxyan0222@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series fixes the issue where stmmac platforms using a custom PCS via the pcs_init callback fail to probe when no phy-handle is specified in the device tree. Patch 1 is Russell King's phylink patch that relaxes phylink_expects_phy() to allow PHYs to be attached in 802.3z inband mode. Patch 2 skips the PHY attach in stmmac when a custom PCS is already configured via priv->hw->phylink_pcs, avoiding the "no phy found" error for platforms that manage link state entirely through the PCS. v2: - Include Russell's phylink patch as prerequisite (Patch 1) - This is now a 2-patch series targeting net-next Russell King (Oracle) (1): net: phylink: allow PHYs to be attached in 802.3z inband mode Zxyan Zhu (1): net: stmmac: Skip PHY attach if custom PCS is in use drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 ++++ drivers/net/phy/phylink.c | 8 ++------ 2 files changed, 6 insertions(+), 6 deletions(-) -- 2.34.1