Re: [PATCH net-next 3/3] net: phy: mediatek: add driver for built-in 2.5G ethernet PHY on MT7988
From: SkyLake Huang (黃啟澤)
Date: Fri Feb 14 2025 - 08:30:20 EST
On Thu, 2025-01-16 at 13:45 +0100, Krzysztof Kozlowski wrote:
>
> External email : Please do not click links or open attachments until
> you have verified the sender or the content.
>
>
> On 16/01/2025 02:21, Sky Huang wrote:
> > +
> > +static int mt798x_2p5ge_phy_load_fw(struct phy_device *phydev)
> > +{
> > + struct mtk_i2p5ge_phy_priv *priv = phydev->priv;
> > + void __iomem *mcu_csr_base, *pmb_addr;
> > + struct device *dev = &phydev->mdio.dev;
> > + const struct firmware *fw;
> > + struct device_node *np;
> > + int ret, i;
> > + u32 reg;
> > +
> > + if (priv->fw_loaded)
> > + return 0;
> > +
> > + np = of_find_compatible_node(NULL, NULL, "mediatek,2p5gphy-
> > fw");
>
> There is no such compatible. You cannot just add undocumented
> bindings.
>
> Also, devices should not just look for some random compatibles.
> Express
> proper relationships with phandles or node hierarchy.
>
Hi Krzysztof,
OK. I'll add dt-bindings' document in next version.
BR,
Sky
>