> +     if (link_changed != 0) {
> +             struct port_status status;
> +
> +             if (link_changed > 0) {
> +                     netdev_info(netdev, "Link is up - %d/%s\n",
> +                                 priv->phydev->speed,
> +                                 priv->phydev->duplex == DUPLEX_FULL ?
> +                                 "Full" : "Half");
> +             } else {
> +                     netdev_info(netdev, "Link is down\n");
> +             }

phy_print_status()

        Andrew
_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to