From patchwork Wed Mar 15 20:27:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iyappan Subramanian X-Patchwork-Id: 9626607 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7408E60244 for ; Wed, 15 Mar 2017 20:26:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 634F528625 for ; Wed, 15 Mar 2017 20:26:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 57F4528672; Wed, 15 Mar 2017 20:26:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D6C0A28625 for ; Wed, 15 Mar 2017 20:26:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=C+pn7Hu8erM685nfLSQ+VfZA+Tk2KO1RO7yx6DcvSUo=; b=pPbjjdrGQlxFiCpRQrAQx5P736 Iw6vO0L52mSjfBu+1o/B46ZFIkXa2Bd8g7hzhYIbgzpmjr/5WdcBlLtQUfUONb2P0sD0pMJpPDUmS w22jmFbTB4Ht+9s+Kw45LKuGxm61Hw7/zlduOyanoeI7jSl/Pt5/dTgRkoWDf2vfgWN3Pp6DDSMYm WprOIqIi5PcB5U1xjpD6eUDj63jjcBKUeY7WniKxy92rFhCoFezK8tWpMBpXJWXn1EQ0e8Xh0IxMa 8Nyx+dXuY3lVbn6doyvO+0mLlSECkIg0uPzCCGLzRY0UKT5ykGImoB0leDPREzYyeZQfQkH/Mazk7 9m4DAtVA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1coFVO-00019R-JP; Wed, 15 Mar 2017 20:26:46 +0000 Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1coFV3-0000mi-RR for linux-arm-kernel@lists.infradead.org; Wed, 15 Mar 2017 20:26:27 +0000 Received: by mail-pg0-x22a.google.com with SMTP id g2so14059385pge.3 for ; Wed, 15 Mar 2017 13:26:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apm.com; s=apm; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=yocoVn5/cu+j5+1WhkrmEymfXVTLFiJxQbcbXgDNlvw=; b=pJlEEEsdlHZHy59c5v7JZN70e+uyiaydLQz+VL4VNssW10jsah1LWbzJ2zDFSU1k4V FAIEb8AePpnWTv2Z5mZOC0SNOVnBybgstEvd3F+RZDTuaYbzSoqtvHrqvti2bDCvrEBn LBazd2LOEP/7Vd8kZpWE1LTy0jqNi5Yeg1WW4= 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=yocoVn5/cu+j5+1WhkrmEymfXVTLFiJxQbcbXgDNlvw=; b=otjiJSsQ8BcBt9TNwcIn1BMsQe+7X2vzPtZ6CSb7aaV0FzFMm6vRKhmOXufCZ1txNe cPwhhGg/LXZcMCu6ZfNP1hRsRdjpXIcFflBT4D4vtVKHwY1aXHSgwa+IeKFlRhBsyvjp mnO7muhjHL0WkWYe78Gfm4aQWJDuvfQv1MLVdDilApuFUDdqf14rYXEsvNUB6cSByksG fWhvVcMAd/Md9I4arMj5E5hy+m5lt7MmD6JRBnM2VoOe6LSZqqeUlwBBAx0CTSWe/D58 NQ+jATZq2L/fqe2HFBoEjxgz8tlvRgIiJzlAlb/izJ2MHk6Mu9F1BYzqd2isXqEr83MC wbAA== X-Gm-Message-State: AFeK/H3hH3EHMoMiN/GaFDzlfzCKPNjjcmeqjh3+Shqw+mL9K6fQOJDMoznYy0UX55d5xOUs X-Received: by 10.84.146.140 with SMTP id g12mr7059467pla.70.1489609564894; Wed, 15 Mar 2017 13:26:04 -0700 (PDT) Received: from isubrama-dev.amcc.com ([206.80.4.98]) by smtp.gmail.com with ESMTPSA id r67sm5922281pfb.125.2017.03.15.13.26.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Mar 2017 13:26:04 -0700 (PDT) From: Iyappan Subramanian To: davem@davemloft.net, netdev@vger.kernel.org Subject: [PATCH net-next 1/7] drivers: net: phy: xgene: Fix mdio write Date: Wed, 15 Mar 2017 13:27:15 -0700 Message-Id: <1489609641-31557-2-git-send-email-isubramanian@apm.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489609641-31557-1-git-send-email-isubramanian@apm.com> References: <1489609641-31557-1-git-send-email-isubramanian@apm.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170315_132625_916572_F59AC1E7 X-CRM114-Status: UNSURE ( 9.80 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kchudgar@apm.com, Iyappan Subramanian , patches@apm.com, linux-arm-kernel@lists.infradead.org, qnguyen@apm.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quan Nguyen This patches fixes a typo in the argument to xgene_enet_wr_mdio_csr(). Signed-off-by: Quan Nguyen Signed-off-by: Iyappan Subramanian --- 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);