From patchwork Fri Jun 3 13:16:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Rossi X-Patchwork-Id: 629829 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 3rLl3v33Nbz9t5x for ; Fri, 3 Jun 2016 23:16:43 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nathanrossi-com.20150623.gappssmtp.com header.i=@nathanrossi-com.20150623.gappssmtp.com header.b=tzFQxniA; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F26E0A74DA; Fri, 3 Jun 2016 15:16:41 +0200 (CEST) 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 OpX-yfyEHjKR; Fri, 3 Jun 2016 15:16:41 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6013EA74BA; Fri, 3 Jun 2016 15:16:41 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 99533A74BA for ; Fri, 3 Jun 2016 15:16:38 +0200 (CEST) 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 0RRUwClS1dMP for ; Fri, 3 Jun 2016 15:16:38 +0200 (CEST) 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-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by theia.denx.de (Postfix) with ESMTPS id 27080A74A8 for ; Fri, 3 Jun 2016 15:16:33 +0200 (CEST) Received: by mail-pf0-f194.google.com with SMTP id c84so11523460pfc.1 for ; Fri, 03 Jun 2016 06:16:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nathanrossi-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=wYnBgNIkfZITrQFiyBjoq6yeX1GeGd96hf+r//GiLCs=; b=tzFQxniAyF/rnKQyUG0ntKFKeHZeeQ2vOS8i94QSr092CX1O8FWRiPUUmCFE4tLhkX o+LRWuEZ6+lveX5QEDOy7I2kGyo9bt9zd9d8YsVEUf+wRYdW5Uz1xRS1tMxXbgZm+9ju Q9N5BFMB+LTk+hu4GyCEKv6c/Nx8th7HHQoeVWOr20KafcurxvCpv6GsBMrQ5JXlCaxo zmhxgw/sxOy+HxWgi6k7QWDqqh4c23i6tepIQY5kMTIocjlDW8f2/NGl3vvY1SgVlWjP rY1Nuu9gFkAZCFa8Zye6Zfejt70+l0MGmS79lvOPM1UnY33DaSM7jcI95nG+8wKi24Rc 13Sg== 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=wYnBgNIkfZITrQFiyBjoq6yeX1GeGd96hf+r//GiLCs=; b=iiprsl4+nPMuzaLTguoSDuN9Kvz2rbrzD7oVdZ/awITFu8v5NBEnqTCE7UOxgWOxwK sSc1zy/kJbAmVWx6lp48Q7ZO58ZcJFA/k99NOeDGxCc83Jm6ISDcNwyw4rL4kfRUQAfj b1+B2ABzKNr8ryGbbd4aQ6AK40HBRErrjSrbvVK3VPhCl9U0BlrY5axfY7cI8cs9Xl+q AEgWkRwvygsuVT/pHRGY4+pSJkqMHV9g4by7meEOHBHv59Qux/9uItt/MZwj/L/2pycA crBq4vhI2gs2o6v/Nz3KeNIXLIhnALmnHWZhNPqExESED6qnzk87P5Uw2WESZ96fUwMy p0vg== X-Gm-Message-State: ALyK8tK+5l96JOK4bKDzZTabE9Xk/9hYbVFUmc6RMWYGXftEzskZZwoXN9Z++H2j+oKMRA== X-Received: by 10.98.98.6 with SMTP id w6mr6325561pfb.0.1464959791903; Fri, 03 Jun 2016 06:16:31 -0700 (PDT) Received: from nathanbox.home.rossihq.com (CPE-123-211-128-43.lnse3.woo.bigpond.net.au. [123.211.128.43]) by smtp.gmail.com with ESMTPSA id l123sm725892pfl.21.2016.06.03.06.16.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jun 2016 06:16:31 -0700 (PDT) From: Nathan Rossi To: u-boot@lists.denx.de Date: Fri, 3 Jun 2016 23:16:17 +1000 Message-Id: <1464959777-30464-1-git-send-email-nathan@nathanrossi.com> X-Mailer: git-send-email 2.8.1 Cc: Joe Hershberger , Stefan Roese , Michal Simek , Nathan Rossi Subject: [U-Boot] [PATCH] net: phy: marvell: Do not reset 88e1310 after autoneg 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" Commit a058052c "net: phy: do not read configuration register on reset", changes the behaviour of the phy_reset function such that the state of the BMCR register is not preserved during reset. Change the config function for the m88e1310 so that it does not do a reset after configuring auto-negotiation. Signed-off-by: Nathan Rossi Cc: Joe Hershberger Cc: Michal Simek Cc: Stefan Roese Acked-by: Michal Simek Acked-by: Joe Hershberger Reviewed-by: Stefan Roese --- drivers/net/phy/marvell.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/net/phy/marvell.c b/drivers/net/phy/marvell.c index d2e68d4..58d287b 100644 --- a/drivers/net/phy/marvell.c +++ b/drivers/net/phy/marvell.c @@ -476,10 +476,7 @@ static int m88e1310_config(struct phy_device *phydev) /* Ensure to return to page 0 */ phy_write(phydev, MDIO_DEVAD_NONE, MIIM_88E1310_PHY_PAGE, 0x0000); - genphy_config_aneg(phydev); - phy_reset(phydev); - - return 0; + return genphy_config_aneg(phydev); } static struct phy_driver M88E1011S_driver = {