From: Mugunthan V N Date: Thu, 25 Jun 2015 16:51:02 +0000 (+0530) Subject: net: phy: fix phy link up when limiting speed via device tree X-Git-Tag: omap-for-v4.2/fixes-rc1^2~57^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb686231fce3770299760f24fdcf5ad041f44153;p=pandora-kernel.git net: phy: fix phy link up when limiting speed via device tree When limiting phy link speed using "max-speed" to 100mbps or less on a giga bit phy, phy never completes auto negotiation and phy state machine is held in PHY_AN. Fixing this issue by comparing the giga bit advertise though phydev->supported doesn't have it but phy has BMSR_ESTATEN set. So that auto negotiation is restarted as old and new advertise are different and link comes up fine. Signed-off-by: Mugunthan V N Reviewed-by: Florian Fainelli Signed-off-by: David S. Miller --- Reading git-diff-tree failed