Received: by 10.213.65.68 with SMTP id h4csp1770170imn; Mon, 19 Mar 2018 12:47:38 -0700 (PDT) X-Google-Smtp-Source: AG47ELujS9zgsVdv3af2dS+akl2/0M047NxmPK1hcZJm4h/lnPGnLSWMYQxnMjl87zlzrEPHKUfi X-Received: by 2002:a17:902:7045:: with SMTP id h5-v6mr13652267plt.217.1521488858724; Mon, 19 Mar 2018 12:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521488858; cv=none; d=google.com; s=arc-20160816; b=HVYMaEBGQAnO4rnRoPcNoCLC6ASdvUHsiQ5vjU9zhOt4fBSD4apOnzTrJBVSTTAgGX aRF0aemeJJeNiyV2y0gGfTvxTQ1ybB4Dg66mhpF0jd359gt7aiqXOzymcsdG5hAHIlsV AcuYLUFq0zQdg/5knC9bZAyjEri9D+7HxsQM5isb4O4nCUHgbGMyHbqQKVZMWgWLWhAk qD/63ex10/7I73eaIl0kxipz2En0uomyOAZmPXjDd2gujJRUdVm9v+f9Ewa4pqBiDLu2 eT7FIoh7R4DkbUoqPi+xuLY6HWkDDJ/uyu9lBZDNJ1BpNZRcxoJ6PkNj7n+6I81RRPN0 1NzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=yq8C8uKSjUDHsy+q677Fp65Ph6ERJHeCfNvCrxLj2dw=; b=QUwVTbcZ6f1ADKTb2xrOP5KzlyjoYxsLcZs65WMQRLuunZd8zFyjHT8qejfMu8e/JR RmAzDMAP6lGwpcDf/ZUs9edIyynZlez1Dbe6Re75S+m4hpSm+4qo60a3xqTdi+8SJ39j HDfgysd+tBwmYhEnr8d3QWlMBJ2AP/ur6Lmthd6KyKy5sW2LhNBa2BF9dE1WXJFiYN8R Vhn75LNZD2fEXzj2kt1UdGh/IAqaYiDL7iAmj+NZtpuxiDzFIljgGtcxbywwP/Za9B83 cUMubeymsGQzjCs/oYYuJGosKg+x3eQu/Nvht8gFICIxoiw54k+cH8nEH0sfi9XCEzhk QZ0A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33-v6si571935plf.98.2018.03.19.12.47.24; Mon, 19 Mar 2018 12:47:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968945AbeCSTpj (ORCPT + 99 others); Mon, 19 Mar 2018 15:45:39 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:47800 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969540AbeCSSUp (ORCPT ); Mon, 19 Mar 2018 14:20:45 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9582411D3; Mon, 19 Mar 2018 18:20:44 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Quan Nguyen , Iyappan Subramanian , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 029/241] drivers: net: phy: xgene: Fix mdio write Date: Mon, 19 Mar 2018 19:04:54 +0100 Message-Id: <20180319180752.373015832@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180751.172155436@linuxfoundation.org> References: <20180319180751.172155436@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Quan Nguyen [ Upstream commit 4b72436dc3dd2457056b22d6f147777368c869fa ] This patches fixes a typo in the argument to xgene_enet_wr_mdio_csr(). Signed-off-by: Quan Nguyen Signed-off-by: Iyappan Subramanian Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/phy/mdio-xgene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/phy/mdio-xgene.c +++ b/drivers/net/phy/mdio-xgene.c @@ -232,7 +232,7 @@ static int xgene_xfi_mdio_write(struct m 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);