[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240815144248.GF632411@kernel.org>
Date: Thu, 15 Aug 2024 15:42:48 +0100
From: Simon Horman <horms@...nel.org>
To: Parthiban Veerasooran <Parthiban.Veerasooran@...rochip.com>
Cc: andrew@...n.ch, hkallweit1@...il.com, linux@...linux.org.uk,
davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org,
pabeni@...hat.com, ramon.nordin.rodriguez@...roamp.se,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
UNGLinuxDriver@...rochip.com, Thorsten.Kummermehr@...rochip.com
Subject: Re: [PATCH net-next 5/7] net: phy: microchip_t1s: add support for
Microchip's LAN867X Rev.C1
On Mon, Aug 12, 2024 at 07:18:14PM +0530, Parthiban Veerasooran wrote:
> This patch adds support for LAN8670/1/2 Rev.C1 as per the latest
> configuration note AN1699 released (Revision E (DS60001699F - June 2024))
> https://www.microchip.com/en-us/application-notes/an1699
>
> Signed-off-by: Parthiban Veerasooran <Parthiban.Veerasooran@...rochip.com>
> ---
> drivers/net/phy/Kconfig | 2 +-
> drivers/net/phy/microchip_t1s.c | 68 ++++++++++++++++++++++++++++++++-
> 2 files changed, 67 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/net/phy/Kconfig b/drivers/net/phy/Kconfig
> index 68db15d52355..63b45544c191 100644
> --- a/drivers/net/phy/Kconfig
> +++ b/drivers/net/phy/Kconfig
> @@ -282,7 +282,7 @@ config MICREL_PHY
> config MICROCHIP_T1S_PHY
> tristate "Microchip 10BASE-T1S Ethernet PHYs"
> help
> - Currently supports the LAN8670/1/2 Rev.B1 and LAN8650/1 Rev.B0/B1
> + Currently supports the LAN8670/1/2 Rev.B1/C1 and LAN8650/1 Rev.B0/B1
> Internal PHYs.
>
> config MICROCHIP_PHY
> diff --git a/drivers/net/phy/microchip_t1s.c b/drivers/net/phy/microchip_t1s.c
> index d0af02a25d01..62f5ce548c6a 100644
> --- a/drivers/net/phy/microchip_t1s.c
> +++ b/drivers/net/phy/microchip_t1s.c
> @@ -3,7 +3,7 @@
> * Driver for Microchip 10BASE-T1S PHYs
> *
> * Support: Microchip Phys:
> - * lan8670/1/2 Rev.B1
> + * lan8670/1/2 Rev.B1/C1
> * lan8650/1 Rev.B0/B1 Internal PHYs
> */
>
> @@ -12,6 +12,7 @@
> #include <linux/phy.h>
>
> #define PHY_ID_LAN867X_REVB1 0x0007C162
> +#define PHY_ID_LAN867X_REVC1 0x0007C164
> /* Both Rev.B0 and B1 clause 22 PHYID's are same due to B1 chip limitation */
> #define PHY_ID_LAN865X_REVB 0x0007C1B3
>
> @@ -243,7 +244,7 @@ static int lan865x_revb_config_init(struct phy_device *phydev)
> if (ret)
> return ret;
>
> - if (i == 2) {
> + if (i == 1) {
> ret = lan865x_setup_cfgparam(phydev, offsets);
> if (ret)
> return ret;
Hi Parthiban,
This patch is addressing LAN867X Rev.C1 support.
But the hunk above appears to update LAN865X Rev.B0/B1 support.
Is that intentional?
...
Powered by blists - more mailing lists