Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1599949

[PATCH net-next 01/12] net: phy: bcm-phylib: replace obsolete EEE macro references

Path csiph.com!1.us.feeder.erje.net!2.us.feeder.erje.net!feeder.erje.net!2.eu.feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!news.unit0.net!news.panservice.it!bofh.it!news.nic.it!robomod
From Doug Berger <opendmb@gmail.com>
Newsgroups linux.kernel
Subject [PATCH net-next 01/12] net: phy: bcm-phylib: replace obsolete EEE macro references
Date Tue, 14 Mar 2017 01:50:02 +0100
Message-ID <tkIOZ-AW-5@gated-at.bofh.it> (permalink)
References <tkIOZ-AW-3@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yYzWmxgu9yCAlfXro2Y9Z5+W5I4wH7i5+doZDJDecSo=; b=gvj/wKeSn6NTfBRpaw9ZPSZuAuDkhD6vb0TYjfurHygEew+cf6Xlq7pecaHFRof66r CJxxRVF49Oxoxb8H1kOWHPLzte7XTzOZJ6QN+1y6fPW7lEOPq8dI42DJ1Jbf9zBjVwQm hLZjhyWxqYqCMTE3UHTZlOO5NYZ53ZTc98pBzkPbvqFCW/0G+cHGcuEgGK7KNk5s4uJs 4T+i88zHP+iVqOscTBXQzmcxlNyXT5HGQ8mEnIx3KoOscgOhFHTJsV4ng9jU67SLpSjM FRWVAXTyWvGC0aFeDCkUOL/T624jFLRaUR1uqKDSboPxSUjIpwnwirI7NSChyrqkei1z sy5g==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=yYzWmxgu9yCAlfXro2Y9Z5+W5I4wH7i5+doZDJDecSo=; b=D1RQIV3k80Id92ZYN13vyJZqsHRxiyqXSiWUgiZ+4F2FQPDzRziUFKMSbpHmvMkvIC pH3+rvgVphZvW64m6EhbF6BgJFDLkIBMybHR8t7U4P3+zl6BZuOt7yHf92fb6oZbSbXz X8K7ZIyNa8CrvwKfp70Tbe1xaylmCtSwVRWiHpHBU3fbexiu3dnIHUDQoNREKe3GS7HL TJNDH9XdZ/9/fXgxSe+/ODYUQXfEIVGtd3DNAkOWRRIS8Qg3cFYy+xIi3mWLyN4N3kPW XJIHrULcic5vPp+tSarMQhRLsKHXn75Fd1yLbkLP48NnW0JwcABhvWGgZANkPa+k/p09 WMww==
X-Gm-Message-State AMke39lDmXNqvC5GlhHar2FWwqA3fH4YbdNUWSSjaKORjMpap2c3mmfLkQtbjYB8CHb/4w==
X-Received by 10.200.49.232 with SMTP id i37mr33620474qte.241.1489452125210; Mon, 13 Mar 2017 17:42:05 -0700 (PDT)
X-Mailer git-send-email 2.11.1
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 34
Organization linux.* mail to news gateway
X-Original-Cc robh+dt@kernel.org, mark.rutland@arm.com, davem@davemloft.net, rafal@milecki.pl, xow@google.com, joel@jms.id.au, jon.mason@broadcom.com, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, pgynther@google.com, jaedon.shin@gmail.com, Doug Berger <opendmb@gmail.com>
X-Original-Date Mon, 13 Mar 2017 17:41:31 -0700
X-Original-Message-ID <20170314004142.4746-2-opendmb@gmail.com>
X-Original-References <20170314004142.4746-1-opendmb@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1599949

Show key headers only | View raw


The macros MDIO_AN_EEE_ADV_100TX and MDIO_AN_EEE_ADV_1000T are now
considered obsolete and are replaced in the kernel with the generic
macros MDIO_EEE_100TX and MDIO_EEE_1000T respectively.

Signed-off-by: Doug Berger <opendmb@gmail.com>
---
 drivers/net/phy/bcm-phy-lib.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/phy/bcm-phy-lib.c b/drivers/net/phy/bcm-phy-lib.c
index ab9ad689617c..9656dbeb5de5 100644
--- a/drivers/net/phy/bcm-phy-lib.c
+++ b/drivers/net/phy/bcm-phy-lib.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2015 Broadcom Corporation
+ * Copyright (C) 2015-2017 Broadcom
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -221,9 +221,9 @@ int bcm_phy_set_eee(struct phy_device *phydev, bool enable)
 		return val;
 
 	if (enable)
-		val |= (MDIO_AN_EEE_ADV_100TX | MDIO_AN_EEE_ADV_1000T);
+		val |= (MDIO_EEE_100TX | MDIO_EEE_1000T);
 	else
-		val &= ~(MDIO_AN_EEE_ADV_100TX | MDIO_AN_EEE_ADV_1000T);
+		val &= ~(MDIO_EEE_100TX | MDIO_EEE_1000T);
 
 	phy_write_mmd_indirect(phydev, BCM_CL45VEN_EEE_ADV,
 			       MDIO_MMD_AN, (u32)val);
-- 
2.11.1

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH net-next 01/12] net: phy: bcm-phylib: replace obsolete EEE macro references Doug Berger <opendmb@gmail.com> - 2017-03-14 01:50 +0100

csiph-web