{"id":812750,"url":"http://patchwork.ozlabs.org/api/1.2/patches/812750/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/patch/1505210076-32311-1-git-send-email-hayashi.kunihiko@socionext.com/","project":{"id":7,"url":"http://patchwork.ozlabs.org/api/1.2/projects/7/?format=json","name":"Linux network development","link_name":"netdev","list_id":"netdev.vger.kernel.org","list_email":"netdev@vger.kernel.org","web_url":null,"scm_url":null,"webscm_url":null,"list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<1505210076-32311-1-git-send-email-hayashi.kunihiko@socionext.com>","list_archive_url":null,"date":"2017-09-12T09:54:35","name":"[net-next,v2,1/2] net: phy: realtek: rename RTL8211F_PAGE_SELECT to RTL821x_PAGE_SELECT","commit_ref":null,"pull_url":null,"state":"accepted","archived":true,"hash":"b9608d2ca5484ad982fc7a10ef0b8ef58a91462b","submitter":{"id":71700,"url":"http://patchwork.ozlabs.org/api/1.2/people/71700/?format=json","name":"Kunihiko Hayashi","email":"hayashi.kunihiko@socionext.com"},"delegate":{"id":34,"url":"http://patchwork.ozlabs.org/api/1.2/users/34/?format=json","username":"davem","first_name":"David","last_name":"Miller","email":"davem@davemloft.net"},"mbox":"http://patchwork.ozlabs.org/project/netdev/patch/1505210076-32311-1-git-send-email-hayashi.kunihiko@socionext.com/mbox/","series":[{"id":2649,"url":"http://patchwork.ozlabs.org/api/1.2/series/2649/?format=json","web_url":"http://patchwork.ozlabs.org/project/netdev/list/?series=2649","date":"2017-09-12T09:54:35","name":"[net-next,v2,1/2] net: phy: realtek: rename RTL8211F_PAGE_SELECT to RTL821x_PAGE_SELECT","version":2,"mbox":"http://patchwork.ozlabs.org/series/2649/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/812750/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/812750/checks/","tags":{},"related":[],"headers":{"Return-Path":"<netdev-owner@vger.kernel.org>","X-Original-To":"patchwork-incoming@ozlabs.org","Delivered-To":"patchwork-incoming@ozlabs.org","Authentication-Results":"ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)","Received":["from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xs0Wv6x7Zz9s4s\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 12 Sep 2017 19:54:51 +1000 (AEST)","(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751381AbdILJyr (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 12 Sep 2017 05:54:47 -0400","from mx.socionext.com ([202.248.49.38]:35968 \"EHLO\n\tmx.socionext.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1751286AbdILJyq (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tTue, 12 Sep 2017 05:54:46 -0400","from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54])\n\tby mx.socionext.com with ESMTP; 12 Sep 2017 18:54:45 +0900","from mail.mfilter.local (unknown [10.213.24.62])\n\tby iyokan-ex.css.socionext.com (Postfix) with ESMTP id DDE83610C6;\n\tTue, 12 Sep 2017 18:54:45 +0900 (JST)","from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP;\n\tTue, 12 Sep 2017 18:54:45 +0900","from plum.e01.socionext.com (unknown [10.213.132.32])\n\tby kinkan.css.socionext.com (Postfix) with ESMTP id A1CBB1A0E11;\n\tTue, 12 Sep 2017 18:54:45 +0900 (JST)"],"From":"Kunihiko Hayashi <hayashi.kunihiko@socionext.com>","To":"Andrew Lunn <andrew@lunn.ch>,\n\tFlorian Fainelli <f.fainelli@gmail.com>, netdev@vger.kernel.org","Cc":"Jassi Brar <jaswinder.singh@linaro.org>,\n\tKunihiko Hayashi <hayashi.kunihiko@socionext.com>","Subject":"[PATCH net-next v2 1/2] net: phy: realtek: rename\n\tRTL8211F_PAGE_SELECT to RTL821x_PAGE_SELECT","Date":"Tue, 12 Sep 2017 18:54:35 +0900","Message-Id":"<1505210076-32311-1-git-send-email-hayashi.kunihiko@socionext.com>","X-Mailer":"git-send-email 2.7.4","Sender":"netdev-owner@vger.kernel.org","Precedence":"bulk","List-ID":"<netdev.vger.kernel.org>","X-Mailing-List":"netdev@vger.kernel.org"},"content":"This renames the definition of page select register from\nRTL8211F_PAGE_SELECT to RTL821x_PAGE_SELECT to use it across models.\n\nSigned-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>\n---\nChanges since v1:\n - new patch in this series\n---\n drivers/net/phy/realtek.c | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)","diff":"diff --git a/drivers/net/phy/realtek.c b/drivers/net/phy/realtek.c\nindex 9cbe645..99c3297 100644\n--- a/drivers/net/phy/realtek.c\n+++ b/drivers/net/phy/realtek.c\n@@ -22,11 +22,11 @@\n #define RTL821x_INER\t\t0x12\n #define RTL821x_INER_INIT\t0x6400\n #define RTL821x_INSR\t\t0x13\n+#define RTL821x_PAGE_SELECT\t0x1f\n #define RTL8211E_INER_LINK_STATUS 0x400\n \n #define RTL8211F_INER_LINK_STATUS 0x0010\n #define RTL8211F_INSR\t\t0x1d\n-#define RTL8211F_PAGE_SELECT\t0x1f\n #define RTL8211F_TX_DELAY\t0x100\n \n MODULE_DESCRIPTION(\"Realtek PHY driver\");\n@@ -46,10 +46,10 @@ static int rtl8211f_ack_interrupt(struct phy_device *phydev)\n {\n \tint err;\n \n-\tphy_write(phydev, RTL8211F_PAGE_SELECT, 0xa43);\n+\tphy_write(phydev, RTL821x_PAGE_SELECT, 0xa43);\n \terr = phy_read(phydev, RTL8211F_INSR);\n \t/* restore to default page 0 */\n-\tphy_write(phydev, RTL8211F_PAGE_SELECT, 0x0);\n+\tphy_write(phydev, RTL821x_PAGE_SELECT, 0x0);\n \n \treturn (err < 0) ? err : 0;\n }\n@@ -102,7 +102,7 @@ static int rtl8211f_config_init(struct phy_device *phydev)\n \tif (ret < 0)\n \t\treturn ret;\n \n-\tphy_write(phydev, RTL8211F_PAGE_SELECT, 0xd08);\n+\tphy_write(phydev, RTL821x_PAGE_SELECT, 0xd08);\n \treg = phy_read(phydev, 0x11);\n \n \t/* enable TX-delay for rgmii-id and rgmii-txid, otherwise disable it */\n@@ -114,7 +114,7 @@ static int rtl8211f_config_init(struct phy_device *phydev)\n \n \tphy_write(phydev, 0x11, reg);\n \t/* restore to default page 0 */\n-\tphy_write(phydev, RTL8211F_PAGE_SELECT, 0x0);\n+\tphy_write(phydev, RTL821x_PAGE_SELECT, 0x0);\n \n \treturn 0;\n }\n","prefixes":["net-next","v2","1/2"]}