Received: by 10.213.65.68 with SMTP id h4csp1105579imn; Thu, 22 Mar 2018 15:36:23 -0700 (PDT) X-Google-Smtp-Source: AG47ELv9CaMTzfBKl0Wl9f9HXaxxYSHe4M4s15bl+czEnooSrb9eYcc6bgOcGAGkX3+xo+2Tyytw X-Received: by 10.98.12.140 with SMTP id 12mr15710934pfm.123.1521758182941; Thu, 22 Mar 2018 15:36:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521758182; cv=none; d=google.com; s=arc-20160816; b=OzPO32EGGC6ZnMjHAYJ4KXC6hbFmU8IHrlAcHq0rJO5o3ws2YaDirUUp6u8BPifk0q u3CwnAKAsEGiSWfc6znX7oVTTYIQ813qughIPwPnP+VbQtiodveya1EinJcG58uAdjUX gLzpphPDfSN1LAWqLCZJh9Bkjl4eVHVVVV9ok4iFNbnVizAr6aE3+Nv5mNRmeWGBWGOU hF3xn9FIfvAXrujSP/CGGvvd7el4bBpHrFD76A3l6fM4CfHnlxNJjuy//7rx017473S/ VjmPxyiBi/Q3kQeP2KmTPSI1pi5x+XAH8CgKWp4ljsapgEqglD0p4qAKSswIm0b+3T8B 0Lqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=qgSjEyj1LCysEUZXObnYIytp1a7S0T9Py6UgNmVpHss=; b=uuux82ngc7dUeHrQn5CY+/f7CaTWqemO3rpO1XTlLimQ9HieWuqd4YEW5GLf37fMNr NSEDa7Pz9GQ6+aob148pWxjOM2Rn5xC1PjedhVDVkY5kRPrmQgJYD/bARzEHhEe6zcPU N9JvYIjpI5LvRasWQoKcp4a8R1ecionB/UoWqDhG/BO1zZyTCvTxZ0LC4i2HIkglUWcU KCFyDLtA0+PWeJxSvpOmJPkBlV3RA8j0E0aeMgiOvKoqgTrnDq4ulHVwEH5XyCYqnR+P +M5/XPG7dMbftevy7Fnfbye6ZqDSEMRQPbVuLh4J4hAyQTimqS+hO/Kvnhf4b78RogO+ tTYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kresin-me.20150623.gappssmtp.com header.s=20150623 header.b=Duui7B+u; 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 b1-v6si1953882pld.227.2018.03.22.15.36.08; Thu, 22 Mar 2018 15:36:22 -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; dkim=pass header.i=@kresin-me.20150623.gappssmtp.com header.s=20150623 header.b=Duui7B+u; 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 S1752156AbeCVWeN (ORCPT + 99 others); Thu, 22 Mar 2018 18:34:13 -0400 Received: from mail-wr0-f194.google.com ([209.85.128.194]:41881 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976AbeCVWeI (ORCPT ); Thu, 22 Mar 2018 18:34:08 -0400 Received: by mail-wr0-f194.google.com with SMTP id f14so10269966wre.8 for ; Thu, 22 Mar 2018 15:34:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kresin-me.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=qgSjEyj1LCysEUZXObnYIytp1a7S0T9Py6UgNmVpHss=; b=Duui7B+u+iJ5BsL+LB/um+EcDGmC01WHL27TH2LjQf2T8wBA2ACkJBNfMMRI547oM5 ZmoakJCHel+hS0gHfCh1+RkHweNHx6+sVeVNlpUlTrp0w074+2mqxWXZ4nSVeFoWfjW8 8iZ5v8gcquoEWWP5rnncTCuazaHGtFCZ2ajYffo/Ki5amZDrfHIOw+vD9Bty/4Nkzjl1 zph+3YN/oU3VhR8ok5RB/p94mE1OoNXWpftLHkJpcHAoATdOmJ7hizpTmLg7FJuimBBc MV+L0zzWEaT0o1QpSnDjGYZ2TVw1V1Nw+YlbZqBlZSmBXZ85Z4lEn2QktcOa6X6QpBE0 GTRQ== 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; bh=qgSjEyj1LCysEUZXObnYIytp1a7S0T9Py6UgNmVpHss=; b=TCf17O51lCD4kKNkH5NSxK7AF3RS+qP+Vjz/TyzfTkuv9UXYm3PEpgkg+Wuc8fWKDn lK7KxQsvP1RI+IxZcBCzgzPc4eWqz0b6IES6nK6dCs41PbyXZoUztXoe/vndG7AmiLCt EsfEh1wrpXFs4JXcGTpwBPlubJhTbYmzoST1pq/rd+4jOg+msdMkJHhreZrkNg9ecNp4 QwokOJZCXPf/Gb1ffsNNFfuBqhpuedzLuckKq97229CL3NUjka1O5OLnZ3fLdW+18u9h 6F8bpPwBQUq9Owigbu+CqQdBUy6uhzkX770/k5wZN0PXEhDZ4Swa4dSA5+eISOe/8eci tr2w== X-Gm-Message-State: AElRT7ENqBEeYuRkkKaRyX6KMZrBRIDGwyqMnbH7ZCe5T6FIdIxIGW/s wjLIoVJyFIwPG0QGvFepc+jbFw== X-Received: by 10.223.181.148 with SMTP id c20mr16345207wre.65.1521758046668; Thu, 22 Mar 2018 15:34:06 -0700 (PDT) Received: from desktop.wvd.kresin.me (p2003008C2F1C6400A13E2F695A539B1D.dip0.t-ipconnect.de. [2003:8c:2f1c:6400:a13e:2f69:5a53:9b1d]) by smtp.gmail.com with ESMTPSA id 14sm11163805wml.41.2018.03.22.15.34.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Mar 2018 15:34:06 -0700 (PDT) From: Mathias Kresin To: andrew@lunn.ch, f.fainelli@gmail.com, hauke@hauke-m.de Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] net: phy: intel-xway: add VR9 version number Date: Thu, 22 Mar 2018 23:31:38 +0100 Message-Id: <1521757899-27813-1-git-send-email-dev@kresin.me> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The VR9 phy ids are matching only for the SoC version 1.2. Rename the macros and change the names to take this into account. Signed-off-by: Mathias Kresin --- drivers/net/phy/intel-xway.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/phy/intel-xway.c b/drivers/net/phy/intel-xway.c index a11f80c..c7eff67 100644 --- a/drivers/net/phy/intel-xway.c +++ b/drivers/net/phy/intel-xway.c @@ -149,8 +149,8 @@ #define PHY_ID_PHY22F_1_4 0xD565A410 #define PHY_ID_PHY11G_1_5 0xD565A401 #define PHY_ID_PHY22F_1_5 0xD565A411 -#define PHY_ID_PHY11G_VR9 0xD565A409 -#define PHY_ID_PHY22F_VR9 0xD565A419 +#define PHY_ID_PHY11G_VR9_1_2 0xD565A409 +#define PHY_ID_PHY22F_VR9_1_2 0xD565A419 static int xway_gphy_config_init(struct phy_device *phydev) { @@ -312,9 +312,9 @@ static struct phy_driver xway_gphy[] = { .suspend = genphy_suspend, .resume = genphy_resume, }, { - .phy_id = PHY_ID_PHY11G_VR9, + .phy_id = PHY_ID_PHY11G_VR9_1_2, .phy_id_mask = 0xffffffff, - .name = "Intel XWAY PHY11G (xRX integrated)", + .name = "Intel XWAY PHY11G (xRX v1.2 integrated)", .features = PHY_GBIT_FEATURES, .flags = PHY_HAS_INTERRUPT, .config_init = xway_gphy_config_init, @@ -324,9 +324,9 @@ static struct phy_driver xway_gphy[] = { .suspend = genphy_suspend, .resume = genphy_resume, }, { - .phy_id = PHY_ID_PHY22F_VR9, + .phy_id = PHY_ID_PHY22F_VR9_1_2, .phy_id_mask = 0xffffffff, - .name = "Intel XWAY PHY22F (xRX integrated)", + .name = "Intel XWAY PHY22F (xRX v1.2 integrated)", .features = PHY_BASIC_FEATURES, .flags = PHY_HAS_INTERRUPT, .config_init = xway_gphy_config_init, @@ -346,8 +346,8 @@ static struct mdio_device_id __maybe_unused xway_gphy_tbl[] = { { PHY_ID_PHY22F_1_4, 0xffffffff }, { PHY_ID_PHY11G_1_5, 0xffffffff }, { PHY_ID_PHY22F_1_5, 0xffffffff }, - { PHY_ID_PHY11G_VR9, 0xffffffff }, - { PHY_ID_PHY22F_VR9, 0xffffffff }, + { PHY_ID_PHY11G_VR9_1_2, 0xffffffff }, + { PHY_ID_PHY22F_VR9_1_2, 0xffffffff }, { } }; MODULE_DEVICE_TABLE(mdio, xway_gphy_tbl); -- 2.7.4