Re: [PATCH v6 4/4] phy: airoha: Add support for Airoha AN7581 USB PHY
From: Krzysztof Kozlowski
Date: Sat Mar 07 2026 - 05:33:59 EST
On Fri, Mar 06, 2026 at 08:01:53PM +0100, Christian Marangi wrote:
> + for (index = 0; index < AIROHA_PHY_USB_MAX; index++) {
> + enum an7581_usb_phy_instance_type phy_type;
> + struct an7581_usb_phy_instance *instance;
> +
> + switch (index) {
> + case AIROHA_PHY_USB2:
> + phy_type = PHY_TYPE_USB2;
> + break;
> + case AIROHA_PHY_USB3:
> + phy_type = PHY_TYPE_USB3;
> + break;
> + }
> +
> + if (phy_type == PHY_TYPE_USB3) {
> + ret = of_property_read_u32(dev->of_node, "airoha,usb3-serdes",
> + &priv->serdes_port);
> + if (ret)
> + return dev_err_probe(dev, ret, "missing serdes line for USB 3.0\n");
> +
> + priv->scu = syscon_regmap_lookup_by_compatible("airoha,en7581-scu");
Nope, you need phandle to express proper device links.
Don't sprinkle compatible lookups for new code which does not need to
keep things backwards compatible. How do you manage device links
without phandle? How do you manage device probe ordering?
Best regards,
Krzysztof