Subject: Re: [PATCH net-next v11 4/7] net: tn40xx: add basic Tx handling

From: Jakub Kicinski <[email-masked]>
Date: Wed, 19 Jun 2024 07:55:07 -0700

On Wed, 19 Jun 2024 12:44:22 +0900 (JST) FUJITA Tomonori wrote:
> >> +static void tn40_link_changed(struct tn40_priv *priv)
> >> +{
> >> +	u32 link = tn40_read_reg(priv,
> >> +				 TN40_REG_MAC_LNK_STAT) & TN40_MAC_LINK_STAT;
> >> +
> >> +	netdev_dbg(priv->ndev, "link changed %u\n", link);  
> > 
> > shouldn't this call netif_carrier_on / off?  
> 
> According to phylink doc, a driver shouldn't call them?

My bad, forgot you're using phylink!
Purely out of my own curiosity - do you know what this link change
detects, then? In my mental model PHY detects the link, sends some 
form of a notification, then MAC gets configured.