RE: [PATCH net-next 2/2] net: phy: tja11xx: add interface mode and RMII REF_CLK support
From: Wei Fang
Date: Sun Aug 21 2022 - 21:16:21 EST
> -----Original Message-----
> From: Andrew Lunn <andrew@xxxxxxx>
> Sent: 2022年8月19日 20:51
> To: Wei Fang <wei.fang@xxxxxxx>
> Cc: davem@xxxxxxxxxxxxx; edumazet@xxxxxxxxxx; kuba@xxxxxxxxxx;
> pabeni@xxxxxxxxxx; robh+dt@xxxxxxxxxx; krzysztof.kozlowski+dt@xxxxxxxxxx;
> f.fainelli@xxxxxxxxx; hkallweit1@xxxxxxxxx; linux@xxxxxxxxxxxxxxx;
> netdev@xxxxxxxxxxxxxxx; devicetree@xxxxxxxxxxxxxxx;
> linux-kernel@xxxxxxxxxxxxxxx
> Subject: Re: [PATCH net-next 2/2] net: phy: tja11xx: add interface mode and
> RMII REF_CLK support
>
> > +/* Configure REF_CLK as input in RMII mode */
> > +#define TJA110X_RMII_MODE_REFCLK_IN BIT(0)
> > +
> > struct tja11xx_priv {
> > char *hwmon_name;
> > struct device *hwmon_dev;
> > struct phy_device *phydev;
> > struct work_struct phy_register_work;
> > + u32 quirks;
>
> A quirk is generally a workaround for a bug. Configuring a clock is not a quirk. I
> would rename this flags.
>
Thanks, I'll rename it.