netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] net: phy: micrel: Add support for non PTP SKUs for lan8814
@ 2025-10-17  7:47 Horatiu Vultur
  2025-10-17 21:15 ` Gerhard Engleder
  0 siblings, 1 reply; 8+ messages in thread
From: Horatiu Vultur @ 2025-10-17  7:47 UTC (permalink / raw)
  To: andrew, hkallweit1, linux, davem, edumazet, kuba, pabeni,
	richardcochran
  Cc: netdev, linux-kernel, Horatiu Vultur

The lan8814 has 4 different SKUs and for 2 of these SKUs the PTP is
disabled. All these SKUs have the same value in the register 2 and 3
meaning we can't differentiate them based on device id therefore check
the SKU register and based on this allow or not to create a PTP device.

Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
---
 drivers/net/phy/micrel.c | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
index 79ce3eb6752b6..16855bf8c3916 100644
--- a/drivers/net/phy/micrel.c
+++ b/drivers/net/phy/micrel.c
@@ -101,6 +101,8 @@
 #define LAN8814_CABLE_DIAG_VCT_DATA_MASK	GENMASK(7, 0)
 #define LAN8814_PAIR_BIT_SHIFT			12
 
+#define LAN8814_SKUS				0xB
+
 #define LAN8814_WIRE_PAIR_MASK			0xF
 
 /* Lan8814 general Interrupt control/status reg in GPHY specific block. */
@@ -367,6 +369,9 @@
 
 #define LAN8842_REV_8832			0x8832
 
+#define LAN8814_REV_LAN8814			0x8814
+#define LAN8814_REV_LAN8818			0x8818
+
 struct kszphy_hw_stat {
 	const char *string;
 	u8 reg;
@@ -449,6 +454,7 @@ struct kszphy_priv {
 	bool rmii_ref_clk_sel;
 	bool rmii_ref_clk_sel_val;
 	bool clk_enable;
+	bool is_ptp_available;
 	u64 stats[ARRAY_SIZE(kszphy_hw_stats)];
 	struct kszphy_phy_stats phy_stats;
 };
@@ -4130,6 +4136,17 @@ static int lan8804_config_intr(struct phy_device *phydev)
 	return 0;
 }
 
+/* Check if the PHY has 1588 support. There are multiple skus of the PHY and
+ * some of them support PTP while others don't support it. This function will
+ * return true is the sku supports it, otherwise will return false.
+ */
+static bool lan8814_has_ptp(struct phy_device *phydev)
+{
+	struct kszphy_priv *priv = phydev->priv;
+
+	return priv->is_ptp_available;
+}
+
 static irqreturn_t lan8814_handle_interrupt(struct phy_device *phydev)
 {
 	int ret = IRQ_NONE;
@@ -4146,6 +4163,9 @@ static irqreturn_t lan8814_handle_interrupt(struct phy_device *phydev)
 		ret = IRQ_HANDLED;
 	}
 
+	if (!lan8814_has_ptp(phydev))
+		return ret;
+
 	while (true) {
 		irq_status = lanphy_read_page_reg(phydev, LAN8814_PAGE_PORT_REGS,
 						  PTP_TSU_INT_STS);
@@ -4207,6 +4227,9 @@ static void lan8814_ptp_init(struct phy_device *phydev)
 	    !IS_ENABLED(CONFIG_NETWORK_PHY_TIMESTAMPING))
 		return;
 
+	if (!lan8814_has_ptp(phydev))
+		return;
+
 	lanphy_write_page_reg(phydev, LAN8814_PAGE_PORT_REGS,
 			      TSU_HARD_RESET, TSU_HARD_RESET_);
 
@@ -4336,6 +4359,9 @@ static int __lan8814_ptp_probe_once(struct phy_device *phydev, char *pin_name,
 
 static int lan8814_ptp_probe_once(struct phy_device *phydev)
 {
+	if (!lan8814_has_ptp(phydev))
+		return 0;
+
 	return __lan8814_ptp_probe_once(phydev, "lan8814_ptp_pin",
 					LAN8814_PTP_GPIO_NUM);
 }
@@ -4450,6 +4476,18 @@ static int lan8814_probe(struct phy_device *phydev)
 	devm_phy_package_join(&phydev->mdio.dev, phydev,
 			      addr, sizeof(struct lan8814_shared_priv));
 
+	/* There are lan8814 SKUs that don't support PTP. Make sure that for
+	 * those skus no PTP device is created. Here we check if the SKU
+	 * supports PTP.
+	 */
+	err = lanphy_read_page_reg(phydev, LAN8814_PAGE_COMMON_REGS,
+				   LAN8814_SKUS);
+	if (err < 0)
+		return err;
+
+	priv->is_ptp_available = err == LAN8814_REV_LAN8814 ||
+				 err == LAN8814_REV_LAN8818;
+
 	if (phy_package_init_once(phydev)) {
 		err = lan8814_release_coma_mode(phydev);
 		if (err)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] net: phy: micrel: Add support for non PTP SKUs for lan8814
  2025-10-17  7:47 [PATCH net-next] net: phy: micrel: Add support for non PTP SKUs for lan8814 Horatiu Vultur
@ 2025-10-17 21:15 ` Gerhard Engleder
  2025-10-20  6:39   ` Horatiu Vultur
  0 siblings, 1 reply; 8+ messages in thread
From: Gerhard Engleder @ 2025-10-17 21:15 UTC (permalink / raw)
  To: Horatiu Vultur
  Cc: netdev, linux-kernel, andrew, hkallweit1, linux, davem, edumazet,
	kuba, pabeni, richardcochran

On 17.10.25 09:47, Horatiu Vultur wrote:
> The lan8814 has 4 different SKUs and for 2 of these SKUs the PTP is
> disabled. All these SKUs have the same value in the register 2 and 3
> meaning we can't differentiate them based on device id therefore check

Did you miss to start a new sentence?

> the SKU register and based on this allow or not to create a PTP device.
> 
> Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> ---
>   drivers/net/phy/micrel.c | 38 ++++++++++++++++++++++++++++++++++++++
>   1 file changed, 38 insertions(+)
> 
> diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
> index 79ce3eb6752b6..16855bf8c3916 100644
> --- a/drivers/net/phy/micrel.c
> +++ b/drivers/net/phy/micrel.c
> @@ -101,6 +101,8 @@
>   #define LAN8814_CABLE_DIAG_VCT_DATA_MASK	GENMASK(7, 0)
>   #define LAN8814_PAIR_BIT_SHIFT			12
>   
> +#define LAN8814_SKUS				0xB
> +
>   #define LAN8814_WIRE_PAIR_MASK			0xF
>   
>   /* Lan8814 general Interrupt control/status reg in GPHY specific block. */
> @@ -367,6 +369,9 @@
>   
>   #define LAN8842_REV_8832			0x8832
>   
> +#define LAN8814_REV_LAN8814			0x8814
> +#define LAN8814_REV_LAN8818			0x8818
> +
>   struct kszphy_hw_stat {
>   	const char *string;
>   	u8 reg;
> @@ -449,6 +454,7 @@ struct kszphy_priv {
>   	bool rmii_ref_clk_sel;
>   	bool rmii_ref_clk_sel_val;
>   	bool clk_enable;
> +	bool is_ptp_available;
>   	u64 stats[ARRAY_SIZE(kszphy_hw_stats)];
>   	struct kszphy_phy_stats phy_stats;
>   };
> @@ -4130,6 +4136,17 @@ static int lan8804_config_intr(struct phy_device *phydev)
>   	return 0;
>   }
>   
> +/* Check if the PHY has 1588 support. There are multiple skus of the PHY and
> + * some of them support PTP while others don't support it. This function will
> + * return true is the sku supports it, otherwise will return false.
> + */

Hasn't net also switched to the common kernel multiline comment style
starting with an empty line?

> +static bool lan8814_has_ptp(struct phy_device *phydev)
> +{
> +	struct kszphy_priv *priv = phydev->priv;
> +
> +	return priv->is_ptp_available;
> +}
> +
>   static irqreturn_t lan8814_handle_interrupt(struct phy_device *phydev)
>   {
>   	int ret = IRQ_NONE;
> @@ -4146,6 +4163,9 @@ static irqreturn_t lan8814_handle_interrupt(struct phy_device *phydev)
>   		ret = IRQ_HANDLED;
>   	}
>   
> +	if (!lan8814_has_ptp(phydev))
> +		return ret;
> +
>   	while (true) {
>   		irq_status = lanphy_read_page_reg(phydev, LAN8814_PAGE_PORT_REGS,
>   						  PTP_TSU_INT_STS);
> @@ -4207,6 +4227,9 @@ static void lan8814_ptp_init(struct phy_device *phydev)
>   	    !IS_ENABLED(CONFIG_NETWORK_PHY_TIMESTAMPING))
>   		return;
>   
> +	if (!lan8814_has_ptp(phydev))
> +		return;
> +
>   	lanphy_write_page_reg(phydev, LAN8814_PAGE_PORT_REGS,
>   			      TSU_HARD_RESET, TSU_HARD_RESET_);
>   
> @@ -4336,6 +4359,9 @@ static int __lan8814_ptp_probe_once(struct phy_device *phydev, char *pin_name,
>   
>   static int lan8814_ptp_probe_once(struct phy_device *phydev)
>   {
> +	if (!lan8814_has_ptp(phydev))
> +		return 0;
> +
>   	return __lan8814_ptp_probe_once(phydev, "lan8814_ptp_pin",
>   					LAN8814_PTP_GPIO_NUM);
>   }
> @@ -4450,6 +4476,18 @@ static int lan8814_probe(struct phy_device *phydev)
>   	devm_phy_package_join(&phydev->mdio.dev, phydev,
>   			      addr, sizeof(struct lan8814_shared_priv));
>   
> +	/* There are lan8814 SKUs that don't support PTP. Make sure that for
> +	 * those skus no PTP device is created. Here we check if the SKU
> +	 * supports PTP.
> +	 */

Check comment style.

> +	err = lanphy_read_page_reg(phydev, LAN8814_PAGE_COMMON_REGS,
> +				   LAN8814_SKUS);
> +	if (err < 0)
> +		return err;
> +
> +	priv->is_ptp_available = err == LAN8814_REV_LAN8814 ||
> +				 err == LAN8814_REV_LAN8818;
> +
>   	if (phy_package_init_once(phydev)) {
>   		err = lan8814_release_coma_mode(phydev);
>   		if (err)


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] net: phy: micrel: Add support for non PTP SKUs for lan8814
  2025-10-17 21:15 ` Gerhard Engleder
@ 2025-10-20  6:39   ` Horatiu Vultur
  2025-10-20 18:11     ` Gerhard Engleder
  0 siblings, 1 reply; 8+ messages in thread
From: Horatiu Vultur @ 2025-10-20  6:39 UTC (permalink / raw)
  To: Gerhard Engleder
  Cc: netdev, linux-kernel, andrew, hkallweit1, linux, davem, edumazet,
	kuba, pabeni, richardcochran

The 10/17/2025 23:15, Gerhard Engleder wrote:

Hi Gerhard,

> 
> On 17.10.25 09:47, Horatiu Vultur wrote:
> > The lan8814 has 4 different SKUs and for 2 of these SKUs the PTP is
> > disabled. All these SKUs have the same value in the register 2 and 3
> > meaning we can't differentiate them based on device id therefore check
> 
> Did you miss to start a new sentence?

Yes, I think so. I will update this.

> 
> > the SKU register and based on this allow or not to create a PTP device.
> > 
> > Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
> > ---
> >   drivers/net/phy/micrel.c | 38 ++++++++++++++++++++++++++++++++++++++
> >   1 file changed, 38 insertions(+)
> > 
> > diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c
> > index 79ce3eb6752b6..16855bf8c3916 100644
> > --- a/drivers/net/phy/micrel.c
> > +++ b/drivers/net/phy/micrel.c
> > @@ -101,6 +101,8 @@
> >   #define LAN8814_CABLE_DIAG_VCT_DATA_MASK    GENMASK(7, 0)
> >   #define LAN8814_PAIR_BIT_SHIFT                      12
> > 
> > +#define LAN8814_SKUS                         0xB
> > +
> >   #define LAN8814_WIRE_PAIR_MASK                      0xF
> > 
> >   /* Lan8814 general Interrupt control/status reg in GPHY specific block. */
> > @@ -367,6 +369,9 @@
> > 
> >   #define LAN8842_REV_8832                    0x8832
> > 
> > +#define LAN8814_REV_LAN8814                  0x8814
> > +#define LAN8814_REV_LAN8818                  0x8818
> > +
> >   struct kszphy_hw_stat {
> >       const char *string;
> >       u8 reg;
> > @@ -449,6 +454,7 @@ struct kszphy_priv {
> >       bool rmii_ref_clk_sel;
> >       bool rmii_ref_clk_sel_val;
> >       bool clk_enable;
> > +     bool is_ptp_available;
> >       u64 stats[ARRAY_SIZE(kszphy_hw_stats)];
> >       struct kszphy_phy_stats phy_stats;
> >   };
> > @@ -4130,6 +4136,17 @@ static int lan8804_config_intr(struct phy_device *phydev)
> >       return 0;
> >   }
> > 
> > +/* Check if the PHY has 1588 support. There are multiple skus of the PHY and
> > + * some of them support PTP while others don't support it. This function will
> > + * return true is the sku supports it, otherwise will return false.
> > + */
> 
> Hasn't net also switched to the common kernel multiline comment style
> starting with an empty line?

I am not sure because I can see some previous commits where people used
the same comment style:
e82c64be9b45 ("net: stmmac: avoid PHY speed change when configuring MTU")
100dfa74cad9 ("net: dev_queue_xmit() llist adoption")

> 
> > +static bool lan8814_has_ptp(struct phy_device *phydev)
> > +{
> > +     struct kszphy_priv *priv = phydev->priv;
> > +
> > +     return priv->is_ptp_available;
> > +}
> > +
> >   static irqreturn_t lan8814_handle_interrupt(struct phy_device *phydev)
> >   {
> >       int ret = IRQ_NONE;
> > @@ -4146,6 +4163,9 @@ static irqreturn_t lan8814_handle_interrupt(struct phy_device *phydev)
> >               ret = IRQ_HANDLED;
> >       }
> > 
> > +     if (!lan8814_has_ptp(phydev))
> > +             return ret;
> > +
> >       while (true) {
> >               irq_status = lanphy_read_page_reg(phydev, LAN8814_PAGE_PORT_REGS,
> >                                                 PTP_TSU_INT_STS);
> > @@ -4207,6 +4227,9 @@ static void lan8814_ptp_init(struct phy_device *phydev)
> >           !IS_ENABLED(CONFIG_NETWORK_PHY_TIMESTAMPING))
> >               return;
> > 
> > +     if (!lan8814_has_ptp(phydev))
> > +             return;
> > +
> >       lanphy_write_page_reg(phydev, LAN8814_PAGE_PORT_REGS,
> >                             TSU_HARD_RESET, TSU_HARD_RESET_);
> > 
> > @@ -4336,6 +4359,9 @@ static int __lan8814_ptp_probe_once(struct phy_device *phydev, char *pin_name,
> > 
> >   static int lan8814_ptp_probe_once(struct phy_device *phydev)
> >   {
> > +     if (!lan8814_has_ptp(phydev))
> > +             return 0;
> > +
> >       return __lan8814_ptp_probe_once(phydev, "lan8814_ptp_pin",
> >                                       LAN8814_PTP_GPIO_NUM);
> >   }
> > @@ -4450,6 +4476,18 @@ static int lan8814_probe(struct phy_device *phydev)
> >       devm_phy_package_join(&phydev->mdio.dev, phydev,
> >                             addr, sizeof(struct lan8814_shared_priv));
> > 
> > +     /* There are lan8814 SKUs that don't support PTP. Make sure that for
> > +      * those skus no PTP device is created. Here we check if the SKU
> > +      * supports PTP.
> > +      */
> 
> Check comment style.
> 
> > +     err = lanphy_read_page_reg(phydev, LAN8814_PAGE_COMMON_REGS,
> > +                                LAN8814_SKUS);
> > +     if (err < 0)
> > +             return err;
> > +
> > +     priv->is_ptp_available = err == LAN8814_REV_LAN8814 ||
> > +                              err == LAN8814_REV_LAN8818;
> > +
> >       if (phy_package_init_once(phydev)) {
> >               err = lan8814_release_coma_mode(phydev);
> >               if (err)
> 

-- 
/Horatiu

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] net: phy: micrel: Add support for non PTP SKUs for lan8814
  2025-10-20  6:39   ` Horatiu Vultur
@ 2025-10-20 18:11     ` Gerhard Engleder
  2025-10-21  6:51       ` Horatiu Vultur
                         ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Gerhard Engleder @ 2025-10-20 18:11 UTC (permalink / raw)
  To: Horatiu Vultur
  Cc: netdev, linux-kernel, andrew, hkallweit1, linux, davem, edumazet,
	kuba, pabeni, richardcochran

On 20.10.25 08:39, Horatiu Vultur wrote:
> The 10/17/2025 23:15, Gerhard Engleder wrote:

...

>>>
>>> +/* Check if the PHY has 1588 support. There are multiple skus of the PHY and
>>> + * some of them support PTP while others don't support it. This function will
>>> + * return true is the sku supports it, otherwise will return false.
>>> + */
>>
>> Hasn't net also switched to the common kernel multiline comment style
>> starting with an empty line?
> 
> I am not sure because I can see some previous commits where people used
> the same comment style:
> e82c64be9b45 ("net: stmmac: avoid PHY speed change when configuring MTU")
> 100dfa74cad9 ("net: dev_queue_xmit() llist adoption")

The special coding style for multi line comments for net and drivers/net 
has been removed with
82b8000c28 ("net: drop special comment style")

But I checked a few mails on the list and also found the old style in
new patches.

Gerhard


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] net: phy: micrel: Add support for non PTP SKUs for lan8814
  2025-10-20 18:11     ` Gerhard Engleder
@ 2025-10-21  6:51       ` Horatiu Vultur
  2025-10-21  9:03       ` Russell King (Oracle)
  2025-10-21 23:14       ` Jakub Kicinski
  2 siblings, 0 replies; 8+ messages in thread
From: Horatiu Vultur @ 2025-10-21  6:51 UTC (permalink / raw)
  To: Gerhard Engleder
  Cc: netdev, linux-kernel, andrew, hkallweit1, linux, davem, edumazet,
	kuba, pabeni, richardcochran

The 10/20/2025 20:11, Gerhard Engleder wrote:
> 
> On 20.10.25 08:39, Horatiu Vultur wrote:
> > The 10/17/2025 23:15, Gerhard Engleder wrote:
> 
> ...
> 
> > > > 
> > > > +/* Check if the PHY has 1588 support. There are multiple skus of the PHY and
> > > > + * some of them support PTP while others don't support it. This function will
> > > > + * return true is the sku supports it, otherwise will return false.
> > > > + */
> > > 
> > > Hasn't net also switched to the common kernel multiline comment style
> > > starting with an empty line?
> > 
> > I am not sure because I can see some previous commits where people used
> > the same comment style:
> > e82c64be9b45 ("net: stmmac: avoid PHY speed change when configuring MTU")
> > 100dfa74cad9 ("net: dev_queue_xmit() llist adoption")
> 
> The special coding style for multi line comments for net and drivers/net
> has been removed with
> 82b8000c28 ("net: drop special comment style")
> 
> But I checked a few mails on the list and also found the old style in
> new patches.

Ah...OK. I prefer to keep the current style here.

> 
> Gerhard
> 

-- 
/Horatiu

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] net: phy: micrel: Add support for non PTP SKUs for lan8814
  2025-10-20 18:11     ` Gerhard Engleder
  2025-10-21  6:51       ` Horatiu Vultur
@ 2025-10-21  9:03       ` Russell King (Oracle)
  2025-10-21 23:14       ` Jakub Kicinski
  2 siblings, 0 replies; 8+ messages in thread
From: Russell King (Oracle) @ 2025-10-21  9:03 UTC (permalink / raw)
  To: Gerhard Engleder
  Cc: Horatiu Vultur, netdev, linux-kernel, andrew, hkallweit1, davem,
	edumazet, kuba, pabeni, richardcochran

On Mon, Oct 20, 2025 at 08:11:13PM +0200, Gerhard Engleder wrote:
> On 20.10.25 08:39, Horatiu Vultur wrote:
> > The 10/17/2025 23:15, Gerhard Engleder wrote:
> 
> ...
> 
> > > > 
> > > > +/* Check if the PHY has 1588 support. There are multiple skus of the PHY and
> > > > + * some of them support PTP while others don't support it. This function will
> > > > + * return true is the sku supports it, otherwise will return false.
> > > > + */
> > > 
> > > Hasn't net also switched to the common kernel multiline comment style
> > > starting with an empty line?
> > 
> > I am not sure because I can see some previous commits where people used
> > the same comment style:
> > e82c64be9b45 ("net: stmmac: avoid PHY speed change when configuring MTU")
> > 100dfa74cad9 ("net: dev_queue_xmit() llist adoption")
> 
> The special coding style for multi line comments for net and drivers/net has
> been removed with
> 82b8000c28 ("net: drop special comment style")
> 
> But I checked a few mails on the list and also found the old style in
> new patches.

I hope this means we aren't going to be flooded with loads of "cleanup"
patches converting the comment style.

I also think that the general rule of coding should still apply: keep to
the style that is already present in the file being modified - or if
you're intending to change style, one of the initial patches should do
that before one's own modifications (so the style remains consistent.)
Hopefully netdev maintainers will agree with this ^^^ :)

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] net: phy: micrel: Add support for non PTP SKUs for lan8814
  2025-10-20 18:11     ` Gerhard Engleder
  2025-10-21  6:51       ` Horatiu Vultur
  2025-10-21  9:03       ` Russell King (Oracle)
@ 2025-10-21 23:14       ` Jakub Kicinski
  2025-10-22  4:12         ` Gerhard Engleder
  2 siblings, 1 reply; 8+ messages in thread
From: Jakub Kicinski @ 2025-10-21 23:14 UTC (permalink / raw)
  To: Gerhard Engleder
  Cc: Horatiu Vultur, netdev, linux-kernel, andrew, hkallweit1, linux,
	davem, edumazet, pabeni, richardcochran

On Mon, 20 Oct 2025 20:11:13 +0200 Gerhard Engleder wrote:
> >> Hasn't net also switched to the common kernel multiline comment style
> >> starting with an empty line?  
> > 
> > I am not sure because I can see some previous commits where people used
> > the same comment style:
> > e82c64be9b45 ("net: stmmac: avoid PHY speed change when configuring MTU")
> > 100dfa74cad9 ("net: dev_queue_xmit() llist adoption")  
> 
> The special coding style for multi line comments for net and drivers/net 
> has been removed with
> 82b8000c28 ("net: drop special comment style")
> 
> But I checked a few mails on the list and also found the old style in
> new patches.

We removed the check that _suggests_ the use of the superior style.
Aesthetic taste is not evenly distributed within the population.
But we still prefer the old style in netdev.

That said I don't think nit picking on comment style is productive,
in either direction.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [PATCH net-next] net: phy: micrel: Add support for non PTP SKUs for lan8814
  2025-10-21 23:14       ` Jakub Kicinski
@ 2025-10-22  4:12         ` Gerhard Engleder
  0 siblings, 0 replies; 8+ messages in thread
From: Gerhard Engleder @ 2025-10-22  4:12 UTC (permalink / raw)
  To: Jakub Kicinski
  Cc: Horatiu Vultur, netdev, linux-kernel, andrew, hkallweit1, linux,
	davem, edumazet, pabeni, richardcochran

On 22.10.25 01:14, Jakub Kicinski wrote:
> On Mon, 20 Oct 2025 20:11:13 +0200 Gerhard Engleder wrote:
>>>> Hasn't net also switched to the common kernel multiline comment style
>>>> starting with an empty line?
>>>
>>> I am not sure because I can see some previous commits where people used
>>> the same comment style:
>>> e82c64be9b45 ("net: stmmac: avoid PHY speed change when configuring MTU")
>>> 100dfa74cad9 ("net: dev_queue_xmit() llist adoption")
>>
>> The special coding style for multi line comments for net and drivers/net
>> has been removed with
>> 82b8000c28 ("net: drop special comment style")
>>
>> But I checked a few mails on the list and also found the old style in
>> new patches.
> 
> We removed the check that _suggests_ the use of the superior style.
> Aesthetic taste is not evenly distributed within the population.
> But we still prefer the old style in netdev.
> 
> That said I don't think nit picking on comment style is productive,
> in either direction.

I already had to remove the superior style on netdev. That's why I
commented it here. But I also like the old style more. Thank you for
the clarification!

Gerhard

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-10-22  4:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-17  7:47 [PATCH net-next] net: phy: micrel: Add support for non PTP SKUs for lan8814 Horatiu Vultur
2025-10-17 21:15 ` Gerhard Engleder
2025-10-20  6:39   ` Horatiu Vultur
2025-10-20 18:11     ` Gerhard Engleder
2025-10-21  6:51       ` Horatiu Vultur
2025-10-21  9:03       ` Russell King (Oracle)
2025-10-21 23:14       ` Jakub Kicinski
2025-10-22  4:12         ` Gerhard Engleder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).