netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Iyappan Subramanian <isubramanian@apm.com>
To: davem@davemloft.net, netdev@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org, patches@apm.com,
	kchudgar@apm.com, qnguyen@apm.com,
	Iyappan Subramanian <isubramanian@apm.com>
Subject: [PATCH net-next 1/7] drivers: net: phy: xgene: Fix mdio write
Date: Wed, 15 Mar 2017 13:27:15 -0700	[thread overview]
Message-ID: <1489609641-31557-2-git-send-email-isubramanian@apm.com> (raw)
In-Reply-To: <1489609641-31557-1-git-send-email-isubramanian@apm.com>

From: Quan Nguyen <qnguyen@apm.com>

This patches fixes a typo in the argument to xgene_enet_wr_mdio_csr().

Signed-off-by: Quan Nguyen <qnguyen@apm.com>
Signed-off-by: Iyappan Subramanian <isubramanian@apm.com>
---
 drivers/net/phy/mdio-xgene.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/phy/mdio-xgene.c b/drivers/net/phy/mdio-xgene.c
index f095051..3e2ac07 100644
--- a/drivers/net/phy/mdio-xgene.c
+++ b/drivers/net/phy/mdio-xgene.c
@@ -229,7 +229,7 @@ static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id,
 
 	val = SET_VAL(HSTPHYADX, phy_id) | SET_VAL(HSTREGADX, reg) |
 	      SET_VAL(HSTMIIMWRDAT, data);
-	xgene_enet_wr_mdio_csr(addr, MIIM_FIELD_ADDR, data);
+	xgene_enet_wr_mdio_csr(addr, MIIM_FIELD_ADDR, val);
 
 	val = HSTLDCMD | SET_VAL(HSTMIIMCMD, MIIM_CMD_LEGACY_WRITE);
 	xgene_enet_wr_mdio_csr(addr, MIIM_COMMAND_ADDR, val);
-- 
1.9.1

  reply	other threads:[~2017-03-15 20:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-15 20:27 [PATCH net-next 0/7] drivers: net: xgene: Bug fixes and errata workarounds Iyappan Subramanian
2017-03-15 20:27 ` Iyappan Subramanian [this message]
2017-03-15 20:27 ` [PATCH net-next 2/7] drivers: net: xgene: Fix hardware checksum setting Iyappan Subramanian
2017-03-15 20:27 ` [PATCH net-next 3/7] drivers: net: xgene: Fix wrong logical operation Iyappan Subramanian
2017-03-15 20:27 ` [PATCH net-next 4/7] drivers: net: xgene: Fix Rx checksum validation logic Iyappan Subramanian
2017-03-15 20:27 ` [PATCH net-next 5/7] drivers: net: xgene: Add workaround for errata 10GE_1 Iyappan Subramanian
2017-03-15 20:27 ` [PATCH net-next 6/7] drivers: net: xgene: Add workaround for errata 10GE_8/ENET_11 Iyappan Subramanian
2017-03-15 20:27 ` [PATCH net-next 7/7] MAINTAINERS: Update X-Gene SoC ethernet maintainer Iyappan Subramanian
2017-03-16  4:53 ` [PATCH net-next 0/7] drivers: net: xgene: Bug fixes and errata workarounds David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1489609641-31557-2-git-send-email-isubramanian@apm.com \
    --to=isubramanian@apm.com \
    --cc=davem@davemloft.net \
    --cc=kchudgar@apm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=netdev@vger.kernel.org \
    --cc=patches@apm.com \
    --cc=qnguyen@apm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).