Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4042191rdb; Mon, 11 Dec 2023 07:22:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8ZC6aLcJizen3/Q+aw0/+lM67bMjyPwyO3GUAcVlyUyiBohEncVpPRrIQxW2MX0wl6zE/ X-Received: by 2002:a05:6a20:4e25:b0:18b:82cb:4092 with SMTP id gk37-20020a056a204e2500b0018b82cb4092mr1839231pzb.11.1702308130260; Mon, 11 Dec 2023 07:22:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702308130; cv=none; d=google.com; s=arc-20160816; b=wGOmXBjq3Pv/eP0B3qFNKU91i2xdrZyyuUrrppzEz8zUp7J84f1i4mhKuiZ8a6xwIe lZLb69WXUzGcts/h2yNTwnpZJsHcvYuiqVWOh9hpeynVjV8U/WlXp18crVhcuqGG82F2 91DbANCS3JajoZBVBM5ZMl25IAYnAHAI4H1VehbcrkDeQHfqwM9zAiBxfQIskU4eGzsB 6uEiCyOip76JULtf65arr74oeo0tZaNuheGmlX+tITJWAgZI7oksMzZBzPZo1wu2BGJv aSrKZSyPGBL6sMbMj5SGtBl6tR13Kp9LEu+XNa4EdoTB4uoJB4vJ1mz6SNju3AJ69/H8 u8yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=YcekLTjh5+mk+lg76W+7hew/vEd7NOWaaenP7iwljuk=; fh=ojFKhWKSGIaIOONfw81xQofsbtalC/O5WH+2cQ/VpRU=; b=HIjjOnxsntTzO6LQMIbp5+fJQdNyGuFACW7EE55KrYvk6nmoUEx+PGHvtWccpmNTBK V1R3t0XbXWNlobdtiuXw7QylkM41yaTz1CnpqJvAss9mgLV1yKfPPFxtpfDSlF8oWa9Y MhqBx+FjWpOhKYjcR7t1Ms9JOUGNb7j1/QPNbdZu/NXNErbN8xfubpLgmAJwV30WwNwc myzr/DQciwzYeyLs3jzFsc2vvhUJBCFq03AqYqoczknMbS1LbFMlqtNpP6cN6XxJqtRx F4IOF6QQlDJ1jOjXUflxf/dlQ15YuOUAujthWFsbivMEZrJVcB/BLclHxSF6gW1RysL6 jq2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=1gHoyuRt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id i23-20020aa78d97000000b006933caa6f03si6023874pfr.165.2023.12.11.07.22.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 07:22:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=1gHoyuRt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id CCCD38083AF2; Mon, 11 Dec 2023 07:21:59 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344190AbjLKPVq (ORCPT + 99 others); Mon, 11 Dec 2023 10:21:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344024AbjLKPVp (ORCPT ); Mon, 11 Dec 2023 10:21:45 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A437EB; Mon, 11 Dec 2023 07:21:51 -0800 (PST) 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=YcekLTjh5+mk+lg76W+7hew/vEd7NOWaaenP7iwljuk=; b=1gHoyuRtBp6OwbKss/KRVZRgTx sitogZHN0shuA9eFrOI+8VEWHffM/iBomO4CuhwApypwyYqt/41wPkzxPuoP97UqdiylyQhzGN9X2 bOUbmeHrtcj2+cUQjbE8gzPxRetCjMcwU5kb1dIFwBM5ZxtbzatjKnHkMh4U3GGAMZS0=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rCi6H-002dIn-QD; Mon, 11 Dec 2023 16:21:41 +0100 Date: Mon, 11 Dec 2023 16:21:41 +0100 From: Andrew Lunn To: Oleksij Rempel Cc: Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next v1 2/2] net: phy: Add support for the DP83TG720S Ethernet PHY Message-ID: References: <20231208151159.2791794-1-o.rempel@pengutronix.de> <20231208151159.2791794-2-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231208151159.2791794-2-o.rempel@pengutronix.de> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 11 Dec 2023 07:22:00 -0800 (PST) On Fri, Dec 08, 2023 at 04:11:59PM +0100, Oleksij Rempel wrote: > The DP83TG720S-Q1 device is an IEEE 802.3bp and Open Alliance compliant > automotive Ethernet physical layer transceiver. > > This driver was tested with i.MX8MP EQOS (stmmac) on the MAC side and > TI same PHY on other side. > > Signed-off-by: Oleksij Rempel > --- > drivers/net/phy/Kconfig | 13 +++ > drivers/net/phy/Makefile | 1 + > drivers/net/phy/dp83tg720.c | 190 ++++++++++++++++++++++++++++++++++++ > 3 files changed, 204 insertions(+) > create mode 100644 drivers/net/phy/dp83tg720.c > > diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig > index 25cfc5ded1da..bab10c796f24 100644 > --- a/drivers/net/phy/Kconfig > +++ b/drivers/net/phy/Kconfig > @@ -372,6 +372,19 @@ config DP83TC811_PHY > help > Supports the DP83TC811 PHY. > > +config DP83TG720_PHY > + tristate "Texas Instruments DP83TG720 Ethernet 1000Base-T1 PHY" > + help > + The DP83TG720S-Q1 is an automotive Ethernet physical layer > + transceiver compliant with IEEE 802.3bp and Open Alliance > + standards. It supports key functions necessary for > + transmitting and receiving data over both unshielded and > + shielded single twisted-pair cables. This device offers > + flexible xMII interface options, including support for both > + RGMII and SGMII MAC interfaces. It's suitable for applications > + requiring high-speed data transmission in automotive > + networking environments. > + > config DP83848_PHY > tristate "Texas Instruments DP83848 PHY" > help > diff --git a/drivers/net/phy/Makefile b/drivers/net/phy/Makefile > index f65e85c91fc1..defaef190962 100644 > --- a/drivers/net/phy/Makefile > +++ b/drivers/net/phy/Makefile > @@ -56,6 +56,7 @@ obj-$(CONFIG_DP83848_PHY) += dp83848.o > obj-$(CONFIG_DP83867_PHY) += dp83867.o > obj-$(CONFIG_DP83869_PHY) += dp83869.o > obj-$(CONFIG_DP83TC811_PHY) += dp83tc811.o > +obj-$(CONFIG_DP83TG720_PHY) += dp83tg720.o > obj-$(CONFIG_DP83TD510_PHY) += dp83td510.o Maybe it should come after CONFIG_DP83TD510_PHY in a strict sort ? I also wounder about the Kconfig, which should be sorted on the tristate string. > obj-$(CONFIG_FIXED_PHY) += fixed_phy.o > obj-$(CONFIG_ICPLUS_PHY) += icplus.o > + /* After HW reset we need to restore master/slave configuration. > + */ > + if (phydev->drv->config_aneg) { This test is a bit strange. You know it exists, its this driver and the function is there. Why not call it directly? > + ret = phydev->drv->config_aneg(phydev); > + if (ret) > + return ret; > + } Andrew --- pw-bot: cr