Skip to contentSkip to conversation

net: phy: mscc: adding LCPLL reset to VSC8514

PATCH Superseded Bjarni Jonasson 5 participants 14 messages Feb 12, 2021 – Feb 15, 2021

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 net: phy: mscc: adding LCPLL reset to VSC8514

At Power-On Reset, transients may cause the LCPLL to lock onto a clock that is momentarily unstable. This is normally seen in QSGMII setups where the higher speed 6G SerDes is being used. This patch adds an initial LCPLL Reset to the PHY (first instance) to avoid this issue.

Fixes e4f9ba642f0b ("net: phy: mscc: add support for VSC8514 PHY.")
---
 drivers/net/phy/mscc/mscc.h      |  22 ++++
 drivers/net/phy/mscc/mscc_main.c | 181 +++++++++++++++++++++++++------
 2 files changed, 170 insertions(+), 33 deletions(-)
drivers/net/phy/mscc/mscc.h +22 -0
index 9481bce94c2e..6343fd49171a 100644
@@ -102,6 +102,7 @@ enum rgmii_clock_delay {
 #define PHY_MCB_S6G_READ		  BIT(30)
 
 #define PHY_S6G_PLL5G_CFG0		  0x06
+#define PHY_S6G_PLL5G_CFG2		  0x08
 #define PHY_S6G_LCPLL_CFG		  0x11
 #define PHY_S6G_PLL_CFG			  0x2b
 #define PHY_S6G_COMMON_CFG		  0x2c
@@ -121,6 +122,9 @@ enum rgmii_clock_delay {
 #define PHY_S6G_PLL_FSM_CTRL_DATA_POS	  8
 #define PHY_S6G_PLL_FSM_ENA_POS		  7
 
+#define PHY_S6G_CFG2_FSM_DIS              1
+#define PHY_S6G_CFG2_FSM_CLK_BP          23
+
 #define MSCC_EXT_PAGE_ACCESS		  31
 #define MSCC_PHY_PAGE_STANDARD		  0x0000 /* Standard registers */
 #define MSCC_PHY_PAGE_EXTENDED		  0x0001 /* Extended registers */
@@ -412,6 +416,24 @@ struct vsc8531_edge_rate_table {
 };
 #endif /* CONFIG_OF_MDIO */
 
+enum csr_target {
+	FC_BUFFER   = 0x04,
+	HOST_MAC    = 0x05,
+	LINE_MAC    = 0x06,
+	MACRO_CTRL  = 0x07,
+	ANA0_INGR   = 0x08,
+	ANA0_EGR    = 0x09,
+	ANA1_INGR   = 0x0A,
+	ANA1_EGR    = 0x0B,
+	ANA2_INGR   = 0x0C,
+	ANA2_EGR    = 0x0D,
+	PROC_0      = 0x0E,
+	PROC_2      = 0x0F,
+	MACSEC_INGR = 0x38,
+	MACSEC_EGR  = 0x3C,
+	SPI_IO      = 0x40,
+};
+
 #if IS_ENABLED(CONFIG_MACSEC)
 int vsc8584_macsec_init(struct phy_device *phydev);
 void vsc8584_handle_macsec_interrupt(struct phy_device *phydev);
drivers/net/phy/mscc/mscc_main.c +148 -33

286 lines not on this page · raw message

Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/3 net: phy: mscc: improved serdes calibration applied to VSC8514

The current IB serdes calibration algorithm (performed by the onboard 8051) has proven to be unstable for the VSC8514 QSGMII phy.
A new algorithm has been developed based on
'Frequency-offset Jittered-Injection' or 'FoJi' method which solves all known issues. This patch disables the 8051 algorithm and replaces it with the new FoJi algorithm.
The calibration is now performed in the driver.

Fixes e4f9ba642f0b ("net: phy: mscc: add support for VSC8514 PHY.")
---
 drivers/net/phy/mscc/mscc.h      |  23 +
 drivers/net/phy/mscc/mscc_main.c | 967 +++++++++++++++++++++++++------
 2 files changed, 814 insertions(+), 176 deletions(-)
drivers/net/phy/mscc/mscc.h +23 -0
index 6343fd49171a..7de5cdcf79c9 100644
@@ -113,6 +113,9 @@ enum rgmii_clock_delay {
 #define PHY_S6G_PLL_STATUS		  0x31
 #define PHY_S6G_IB_STATUS0		  0x2f
 
+#define PHY_S6G_PLL5G_CFG2_GAIN_MASK      GENMASK(9, 5)
+#define PHY_S6G_PLL5G_CFG2_ENA_GAIN       1
+
 #define PHY_S6G_SYS_RST_POS		  31
 #define PHY_S6G_ENA_LANE_POS		  18
 #define PHY_S6G_ENA_LOOP_POS		  8
@@ -125,6 +128,21 @@ enum rgmii_clock_delay {
 #define PHY_S6G_CFG2_FSM_DIS              1
 #define PHY_S6G_CFG2_FSM_CLK_BP          23
 
+#define PHY_S6G_DES_PHY_CTRL_POS	  13
+#define PHY_S6G_DES_MBTR_CTRL_POS	  10
+#define PHY_S6G_DES_CPMD_SEL_POS	  8
+#define PHY_S6G_DES_BW_HYST_POS		  5
+#define PHY_S6G_DES_BW_ANA_POS		  1
+#define PHY_S6G_DES_CFG			  0x21
+#define PHY_S6G_IB_CFG0			  0x22
+#define PHY_S6G_IB_CFG1			  0x23
+#define PHY_S6G_IB_CFG2			  0x24
+#define PHY_S6G_IB_CFG3			  0x25
+#define PHY_S6G_IB_CFG4			  0x26
+#define PHY_S6G_GP_CFG			  0x2E
+#define PHY_S6G_DFT_CFG0		  0x35
+#define PHY_S6G_IB_DFT_CFG2		  0x37
+
 #define MSCC_EXT_PAGE_ACCESS		  31
 #define MSCC_PHY_PAGE_STANDARD		  0x0000 /* Standard registers */
 #define MSCC_PHY_PAGE_EXTENDED		  0x0001 /* Extended registers */
@@ -140,6 +158,7 @@ enum rgmii_clock_delay {
 #define MSCC_PHY_PAGE_1588		  0x1588 /* PTP (1588) */
 #define MSCC_PHY_PAGE_TEST		  0x2a30 /* Test reg */
 #define MSCC_PHY_PAGE_TR		  0x52b5 /* Token ring registers */
+#define MSCC_PHY_GPIO_CONTROL_2	  14
 
 /* Extended Page 1 Registers */
 #define MSCC_PHY_CU_MEDIA_CRC_VALID_CNT	  18
@@ -339,6 +358,10 @@ enum rgmii_clock_delay {
 #define VSC8584_REVB				0x0001
 #define MSCC_DEV_REV_MASK			GENMASK(3, 0)
 
+#define MSCC_ROM_TRAP_SERDES_6G_CFG		0x1E48
+#define MSCC_RAM_TRAP_SERDES_6G_CFG		0x1E4F
+#define PATCH_VEC_ZERO_EN			0x0100
+
 struct reg_val {
 	u16	reg;
 	u32	val;
drivers/net/phy/mscc/mscc_main.c +791 -176

1,015 lines not on this page · raw message

Signature · 1 line
2.17.1
Tested-by on v1 2/3
#2 lore raw

Re: [PATCH net v1 2/3] net: phy: mscc: improved serdes calibration applied to VSC8514

Quoted 8 lines · Bjarni Jonasson

The current IB serdes calibration algorithm (performed by the onboard 8051) has proven to be unstable for the VSC8514 QSGMII phy.
A new algorithm has been developed based on
'Frequency-offset Jittered-Injection' or 'FoJi' method which solves all known issues. This patch disables the 8051 algorithm and replaces it with the new FoJi algorithm.
The calibration is now performed in the driver.

Quoted 4 lines
Fixes e4f9ba642f0b ("net: phy: mscc: add support for VSC8514 PHY.")

---

#3 lore raw

PATCH 3/3 net: phy: mscc: coma mode disabled for VSC8514

In reply to Bjarni Jonasson

The 'coma mode' (configurable through sw or hw) provides an optional feature that may be used to control when the PHYs become active. The typical usage is to synchronize the link-up time across all PHY instances. This patch releases coma mode if not done by hardware, otherwise the phys will not link-up.

Fixes e4f9ba642f0b ("net: phy: mscc: add support for VSC8514 PHY.")
---
 drivers/net/phy/mscc/mscc_main.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/net/phy/mscc/mscc_main.c +13 -0
index 7546d9cc3abd..0600b592618b 100644
@@ -1418,6 +1418,18 @@ static void vsc8584_get_base_addr(struct phy_device *phydev)
 	vsc8531->addr = addr;
 }
 
+static void vsc85xx_coma_mode_release(struct phy_device *phydev)
+{
+	/* The coma mode (pin or reg) provides an optional feature that
+	 * may be used to control when the PHYs become active.
+	 * Alternatively the COMA_MODE pin may be connected low
+	 * so that the PHYs are fully active once out of reset.
+	 */
+	__phy_write(phydev, MSCC_EXT_PAGE_ACCESS, MSCC_PHY_PAGE_EXTENDED_GPIO);
+	__phy_write(phydev, MSCC_PHY_GPIO_CONTROL_2, 0x0600);
+	__phy_write(phydev, MSCC_EXT_PAGE_ACCESS, MSCC_PHY_PAGE_STANDARD);
+}
+
 static int vsc8584_config_init(struct phy_device *phydev)
 {
 	struct vsc8531_private *vsc8531 = phydev->priv;
@@ -2610,6 +2622,7 @@ static int vsc8514_config_init(struct phy_device *phydev)
 		ret = vsc8514_config_host_serdes(phydev);
 		if (ret)
 			goto err;
+		vsc85xx_coma_mode_release(phydev);
 	}
 
 	phy_unlock_mdio_bus(phydev);
Signature · 1 line
2.17.1
#4 lore raw

Re: [PATCH net v1 3/3] net: phy: mscc: coma mode disabled for VSC8514

Quoted 21 lines · Bjarni Jonasson

The 'coma mode' (configurable through sw or hw) provides an optional feature that may be used to control when the PHYs become active. The typical usage is to synchronize the link-up time across all PHY instances. This patch releases coma mode if not done by hardware, otherwise the phys will not link-up.

Fixes e4f9ba642f0b ("net: phy: mscc: add support for VSC8514 PHY.")
---
 drivers/net/phy/mscc/mscc_main.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/net/phy/mscc/mscc_main.c +0 -0
index 7546d9cc3abd..0600b592618b 100644
@@ -1418,6 +1418,18 @@ static void vsc8584_get_base_addr(struct phy_device *phydev)
 	vsc8531->addr = addr;
 }
 

drivers/net/phy/mscc/mscc_main.c static void vsc8584_get_base_addr(struct phy_device *phydev) · line 1430

Quoted 10 lines
drivers/net/phy/mscc/mscc_main.c +10 -0
+static void vsc85xx_coma_mode_release(struct phy_device *phydev)
+{
+	/* The coma mode (pin or reg) provides an optional feature that
+	 * may be used to control when the PHYs become active.
+	 * Alternatively the COMA_MODE pin may be connected low
+	 * so that the PHYs are fully active once out of reset.
+	 */
+	__phy_write(phydev, MSCC_EXT_PAGE_ACCESS, MSCC_PHY_PAGE_EXTENDED_GPIO);
+	__phy_write(phydev, MSCC_PHY_GPIO_CONTROL_2, 0x0600);
+	__phy_write(phydev, MSCC_EXT_PAGE_ACCESS, MSCC_PHY_PAGE_STANDARD);

Can you please do:

	phy_write_paged(phydev, MSCC_PHY_PAGE_EXTENDED_GPIO,
			MSCC_PHY_GPIO_CONTROL_2, 0x0600);

And can you please provide some definitions for what 0x0600 is? My reference manual says that:

Bit 13:
COMA_MODE output enable (active low)
Bit 12:
COMA_MODE output data
Bit 11:
COMA_MODE input data
Bit 10:
Reserved
Bit 9:
Tri-state enable for LEDs

0x600 is BIT(10) | BIT(9). But BIT(10) is reserved. Sure this is correct?

Quoted 16 lines
drivers/net/phy/mscc/mscc_main.c +3 -0
+}
+
 static int vsc8584_config_init(struct phy_device *phydev)
 {
 	struct vsc8531_private *vsc8531 = phydev->priv;
@@ -2610,6 +2622,7 @@ static int vsc8514_config_init(struct phy_device *phydev)
 		ret = vsc8514_config_host_serdes(phydev);
 		if (ret)
 			goto err;
+		vsc85xx_coma_mode_release(phydev);
 	}
 
 	phy_unlock_mdio_bus(phydev);
Signature · 1 line
2.17.1
#5 lore raw

Re: [PATCH net v1 3/3] net: phy: mscc: coma mode disabled for VSC8514

Quoted 62 lines · Vladimir Oltean

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 38 lines · Bjarni Jonasson

The 'coma mode' (configurable through sw or hw) provides an optional feature that may be used to control when the PHYs become active.
The typical usage is to synchronize the link-up time across all PHY instances. This patch releases coma mode if not done by hardware,
otherwise the phys will not link-up.

Fixes e4f9ba642f0b ("net: phy: mscc: add support for VSC8514

PHY.")

---
 drivers/net/phy/mscc/mscc_main.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)
drivers/net/phy/mscc/mscc_main.c +3 -0
index 7546d9cc3abd..0600b592618b 100644
@@ -1418,6 +1418,18 @@ static void vsc8584_get_base_addr(struct
 phy_device *phydev)
      vsc8531->addr = addr;
 }
 
+static void vsc85xx_coma_mode_release(struct phy_device *phydev)
+{
+     /* The coma mode (pin or reg) provides an optional feature

that

drivers/net/phy/mscc/mscc_main.c +5 -0
+      * may be used to control when the PHYs become active.
+      * Alternatively the COMA_MODE pin may be connected low
+      * so that the PHYs are fully active once out of reset.
+      */
+     __phy_write(phydev, MSCC_EXT_PAGE_ACCESS,

MSCC_PHY_PAGE_EXTENDED_GPIO);

drivers/net/phy/mscc/mscc_main.c +2 -0
+     __phy_write(phydev, MSCC_PHY_GPIO_CONTROL_2, 0x0600);
+     __phy_write(phydev, MSCC_EXT_PAGE_ACCESS,
Quoted 1 line

MSCC_PHY_PAGE_STANDARD);

Can you please do:

        phy_write_paged(phydev, MSCC_PHY_PAGE_EXTENDED_GPIO,
                        MSCC_PHY_GPIO_CONTROL_2, 0x0600);

And can you please provide some definitions for what 0x0600 is? My reference manual says that:

Bit 13:
COMA_MODE output enable (active low)
Bit 12:
COMA_MODE output data
Bit 11:
COMA_MODE input data
Bit 10:
Reserved
Bit 9:
Tri-state enable for LEDs

Quoted 2 lines

0x600 is BIT(10) | BIT(9). But BIT(10) is reserved. Sure this is correct?

I can see this is unclear. The code is actualy writing zero to bit 12 and 13. Bit 9 and 10 are not interesting in this context. I will change it to use phy_modify_paged() bit 12 and 13.

Quoted 18 lines
Quoted 18 lines
drivers/net/phy/mscc/mscc_main.c +3 -0
+}
+
 static int vsc8584_config_init(struct phy_device *phydev)
 {
      struct vsc8531_private *vsc8531 = phydev->priv;
@@ -2610,6 +2622,7 @@ static int vsc8514_config_init(struct
 phy_device *phydev)
              ret = vsc8514_config_host_serdes(phydev);
              if (ret)
                      goto err;
+             vsc85xx_coma_mode_release(phydev);
      }
 
      phy_unlock_mdio_bus(phydev);

--
2.17.1

maintainer
#6 lore raw
In reply to Bjarni Jonasson

drivers/net/phy/mscc/mscc_main.c static const struct vsc8531_edge_rate_table edge_table[] = { · line 114

Quoted 5 lines · Bjarni Jonasson
drivers/net/phy/mscc/mscc_main.c +5 -0
+static u32 vsc85xx_csr_read(struct phy_device *phydev,
+			    enum csr_target target, u32 reg);
+static int vsc85xx_csr_write(struct phy_device *phydev,
+			     enum csr_target target, u32 reg, u32 val);
+

Hi Bjarni

No forward definitions please. Move the code around so they are not required. Sometimes it is best to do such a move as a preparation patch.

drivers/net/phy/mscc/mscc_main.c static int vsc8514_config_pre_init(struct phy_device *phydev) · line 1670

Quoted 8 lines
drivers/net/phy/mscc/mscc_main.c +2 -0
@@ -1569,8 +1664,16 @@ static int vsc8514_config_pre_init(struct phy_device *phydev)
 		{0x16b2, 0x00007000},
 		{0x16b4, 0x00000814},
 	};
+	struct device *dev = &phydev->mdio.dev;
 	unsigned int i;
 	u16 reg;
+	int ret;

Hard to say from the limited context, but is reverse christmass tree being preserved here?

Andrew

#7 lore raw
Quoted 13 lines · Andrew Lunn

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 6 lines · Bjarni Jonasson
drivers/net/phy/mscc/mscc_main.c +4 -0
+static u32 vsc85xx_csr_read(struct phy_device *phydev,
+                         enum csr_target target, u32 reg);
+static int vsc85xx_csr_write(struct phy_device *phydev,
+                          enum csr_target target, u32 reg, u32

val);
+

Hi Bjarni

Quoted 3 lines

No forward definitions please. Move the code around so they are not required. Sometimes it is best to do such a move as a preparation patch.

Sure, I will remove them.

Quoted 13 lines

drivers/net/phy/mscc/mscc_main.c static int vsc8514_config_pre_init(struct · line 1671

Quoted 10 lines
drivers/net/phy/mscc/mscc_main.c +2 -0
@@ -1569,8 +1664,16 @@ static int vsc8514_config_pre_init(struct
 phy_device *phydev)
              {0x16b2, 0x00007000},
              {0x16b4, 0x00000814},
      };
+     struct device *dev = &phydev->mdio.dev;
      unsigned int i;
      u16 reg;
+     int ret;

Hard to say from the limited context, but is reverse christmass tree being preserved here?

I will dobbelcheck.

Quoted 2 lines

Andrew

maintainer
#8 lore raw
In reply to Bjarni Jonasson
Quoted 5 lines · Bjarni Jonasson

At Power-On Reset, transients may cause the LCPLL to lock onto a clock that is momentarily unstable. This is normally seen in QSGMII setups where the higher speed 6G SerDes is being used. This patch adds an initial LCPLL Reset to the PHY (first instance) to avoid this issue.

Hi Bjarni

https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html

These patches are rather large for stable, and not obviously correct.

There these problems hitting real users running stable kernels? Or is it so broken it never really worked?

Andrew

#9 lore raw
Quoted 13 lines · Andrew Lunn

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 5 lines · Bjarni Jonasson

At Power-On Reset, transients may cause the LCPLL to lock onto a clock that is momentarily unstable. This is normally seen in QSGMII setups where the higher speed 6G SerDes is being used. This patch adds an initial LCPLL Reset to the PHY (first instance) to avoid this issue.

Hi Bjarni

https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html

Quoted 7 lines

These patches are rather large for stable, and not obviously correct.

There these problems hitting real users running stable kernels? Or is it so broken it never really worked?

Andrew

Correct, the current linux driver is unstable and has never really worked properly. Our in-house SDK driver already have these fixes and the upstreamed version has been lagging behind. And yes the patches are big, we had to pull out the calibration from the 8051 into the driver.

Tested-by on v1 1/3
#10 lore raw
In reply to Bjarni Jonasson
Quoted 10 lines · Bjarni Jonasson

At Power-On Reset, transients may cause the LCPLL to lock onto a clock that is momentarily unstable. This is normally seen in QSGMII setups where the higher speed 6G SerDes is being used. This patch adds an initial LCPLL Reset to the PHY (first instance) to avoid this issue.

Fixes e4f9ba642f0b ("net: phy: mscc: add support for VSC8514 PHY.")

---

maintainer
#11 lore raw
In reply to Bjarni Jonasson
Quoted 9 lines · On Fri, 12 Feb 2021 15:06:41 +0100 Bjarni Jonasson wrote:

At Power-On Reset, transients may cause the LCPLL to lock onto a clock that is momentarily unstable. This is normally seen in QSGMII setups where the higher speed 6G SerDes is being used. This patch adds an initial LCPLL Reset to the PHY (first instance) to avoid this issue.

Fixes e4f9ba642f0b ("net: phy: mscc: add support for VSC8514 PHY.")

Please make sure each commit builds cleanly with W=1 C=1.

This one appears to not build at all?

#12 lore raw
Quoted 10 lines · Jakub Kicinski

EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe

Quoted 6 lines · On Fri, 12 Feb 2021 15:06:41 +0100 Bjarni Jonasson wrote:

At Power-On Reset, transients may cause the LCPLL to lock onto a clock that is momentarily unstable. This is normally seen in QSGMII setups where the higher speed 6G SerDes is being used. This patch adds an initial LCPLL Reset to the PHY (first instance) to avoid this issue.

Quoted 8 lines
Quoted 4 lines
Fixes e4f9ba642f0b ("net: phy: mscc: add support for VSC8514

PHY.")

Please make sure each commit builds cleanly with W=1 C=1.

This one appears to not build at all?

Sorry about that, I will make sure.

#13 lore raw
In reply to Bjarni Jonasson
Thank you for the patch! Yet something to improve:

Hi Bjarni,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on net/master]

url:    https://github.com/0day-ci/linux/commits/Bjarni-Jonasson/net-phy-mscc-adding-LCPLL-reset-to-VSC8514/20210212-221024
base:   https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git 308daa19e2d0321ff8b037ea192c48358f9324f5
config: x86_64-randconfig-a014-20210209 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project c9439ca36342fb6013187d0a69aef92736951476)

reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/fd70d86ef38269af43b612e70cc5edbf06b58db1
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Bjarni-Jonasson/net-phy-mscc-adding-LCPLL-reset-to-VSC8514/20210212-221024 git checkout fd70d86ef38269af43b612e70cc5edbf06b58db1
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64

If you fix the issue, kindly add following tag as appropriate

All errors (new ones prefixed by >>):

In file included from drivers/net/phy/mscc/mscc_main.c:21:

>> drivers/net/phy/mscc/mscc.h:420:2: error: redefinition of enumerator 'FC_BUFFER'
           FC_BUFFER   = 0x04,
           ^
   drivers/net/phy/mscc/mscc_macsec.h:64:2: note: previous definition is here
           FC_BUFFER   = 0x04,
           ^
   In file included from drivers/net/phy/mscc/mscc_main.c:21:
>> drivers/net/phy/mscc/mscc.h:421:2: error: redefinition of enumerator 'HOST_MAC'
           HOST_MAC    = 0x05,
           ^
   drivers/net/phy/mscc/mscc_macsec.h:65:2: note: previous definition is here
           HOST_MAC    = 0x05,
           ^
   In file included from drivers/net/phy/mscc/mscc_main.c:21:
>> drivers/net/phy/mscc/mscc.h:422:2: error: redefinition of enumerator 'LINE_MAC'
           LINE_MAC    = 0x06,
           ^
   drivers/net/phy/mscc/mscc_macsec.h:66:2: note: previous definition is here
           LINE_MAC    = 0x06,
           ^
   In file included from drivers/net/phy/mscc/mscc_main.c:21:
>> drivers/net/phy/mscc/mscc.h:430:2: error: redefinition of enumerator 'PROC_0'
           PROC_0      = 0x0E,
           ^
   drivers/net/phy/mscc/mscc_macsec.h:67:2: note: previous definition is here
           PROC_0      = 0x0e,
           ^
   In file included from drivers/net/phy/mscc/mscc_main.c:21:
>> drivers/net/phy/mscc/mscc.h:431:2: error: redefinition of enumerator 'PROC_2'
           PROC_2      = 0x0F,
           ^
   drivers/net/phy/mscc/mscc_macsec.h:68:2: note: previous definition is here
           PROC_2      = 0x0f,
           ^
   In file included from drivers/net/phy/mscc/mscc_main.c:21:
>> drivers/net/phy/mscc/mscc.h:432:2: error: redefinition of enumerator 'MACSEC_INGR'
           MACSEC_INGR = 0x38,
           ^
   drivers/net/phy/mscc/mscc_macsec.h:69:2: note: previous definition is here
           MACSEC_INGR = 0x38,
           ^
   In file included from drivers/net/phy/mscc/mscc_main.c:21:
>> drivers/net/phy/mscc/mscc.h:433:2: error: redefinition of enumerator 'MACSEC_EGR'
           MACSEC_EGR  = 0x3C,
           ^
   drivers/net/phy/mscc/mscc_macsec.h:70:2: note: previous definition is here
           MACSEC_EGR  = 0x3c,
           ^

7 errors generated.

vim +/FC_BUFFER +420 drivers/net/phy/mscc/mscc.h

418
419 enum csr_target {

 > 420		FC_BUFFER   = 0x04,
 > 421		HOST_MAC    = 0x05,
 > 422		LINE_MAC    = 0x06,
   423		MACRO_CTRL  = 0x07,
   424		ANA0_INGR   = 0x08,
   425		ANA0_EGR    = 0x09,
   426		ANA1_INGR   = 0x0A,
   427		ANA1_EGR    = 0x0B,
   428		ANA2_INGR   = 0x0C,
   429		ANA2_EGR    = 0x0D,
 > 430		PROC_0      = 0x0E,
 > 431		PROC_2      = 0x0F,
 > 432		MACSEC_INGR = 0x38,
 > 433		MACSEC_EGR  = 0x3C,

434 SPI_IO = 0x40,
435 };
436

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org