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 casper.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jCJKw-000842-HW for barebox@lists.infradead.org; Thu, 12 Mar 2020 08:37:04 +0000 From: Sascha Hauer Date: Thu, 12 Mar 2020 09:35:53 +0100 Message-Id: <20200312083555.10793-18-s.hauer@pengutronix.de> In-Reply-To: <20200312083555.10793-1-s.hauer@pengutronix.de> References: <20200312083555.10793-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 17/19] 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