From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jC2LR-0004VA-LI for barebox@lists.infradead.org; Wed, 11 Mar 2020 14:28:29 +0000 From: Sascha Hauer Date: Wed, 11 Mar 2020 15:27:56 +0100 Message-Id: <20200311142757.25263-16-s.hauer@pengutronix.de> In-Reply-To: <20200311142757.25263-1-s.hauer@pengutronix.de> References: <20200311142757.25263-1-s.hauer@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 15/16] net: phy: Do not claim the link is up initially To: Barebox List Cc: Edmund Henniges , =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= A freshly created phy device doesn't have the link up, so drop setting phydev->link to one initially. Signed-off-by: Sascha Hauer --- drivers/net/phy/phy.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index a440edffd6..57c2f8044f 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -165,7 +165,6 @@ struct phy_device *phy_device_create(struct mii_bus *bus, int addr, int phy_id) phydev->speed = 0; phydev->duplex = -1; phydev->pause = phydev->asym_pause = 0; - phydev->link = 1; phydev->autoneg = AUTONEG_ENABLE; phydev->addr = addr; -- 2.25.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox