From: Andrew Lunn <andrew@lunn.ch>
To: Oleksij Rempel <o.rempel@pengutronix.de>
Cc: Heiner Kallweit <hkallweit1@gmail.com>,
Russell King <linux@armlinux.org.uk>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
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
Date: Mon, 11 Dec 2023 16:21:41 +0100 [thread overview]
Message-ID: <cfd4f8bd-a06a-4489-8304-e9576151dbce@lunn.ch> (raw)
In-Reply-To: <20231208151159.2791794-2-o.rempel@pengutronix.de>
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 <o.rempel@pengutronix.de>
> ---
> 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
next prev parent reply other threads:[~2023-12-11 15:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-08 15:11 [PATCH net-next v1 1/2] net: phy: c45: add genphy_c45_pma_read_ext_abilities() function Oleksij Rempel
2023-12-08 15:11 ` [PATCH net-next v1 2/2] net: phy: Add support for the DP83TG720S Ethernet PHY Oleksij Rempel
2023-12-11 15:21 ` Andrew Lunn [this message]
2023-12-11 15:12 ` [PATCH net-next v1 1/2] net: phy: c45: add genphy_c45_pma_read_ext_abilities() function Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cfd4f8bd-a06a-4489-8304-e9576151dbce@lunn.ch \
--to=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kernel@pengutronix.de \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=o.rempel@pengutronix.de \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox