Subject: Re: [PATCH net-next v2 09/10] r8169: remove mii_if_info member from struct rtl8169_private

From: Andrew Lunn <[email-masked]>
Date: Tue, 10 Jul 2018 23:00:36 +0200

> @@ -6719,7 +6703,7 @@ static int r8169_phy_connect(struct rtl8169_private *tp)
>  	if (ret)
>  		return ret;
>  
> -	if (!tp->mii.supports_gmii && phydev->supported & PHY_1000BT_FEATURES) {
> +	if (!tp->supports_gmii && phydev->supported & PHY_1000BT_FEATURES) {

It is better to use phy_set_max_speed() with SPEED_100 if
tp->supports_gmii is not set.

	  Andrew