Received: by 10.223.176.5 with SMTP id f5csp1027316wra; Fri, 2 Feb 2018 09:57:36 -0800 (PST) X-Google-Smtp-Source: AH8x227szQJHx/pt8SH+qyjqq8eb+jinp1QwRX/KOLwba1oZlX/vCS9AZkNiTmGNlQAKbEfudgiR X-Received: by 2002:a17:902:d24:: with SMTP id 33-v6mr35559560plu.40.1517594256188; Fri, 02 Feb 2018 09:57:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517594256; cv=none; d=google.com; s=arc-20160816; b=PbKttUD58d5MgbnANnj9RIjs2T99YVH9dq3/8UJwG/dDZE/uc0mqebWN2+YnbErqYo Ry5iO3GsGm5a3J1oWDatAMzvuqg2tpgZs355JQQOnNR/yn9YaOyJKWRkuqIUTuRbQN8c uJbrCbqHdLL5T5OU7RSdhw/Dx7AY4yiWTwsTIwgqL90hliPL2XW0C9YfVWM6SeklZwPZ xcU9RVWAb1/j5OtGNRLtnx/1X43r7DUPn51440f2Q2STtn6LUouq4mGj6/Z6aXtlswNX 1/NSrtyhWg9EwwZDg9dhvzkkpOLq6VZIYZKigODQLSKubNQ1h3byR+ahVRFIXuRGs3Er MVJQ== 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=8nQgz4lLW+fWQ1cPkWllXvvx0he6r5FU2VG0nICTvEM=; b=vDLCYtwDu2W0LldYD3grnvb1gG3pTtfmOsgeP+D+r/cUEAf+awGzK/SMc0CbWqikGF coZEN0bK2WkUS7/kFDPqKQ4c0nyie/BV1lc14AxRMkuEKixwxynhHvGpzRYMQGdgFRRG /7iDjeIWDcmM3tsMkuTRZ1/qyRG4GQrAt+leynge3wNeEYbcHfGZkazvcjTyk3whc7jX hT+JYyjsHOsxM1fm8NFpZn0mUs6fQt0wfkxsH9I3XKFKQvIlOMp+Gd9JONME3RdR647Y m5xyWiQ786dGqok/GcKJUaYd/Hf/iKwJlmSgrZEI4aBDrvuhz8pvur8bqc064n1nEiBe xtAg== 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 n6-v6si2157495plp.562.2018.02.02.09.57.21; Fri, 02 Feb 2018 09:57:36 -0800 (PST) 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 S1753585AbeBBR4T (ORCPT + 99 others); Fri, 2 Feb 2018 12:56:19 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:38602 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752537AbeBBRLV (ORCPT ); Fri, 2 Feb 2018 12:11:21 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 4F8D1F08; Fri, 2 Feb 2018 17:11:20 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Yan Markman , Antoine Tenart , Andrew Lunn , "David S. Miller" , Sasha Levin Subject: [PATCH 4.14 094/156] net: phy: marvell10g: fix the PHY id mask Date: Fri, 2 Feb 2018 17:57:55 +0100 Message-Id: <20180202140844.492751137@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140840.242829545@linuxfoundation.org> References: <20180202140840.242829545@linuxfoundation.org> User-Agent: quilt/0.65 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.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Antoine Tenart [ Upstream commit 952b6b3b07877419386e719ff20917170e1ce684 ] The Marvell 10G PHY driver supports different hardware revisions, which have their bits 3..0 differing. To get the correct revision number these bits should be ignored. This patch fixes this by using the already defined MARVELL_PHY_ID_MASK (0xfffffff0) instead of the custom 0xffffffff mask. Fixes: 20b2af32ff3f ("net: phy: add Marvell Alaska X 88X3310 10Gigabit PHY support") Suggested-by: Yan Markman Signed-off-by: Antoine Tenart Reviewed-by: Andrew Lunn Signed-off-by: David S. Miller Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/phy/marvell10g.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/net/phy/marvell10g.c +++ b/drivers/net/phy/marvell10g.c @@ -16,6 +16,7 @@ * link takes priority and the other port is completely locked out. */ #include +#include enum { MV_PCS_BASE_T = 0x0000, @@ -338,7 +339,7 @@ static int mv3310_read_status(struct phy static struct phy_driver mv3310_drivers[] = { { .phy_id = 0x002b09aa, - .phy_id_mask = 0xffffffff, + .phy_id_mask = MARVELL_PHY_ID_MASK, .name = "mv88x3310", .features = SUPPORTED_10baseT_Full | SUPPORTED_100baseT_Full | @@ -360,7 +361,7 @@ static struct phy_driver mv3310_drivers[ module_phy_driver(mv3310_drivers); static struct mdio_device_id __maybe_unused mv3310_tbl[] = { - { 0x002b09aa, 0xffffffff }, + { 0x002b09aa, MARVELL_PHY_ID_MASK }, { }, }; MODULE_DEVICE_TABLE(mdio, mv3310_tbl);