Article View: linux.kernel.netdev
Article #11790Re: [PATCH net-next] net: phy: add driver for the ZTE ZX279128S internal Gigabit PHY
From: Andrew Lunn
Date: Thu, 05 Nov 2026 15:07
Date: Thu, 05 Nov 2026 15:07
29 lines
9175 bytes
9175 bytes
> +static int zte_gephy_config_init(struct phy_device *phydev)
> +{
> + int ret, i, ldo;
Given how minimal this driver is, there are some potential traps we
could fall into later when we find out more about the device. To
reduce the risk a bit, please could you add a test here:
if (phydev->interface != PHY_INTERFACE_MODE_INTERNAL)
return -EINVAL;
> +static struct phy_driver zte_gephy_driver[] = {
> + {
> + PHY_ID_MATCH_MODEL(ZTE_GEPHY_PHY_ID),
> + .name = "ZTE ZX279128S Gigabit PHY",
> + .flags = PHY_IS_INTERNAL,
> + .config_init = zte_gephy_config_init,
> + /* The boot firmware hands over with BMCR_PDOWN set. No
> + * .suspend: powering the analog domain down and up at runtime
> + * has not been tested.
> + */
> + .resume = genphy_resume,
It looks odd with just resume, it makes it look like a workaround.
Why not have config_init() take it out of power down?
Andrew
Technical Details
Message-ID:
<b38a7a97-c88c-44fa-ab0f-89d1e809e21e@lunn.ch>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357461-linux-kernel-netdev=dewy.ruReferences:
<20261105-phy-submit-v1-1-eb382681a76a@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-357461-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next] net: phy: add driver for the ZTE ZX279128S internal Gigabit PHY Date: Thu, 5 Nov 2026 16:07:15 +0100 Organization: Usenet Network Message-ID: <b38a7a97-c88c-44fa-ab0f-89d1e809e21e@lunn.ch> References: <20261105-phy-submit-v1-1-eb382681a76a@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="3674363"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:hwnbKM0dVYJlqR+vPY6O/3DnElE= sha256:HZoR1uu4wYVoZBl0Knx/KlbbMgLqJKjC/xJlaQ82zzA= sha1:jZSs2rdO9Y5ZKwyfDqcG2AuAzME= sha256:5nLEfDxPkt4Q+7XqpOYQ3hiEP95v7EkyqC0b6mxuMBg= 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 345FF113011; Thu, 5 Nov 2026 19:16:20 +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 47ih6UP74wAO; Thu, 5 Nov 2026 19:16:10 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-357461-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id 97BB9112ED8; Thu, 5 Nov 2026 19:16:00 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 72829342D0; Thu, 5 Nov 2026 15:07:40 +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=1793891256; b=uapucNRjMFG6H2qGdf4CMPeLoFQ96RrlO2AP2KRM6n3ZDSPBAH+2/j/Nmqqs1eR3rdQf AcqWwR6Fq+d+6ByWJsaZvNpjbfgvwt8DzGt+IZQ3esdn+8Lc7TRkx/oedQDOUeFzIf7Vp p8/0AowrLQ+MA3B88v4dJSl+OsGGZBbVAHNN5fSPLn7bnrszR4gyvXIT30bKG4EgnBJlC 2OduPU/3M+5+0/szZmRuU0D53ayPlEjNyqKG71NUo5+NLtKS3QKKxXrk/DQhcm5yWPs5+ 29PjHsN1c0HC4XigTqWYZmsTEF7KBrEbsSr2YEwrQT9LKIoQVkcUy3muxNkBIOPcGMg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793891256; 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=/LZVYkE9SzcHKEGbGD/UnXJb3GHGzdlrPARxMed/c3c=; b=IIC7skWuN/bMmasV/JTWTx1anH9jBO7muL7t2HApOMRdkI9S9wAIJaTvQEtUBdQoGhfb v0hEMVNcLaoFWCyGrxrHOHDRwh3K+VyN4RBs1irWOCNPh4yEjNuz/WUglkJVsMITZSdnY Mlc8cZc8qwHvOgfzBxXSSdRbTNsGe3R6rVq9LE79ML4N0bdtvVzzmvQPRgJWYf1++Beus 6P/ms1pl3s/FxgHrHAlv0P1Rz5N7s9hCHKMFGfcJTMlKCeFpmbVtQsR/PSBWuLh9sb/bR QC2MLKZ53ks4DVGpki+PxmMYgAr37pJ804kheVehdm3ZxwMZc1MjAD3akWKgi9lKXlQ== 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=cd5XF6gB; 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 83042606A32F; Thu, 5 Nov 2026 15:07:36 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=cd5XF6gB 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=1793891245; b=O9N2d/C6uJyxf69cGPxA5Nwx+47PTuxC0uq4phVVz7IGm9mFoyZijDS9rqqUmnjM9T/V BbN/kI2UXG6zZx0Kdsk6t9ZR9Zp3X7kCgLomPj8MLg/vnD36xHLVdi+Auga87yYFNsiEO w2wa41QptBqF5tTWO1G2cdMUMlxNKgCTFTrd/QX1SAo58h3OTndLPvZ1XP+xN78r53OTL 82zwbLQFxS/9yn4V2CdrD3XFUnIY4/zCjxrWSCG7zT6+Jb73r8iqrKA1MFd5r/rPidzDb YNb9opzPSoPC9E7KccWmh4I7yQsWEDRtXQhMcbskFnTfIvLd0574hCsphvKJHfHcNwQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793891245; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=/LZVYkE9SzcHKEGbGD/UnXJb3GHGzdlrPARxMed/c3c=; b=b8xprGCeOYKqBOIxWN48Pxk2nlyNeom+HzT5YpV+hGx1FvonYRxxCaVgCHuVrBXffRZ2 zcO7e/jLfGTpbssPGHDbi0FKi2tIhBKHrV5yyMLt3cN5q20TdMS/0LZaHB6XMyJsrrHjI q0bTyGnLd0GgO7XT/LPeS6/Tg8k7i18AEkPL9KUGAgFxrJAiL//b1MxFRecG0c46LoMPE oF//L146c9XV58QOiCIZW2BRABZp4Us7+XpJR9G6Glvcd/KgdvVaH6l4GuGOIgtU+PnVu 3Z55HMt0ZRnw2lKwxt44IR8mpxcYTb86dhXwEUO+FtIMGRR9MJC/K8APWvpRxIcAheQ== 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=cd5XF6gB; 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 211D4606A31B; Thu, 5 Nov 2026 15:07:24 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 211D4606A31B 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=/LZVYkE9SzcHKEGbGD/UnXJb3GHGzdlrPARxMed/c3c=; b=cd5XF6gBDAaFibb32JHXh71irU eV4fR1YrT8BEZN6OjopseAnf1YIy96cpaqk5lqFpr9OsRCUnalkJyirs2jKLpM34yvIYpg22vlmoo nP4xkXhN9iMxVhFcV+7ZnKPz5KhZeOgASBcsz9W9ix/zn+6pgGVRXzEjkpZ88qK/ClHo=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xOz3b-00EalB-SD; Thu, 05 Nov 2026 16:07:15 +0100 X-Cc: Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, linux-kernel@vger.kernel.org, netdev@vger.kernel.org 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: <20261105-phy-submit-v1-1-eb382681a76a@gmail.com>