From patchwork Fri Jan 22 19:16:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: amessier.tyco@gmail.com X-Patchwork-Id: 571772 X-Patchwork-Delegate: joe.hershberger@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id E446A140B0E for ; Sat, 23 Jan 2016 06:16:34 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=JFJagIFz; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9C5874BEF0; Fri, 22 Jan 2016 20:16:32 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZYdkIZA8s8pA; Fri, 22 Jan 2016 20:16:32 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AC8834BEE3; Fri, 22 Jan 2016 20:16:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B2AD64BEC9 for ; Fri, 22 Jan 2016 20:16:28 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yz4EYvvCE2j3 for ; Fri, 22 Jan 2016 20:16:28 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-io0-f177.google.com (mail-io0-f177.google.com [209.85.223.177]) by theia.denx.de (Postfix) with ESMTPS id 4FC584BE9B for ; Fri, 22 Jan 2016 20:16:21 +0100 (CET) Received: by mail-io0-f177.google.com with SMTP id 77so97741115ioc.2 for ; Fri, 22 Jan 2016 11:16:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=SevBBSpUIFkXixngIWDndjnTYJAMJg1H60D1RcpM/UA=; b=JFJagIFzwPfKsIOOk9v0kgTW/Y0t5SVFO4Kd7qG9qKlB0pbJpMuhiwjP3pPOw/EebC 53NJ21qyFLuaUVOB4o6HgSIVXXDVr4M48zqLJhN+EwFCiO8wsUo89PJozbGicKaErYpQ 3Z6AgvSsFK6C6E2XXfFQ5g9YPeTyK/FRCOoBnEVc9cQ9IoYdfrYsiPxznHRrkTVqu7TY bzvs/KJ9pC5mmbL1rzsNaLTU6ys0Bpf0yx77H+YQjzgmVSlkWUMijtvYmlEu5Ugl11G/ XUn5aXn/qrzz76P+sZs0pnY6CbHctyQKUSgM8p0xqMH7akAvYoGOvzD6y1gZounhOSt7 LmLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SevBBSpUIFkXixngIWDndjnTYJAMJg1H60D1RcpM/UA=; b=EqWhBcEh21A0TTw0gEswMspyyCd91Pngs8ewb+vOWrfbZZQT9fE9e+SJCtaBzLWmOI HrXojK4NJGIpnd//fVddLhSjbVNcbpmD8efzbajYJvZfpNr9nSudOZAe38gJqDFMhkZM S7OVp7wZ2BEKo64T5b59eth4MJ2kU4zXTTbJEdSmv8Siut6n2S8z9K8s6M4Co35klawV XvLsElvBOFX4hqrhGBFQYbXy4lZH9fpfIXgYgG43dZKmcynchcoXxp96SmTpCSG12XjN YJfEloxe/Du7LQSvXnAJX+GF1ZX1v/wtmdbin13vHa8urkCvn/SpoHRTB5fXP29fMfsv rd5Q== X-Gm-Message-State: AG10YORbBopD2UXCt7bVbG2IpOgZVlkXsbtyIOc4wpIhxYkC9s8DZ0f//j6uezeATfbgCg== X-Received: by 10.107.14.199 with SMTP id 190mr5215821ioo.54.1453490180159; Fri, 22 Jan 2016 11:16:20 -0800 (PST) Received: from cabro3emblnx061.americas.tsp.ad ([74.51.240.241]) by smtp.gmail.com with ESMTPSA id wd7sm1762204igb.13.2016.01.22.11.16.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jan 2016 11:16:19 -0800 (PST) From: amessier.tyco@gmail.com To: u-boot@lists.denx.de Date: Fri, 22 Jan 2016 14:16:15 -0500 Message-Id: <1453490175-15106-1-git-send-email-amessier.tyco@gmail.com> X-Mailer: git-send-email 2.7.0 Cc: joe.hershberger@ni.com, amessier@tycoint.com Subject: [U-Boot] [PATCH] net: phy: Set ANRESTART in setup_forced X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Alexandre Messier When configuring a PHY in fixed (forced) link mode, in order for the changes to be applied, either one of these conditions must be triggered: 1- PHY is reset 2- Autoneg is restarted 3- PHY transitions from power-down to power-up Neither of these is currently done, so effectively the fixed link configuration is not applied in the PHY. Fix this by setting the Autoneg restart bit. Signed-off-by: Alexandre Messier Acked-by: Joe Hershberger --- drivers/net/phy/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index a6023f1..1d8eed5 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -116,7 +116,7 @@ static int genphy_config_advert(struct phy_device *phydev) static int genphy_setup_forced(struct phy_device *phydev) { int err; - int ctl = 0; + int ctl = BMCR_ANRESTART; phydev->pause = phydev->asym_pause = 0;