Article View: linux.kernel.netdev
Article #19153Re: [PATCH net-next v3] net: phy: motorcomm: add YT8831 2.5G PHY support
From: Andrew Lunn
Date: Thu, 19 Nov 2026 13:14
Date: Thu, 19 Nov 2026 13:14
40 lines
10116 bytes
10116 bytes
On Thu, Nov 19, 2026 at 05:56:45AM +0000, Frank.sae wrote: > > Please break the patch up. Add basic support as a patch, then > > downshift and WoL as additional patches. > > > > The WoL code looks wrong, i don't see any calls to > > device_may_wakeup(), device_set_wakeup_capable() etc. > > > > What exactly is AUTO_BX2500_SGMII and how does it differ from SGMII? > > Hi Andrew, > > Thanks for your review. > > I have split the submission: > This v4 only contains basic YT8831 PHY support. > Downshift is not implemented for YT8831 at this time. > WoL support is removed from this series; I will fix the wakeup API handling > (device_set_wakeup_capable() / device_may_wakeup()) and send WoL as a separate follow-up patch later. > > AUTO_BX2500_SGMII is YT8831 chip-specific mode: > When operating in AUTO_BX2500_SGMII mode, the YT8831 adjusts the PHY media side to 2500-BaseX or SGMII based on the connection speed on the PHY UTP side. > 1. Media: 2500BX – UTP: 2.5G > 2. Media: SGMII – UTP: 1000M/100M/10M > Differnece from SGMII is it also includes the 2500-BaseX mode, which is switched automatically. Ah, O.K. Most multi-gige PHYs do this. Basically there are two different ways it can work: * The host side changes with the media side. When the link goes up, read_settings needs to set phydev->interface. See mv3310_update_interface() as an example. * The PHY performs rate adaptation. The host side runs at a fixed speed, e.g. 2500BaseX. The PHY then rebuilds the frames it gets from the MAC, buffers them, and then sends them out the media at the speed negotiated. Pause frames are used to slow down the MAC so the buffers in the PHY don't overflow. Andrew
Technical Details
Message-ID:
<5781d5a7-68e8-4837-8eb2-c47ec2f75507@lunn.ch>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367020-linux-kernel-netdev=dewy.ruReferences:
<20261118033539.36633-1-frank.sae@motor-comm.com> <20261119055645.653216-1-frank.sae@motor-comm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!feeder1.feed.ams11.usenet.farm!feed.usenet.farm!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!feeder.usenetexpress.com!tr3.eu1.usenetexpress.com!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367020-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v3] net: phy: motorcomm: add YT8831 2.5G PHY support Date: Thu, 19 Nov 2026 14:14:16 +0100 Organization: Usenet Network Message-ID: <5781d5a7-68e8-4837-8eb2-c47ec2f75507@lunn.ch> References: <20261118033539.36633-1-frank.sae@motor-comm.com> <20261119055645.653216-1-frank.sae@motor-comm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2879026"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:+EkwlFr/sgpmWFxV9VjtKfrHG2Y= sha256:MQvYeKpTkSX2NUiWunOrhCe+9atWnNsu1jFIU4Z2Tsg= sha1:KEeFLqNa+LLwN+OU671TK5k3uUU= sha256:BDtX4FxeRzqCrWAaumqZbN6DrA0IOM1CTHJg/BJc6Sc= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 97ADD115651; Thu, 19 Nov 2026 16:14:56 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.05 X-Spam-Status: No, score=-3.05 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AHHrSXgvT9P4; Thu, 19 Nov 2026 16:14:52 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-367020-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 0C425115647; Thu, 19 Nov 2026 16:14:41 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 8F522E6566; Thu, 19 Nov 2026 13:14:38 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795094078; b=gnpSoIdLM+nHv90heYqMYn6phAkyaZdX7j/efuvV5We+JRU/aPXtyTrrXLJvkPjpTIa5 bRbuTKG9CNN9m3vvMcCnH/XK2dYYGBmUV+qszWFNNTWVHCeo/DJdySgDCW5dFyB54bB3A dnATYf1u1dtFoZkYIMJs8qT3a3kY7LooqMod1J7cxKvQXcWPpcGabfE/4raypzlZ0KJPN S3/1ZalXvx5HNluv8h5C1tX7zxGRpPAmfyxUGgz8xYy3i0IcJ85AGiWc3MyUCHfbdHfwM l/nDq3+jep3aDI26xPj5nbpizKBGkBu4AoNETDNJEiET16IpPWhUsaq5SXWOLVlIaBw== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795094078; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=+T9GIvpqxX7q3vG3lIDHXBshm0K+se9i7/mbf4e1L1o=; b=dvpcxTzNnwdHHI2hlxWRsvJphZP/YoT5HMsxNzx+8cpYX3YfFbTQh3X0K4MEiieVgGGR PBRj44uyZbjTvyrmnteXF0KvG0VgewGjtOjz6CeWrUdrGjzsyvbaBE315jByhN08iH7tk o/sBt6asPgQr/9i9G+eCaJAIfzewfPKZ/6V/HHwoO8nDQoRFwBgAU8AU7CzR2qJ01zxtq P5Ksm1IXwigRLSDG8XTh1kRTeApRYxdIfdWzUw8GxsFnNeM0sAwtGBf7QE9hfQN3cfBJl aTwJFHINaR0cRypp7NGvUFr1vTAOJJC8PUOJiWVfzRFtKoEoE2UMDeEkOZjxP9ylqPA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=EQ+WSuqY; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2E014606A330; Thu, 19 Nov 2026 13:14:38 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=EQ+WSuqY X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795094077; b=HpCr1Jog/ZNwTS4eZglDxNEYCGsGOT94X9LluYGgXIg6W9dtZTrP2WaQknv8QlXPRo3T mt1OxEXy//mmvOUS5LHiOeAiWPb+pX/NJ09AIPT5zav/TxGmsSrFU3f91tXgDZrkb1pyW u469ZQa1m31FgoY1JnwHdiwRlceakfrbeVLPCkVn5xKaSUFWRt76ahVSIa9qObM07E1Y+ FCjRPkBZX4KZp3SXbLx/AQEoDkIT7WDcJTFuVIjhgdGXGQ9hdT77TG0ivHC8eDf/o2iHo 1HvB2IlopcO3JAltyoheIHDBJGMnF14TApOg/AghelEz2mCad+wp9Ass7dn+7+tbilA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795094077; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: Content-Transfer-Encoding:In-Reply-To; bh=+T9GIvpqxX7q3vG3lIDHXBshm0K+se9i7/mbf4e1L1o=; b=4MbrT5QbO51T/miaxgGx+HxswZAYxQbEcbADCcNhjzM2uvQQ2HiDDstNE/58u50iJUKa u+YKz2HTWvX4KCH+wZuWqkO50JE7oAfyMJBGpeBe+mqwWeD/UWmnOjV2fsiNKjyPGqaXb Lemk/6AFH5rGR6PYfRALktwWS2NzDEKxCuBnIGtnj3lgS10+5MIvxAY1ImnvGwSVDCID5 DjSZxWXb3cKUEQx5LY4nXHdtmN/BDMZr2gCAjvS5F8bd8098KXmOuIoH1HO2JARmMFVxc Tz4UWHokThD0CSgYZYfG2JBygJ7tovjFOe6o1RdotSCNG0AhFNuO8STsSoI6E5YfFMw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=EQ+WSuqY; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D37F3606A320 for <netdev@vger.kernel.org>; Thu, 19 Nov 2026 13:14:36 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D37F3606A320 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Transfer-Encoding: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=+T9GIvpqxX7q3vG3lIDHXBshm0K+se9i7/mbf4e1L1o=; b=EQ +WSuqYaODRL5eqB7CntZYmtayQiSzbHdcXFefUWRfmiEFsDMIlrzHY3Btzfbu4DIcUNwpfU16Wccb qVDMx/HkEcSlP5kebEpFqmWjULBh3/FOJEB9MO6iC/mDMkoMh2Gj1F+udlRq8N45Vuf3ksST7FXMe szt0zBnNlAREp+g=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xU1xw-0002FP-3p; Thu, 19 Nov 2026 14:14:16 +0100 X-Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, kuba@kernel.org, pabeni@redhat.com, edumazet@kernel.org, davem@davemloft.net, netdev@vger.kernel.org, lingyu.zou@motor-comm.com, xiaoyong.li@motor-comm.com, jie.han@motor-comm.com X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <20261119055645.653216-1-frank.sae@motor-comm.com> X-Received-Bytes: 9831