Birger Koblitz <[email protected]> [2019-06-03 19:04:23]:

> +             phy0: ethernet-phy@0 {
> +                     status ="disabled";

missing space after = and you've just copy&pasted it to the second file.

> +                     status = "disabled";
> +                     reg = <4>;
> +                     phy-mode = "rgmii";
> +             };
> +     };
> +};
> +
> +

remove the extra new line here.

> +&gsw {
> +     mediatek,port5 = "gmac";
> +};
> +
> +

here as well.

> +                     label = "ew-7478ac:blue:wlan2g";
> +                     linux,default-trigger = "phy1radio";
> +
> +                     label = "ew-7478ac:blue:wlan5g";
> +                     linux,default-trigger = "phy0radio";

it makes me wonder what's wrong with the phy0tpt/phy1tpt throughput based and
defacto default triggers.

> +     if(!phy_reset)
> +             return;

ERROR: space required before the open parenthesis '('
#567: FILE:
target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c:1346:
+       if(!phy_reset)

> +     if (IS_ERR(phy_reset)){

ERROR: space required before the open brace '{'
#570: FILE:
target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mtk_eth_soc.c:1349:
+       if (IS_ERR(phy_reset)){

> +             dev_err(priv->dev, "Error acquiring reset gpio pins: %ld\n",
> +                     PTR_ERR(phy_reset));
> +             return;
> +     }

new line here please.

> +     err = of_property_read_u32(priv->dev->of_node, "phy-reset-duration",
> +                                &msec);
> +     if (!err && msec > 1000)
> +             msec = 30;
> +
> +     mdelay(msec);

>From Documentation/timers/timers-howto.txt:

 SLEEPING FOR ~USECS OR SMALL MSECS ( 10us - 20ms):
         * Use usleep_range

 SLEEPING FOR LARGER MSECS ( 10ms+ )
        * Use msleep or possibly msleep_interruptible

So you probably want:

 if (msec > 20)
        msleep(msec);
 else
        usleep_range(msec * 1000, msec * 1000 + 1000);

-- ynezz

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to