Article View: linux.kernel.netdev
Article #24184Re: [PATCH net-next v5 1/1] net: phy: motorcomm: add YT8831 2.5G PHY basic support
From: Andrew Lunn
Date: Sun, 29 Nov 2026 16:45
Date: Sun, 29 Nov 2026 16:45
21 lines
8737 bytes
8737 bytes
> +/**
> + * yt8831_config_aneg() - config auto-aneg
> + * @phydev: a pointer to a &struct phy_device
> + *
> + * Returns: 0 or negative errno code
> + */
> +static int yt8831_config_aneg(struct phy_device *phydev)
> +{
> + int ret;
> +
> + ret = genphy_config_aneg(phydev);
> + if (ret < 0)
> + return ret;
> +
> + return genphy_c45_config_aneg(phydev);
That looks odd. So you restart the autoneg twice? Are there any other
PHY drivers which do this?
Andrew
Technical Details
Message-ID:
<7a511164-b5f4-4aa4-83b6-075d83098ac3@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373580-linux-kernel-netdev=dewy.ruReferences:
<5781d5a7-68e8-4837-8eb2-c47ec2f75507@lunn.ch> <20261126064622.2757584-1-frank.sae@motor-comm.com> <20261126064622.2757584-2-frank.sae@motor-comm.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373580-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v5 1/1] net: phy: motorcomm: add YT8831 2.5G PHY basic support Date: Sun, 29 Nov 2026 17:45:13 +0100 Organization: Usenet Network Message-ID: <7a511164-b5f4-4aa4-83b6-075d83098ac3@lunn.ch> References: <5781d5a7-68e8-4837-8eb2-c47ec2f75507@lunn.ch> <20261126064622.2757584-1-frank.sae@motor-comm.com> <20261126064622.2757584-2-frank.sae@motor-comm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1213868"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:ILXS0s1xQtcKSLykhP3H7h/lxmg= sha256:B7Hr8UHgQPpP2S8U5xvr2L8lpI6A/1fBJwMHy3X4/gY= sha1:FBX5dCEe8I9y1sFkzD9sb4+g7UQ= sha256:vx30UrodHawphAtLTbvJEhnDjEayaS+VPtFflF+iUoQ= 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 8E8A6125F99; Sun, 29 Nov 2026 19:45:42 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.15 X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31 tests=[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 9oTzEnjMcIe5; Sun, 29 Nov 2026 19:45:39 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-373580-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 sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mail.dewy.ru (Postfix) with ESMTPS id 01D64125F98; Sun, 29 Nov 2026 19:45:28 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id D015D600DE3; Sun, 29 Nov 2026 16:45:27 +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=1795970725; b=DLrkc9tov5XAny3vt3f9APE9hYhCDahbr5qRUNzWx74wi3M/uoEKm6suuRjf9mNWXtB8 Lty00ig69DP3H5HfPasE3qAGAmb6f8aEnYGjGEVKzk5RpGuuZ2meEcQXfJ1OuJIadK8ui 6EauwhVK/JUqWWsaMp4buDNYTsSmd3DG8oUojbu5NpOlJMQ2o3/AjZKMRekaQCDhgszN7 kbhGHrzeyHsq95WIBNCK5COCivPyAKZlcrOTqjDcqkK+8AIE0df1XtNLdMOw9UDQm+e/F b3KclspVdKMQ9v6Ah7RqWS5w32V0iKT3YiFvEyNuQ7osa5D94ncL0YEdNS8jYVNFPlQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795970725; 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:In-Reply-To; bh=P8vOwOYO+zAM2rYrjw0NPuR0V+pTgMeOSexp3p/d8NU=; b=5hDZzDc7iswoXezV/Qg54ea/n+ILWMzFU2oQmhaHrWtZPUOZ3FYQsUGeYnufufEzi8v8 JqzQTAkSOEfDRYIJzjF4qLOuyzRP2oQ4nTRXnf3nku4uVGSkA8ErHdfjbAf29xdncaTyE jSvtq9EVYP/jCIwfFyHvILVWoStEdXG39N9sb3vpgdl2EwuiTz1vtLacjlaygZMWZjtUG Q8bKswl8baCqQWIJuoW/YzBe9jrldFyGXFQBOr2VZfpIutRILWpqchV6MK8+EljEyEXyd ftp80Zv1EloFfQGrWZRO5HtfCUowfuNZ1PUpVRbx9Yx+zjM8cm08qFLh1AvEjXwHf+A== 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=A7xIzAB3; 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 51B26606A32C; Sun, 29 Nov 2026 16:45:25 +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=A7xIzAB3 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=1795970724; b=NN7c07baTF9wbN5503Y023b9K/2Jn4qmgIYEgHp6N4nLbZGD1LOpBs0zHy3SatsZ27mv 7r2zuEuqH42xEHPpRIhNqj67uOgCQMEO2SqZlMok5ZtQGZ6t+mbi1GdlocbgvgvtVDrm9 tk2PrvjgUpNe16ymbjrWWt7AtVLdZFe1qwAi6wgVgr2pwnrSthjVOrI1aufUh4UJyKkqm 3CsFbUVVwKJjcSFhQ9wjgaEsQVtkeuTrv+bRaId99ozjxM7yhSmaqdrS7x0LoTr1kdmWn Hk3MG7ecvj/nOpLUbJOEty9F7AWlRh0HEwW0c9rfo0MHJ5JMe6JNO8d05jULi5vdYHA== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795970724; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=P8vOwOYO+zAM2rYrjw0NPuR0V+pTgMeOSexp3p/d8NU=; b=ZJAGc446dq+W6cm0dlYB5mwhzOpEQv2c0y+p0J9tYLvVkSkkE7tiherONL8Z/vFmOavt 2LiMet6ymn2/3R1FBfqHyeUKdhFtIldnidE+/PXXfQy3+CoXpOhvjqdnoybvw45bbk6Ok pSELCbHNBn4Ij4SgWO01gNFUPY0z8dlEBZyWe08TY4Wg0QqFionM+vABVrEIo5Lx2EFNN es/GprRGr4UY2mrGMRkrUirshvJZ5op10ok6ZlTm7+yv+G2daflpQNf6sHupU8ybAARTR HQSsUXHV/+Xm4BE6XPRfZPpz3lo7XF2SToISA2Onymg6QBhpSTG2OWdQ78iL2VX0CvA== 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=A7xIzAB3; 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 2BDB0606A31C for <netdev@vger.kernel.org>; Sun, 29 Nov 2026 16:45:24 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2BDB0606A31C 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-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=P8vOwOYO+zAM2rYrjw0NPuR0V+pTgMeOSexp3p/d8NU=; b=A7xIzAB3H9KmyX6+WaL6Ng24WF GIduBrC41U5ztkHqfN1J2XbPugpOdb6NVxZUmTXf5VuBRTkibGChQaENzSWIpDerZ4VhpvHaL0zl+ N1ATenGFwi1HYkQzFC1Y0s1L7eKcpqNc6MY7NVU4ne6x/JyZ9/f8+aW475C3rHnKv9PM=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xXi1Z-002AkK-P0; Sun, 29 Nov 2026 17:45:13 +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: <20261126064622.2757584-2-frank.sae@motor-comm.com>