Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/624186/?format=api
{ "id": 624186, "url": "http://patchwork.ozlabs.org/api/patches/624186/?format=api", "web_url": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-15-git-send-email-sven.eckelmann@open-mesh.com/", "project": { "id": 45, "url": "http://patchwork.ozlabs.org/api/projects/45/?format=api", "name": "OpenWrt development", "link_name": "openwrt", "list_id": "openwrt-devel.lists.openwrt.org", "list_email": "openwrt-devel@lists.openwrt.org", "web_url": "http://openwrt.org/", "scm_url": "git://git.openwrt.org/openwrt.git", "webscm_url": "https://dev.openwrt.org/browser", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<1463682077-19339-15-git-send-email-sven.eckelmann@open-mesh.com>", "list_archive_url": null, "date": "2016-05-19T18:20:58", "name": "[OpenWrt-Devel,CC,15/34] ar71xx: Use PHY fixups for Open Mesh MR1750", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "8b9240060e6cfba24a51af99ba01a4adcc0490ab", "submitter": { "id": 68437, "url": "http://patchwork.ozlabs.org/api/people/68437/?format=api", "name": "Sven Eckelmann", "email": "sven.eckelmann@open-mesh.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/openwrt/patch/1463682077-19339-15-git-send-email-sven.eckelmann@open-mesh.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/624186/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/624186/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<openwrt-devel-bounces@lists.openwrt.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org", "Received": [ "from arrakis.dune.hu (caladan.dune.hu [78.24.191.180])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3r9ffg3LZ2z9sdg\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 20 May 2016 04:26:51 +1000 (AEST)", "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id D5136B9203F;\n\tThu, 19 May 2016 20:22:35 +0200 (CEST)", "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP;\n\tThu, 19 May 2016 20:22:35 +0200 (CEST)", "from arrakis.dune.hu (localhost [127.0.0.1])\n\tby arrakis.dune.hu (Postfix) with ESMTP id CAB75B91FCA\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:21:57 +0200 (CEST)", "from mail-wm0-f43.google.com (mail-wm0-f43.google.com\n\t[74.125.82.43]) by arrakis.dune.hu (Postfix) with ESMTPS\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 20:21:57 +0200 (CEST)", "by mail-wm0-f43.google.com with SMTP id n129so48254161wmn.1\n\tfor <openwrt-devel@lists.openwrt.org>;\n\tThu, 19 May 2016 11:21:57 -0700 (PDT)", "from sven-desktop.home.narfation.org\n\t(p579E6DC9.dip0.t-ipconnect.de. [87.158.109.201])\n\tby smtp.gmail.com with ESMTPSA id\n\taz2sm15701195wjc.6.2016.05.19.11.21.56\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 19 May 2016 11:21:56 -0700 (PDT)" ], "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=open-mesh-com.20150623.gappssmtp.com\n\theader.i=@open-mesh-com.20150623.gappssmtp.com\n\theader.b=0r3i/Xmv; dkim-atps=neutral", "X-Spam-Checker-Version": "SpamAssassin 3.4.1 (2015-04-28) on arrakis.dune.hu", "X-Spam-Level": "", "X-Spam-Status": "No, score=-1.5 required=5.0 tests=BAYES_00,T_DKIM_INVALID\n\tautolearn=unavailable autolearn_force=no version=3.4.1", "X-policyd-weight": "using cached result; rate:hard: -7", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=open-mesh-com.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=Quuju1pM3hRiSHhy7P6Lua9t1qcXI7Z7ZsW/gDWFOsA=;\n\tb=0r3i/XmvakhS7P/w8GoiFtQOJudEdG+244Vx6BfBsOzA3EN42nzEMnNmbgYB4y31Mu\n\tG8tEhdnCbWyqXnuPumBYNuk3UqQPtAByeUpHR98yv1ok3uQBxq27x67VIlqP+sqeRgNH\n\tnjvaZ2gsKaUTeGW7MCzSSlsFlrJiaWZGTJjuh51Sumq4YgwzjHFM0LKSxNPaal7SBK1L\n\t4+zx/+PsGmGZ0EgPGjv/e7vllBL1oavlfHiH/zE8q8NHk6X0GhiOXfuo39RlniO1xBay\n\tKjLCbzjFucFqBFoX/7XxWlmrajktTws2WA9x7Fyn9Pf7ykUYE0Mnu3RlObiaZU6A4so0\n\t+x3g==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=Quuju1pM3hRiSHhy7P6Lua9t1qcXI7Z7ZsW/gDWFOsA=;\n\tb=KSy2kTXRu7hu/1j63//8hRgJZAnBQoWRcdKUsgPEjzy+AyMuBTfLOdKh21kCqvmb1s\n\t4guMrPbhJss7uxEY466odpPTNSFEeIuI3BituF0r5zUvalHaNLldC1kAiurfYIPe8oOM\n\t941xwSVfZm81ZKfb+RdJxoPnHwqK+68ilgC+btrzjRMlTJ2HBXgvFJaYkZtfa9KKdQp+\n\tiZRzo24ojKzutDj67/RZS5vKqm/evMGdbqZY7ivz3bXpaXmxUHX3foDTu9rd+JlaZFN2\n\tqcfFHFNsuptCEzmWNCh0AnB9rR0eQTj4E2jRKrdqzv92htLJfYVFuRoTqkPpyyO4EFEo\n\t9UCg==", "X-Gm-Message-State": "AOPr4FURI5ThHKXjCxa+RhVsU/rBj1tN+3zGkoa1hgzH2qAqDY32uqgJ5wk82DXEZCFC2AFb", "X-Received": "by 10.195.11.197 with SMTP id ek5mr14829034wjd.58.1463682117434; \n\tThu, 19 May 2016 11:21:57 -0700 (PDT)", "From": "Sven Eckelmann <sven.eckelmann@open-mesh.com>", "To": "openwrt-devel@lists.openwrt.org", "Date": "Thu, 19 May 2016 20:20:58 +0200", "Message-Id": "<1463682077-19339-15-git-send-email-sven.eckelmann@open-mesh.com>", "X-Mailer": "git-send-email 2.8.1", "In-Reply-To": "<1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com>", "References": "<1463682077-19339-1-git-send-email-sven.eckelmann@open-mesh.com>", "Subject": "[OpenWrt-Devel] [PATCH CC 15/34] ar71xx: Use PHY fixups for Open\n\tMesh MR1750", "X-BeenThere": "openwrt-devel@lists.openwrt.org", "X-Mailman-Version": "2.1.20", "Precedence": "list", "List-Id": "OpenWrt Development List <openwrt-devel.lists.openwrt.org>", "List-Unsubscribe": "<https://lists.openwrt.org/cgi-bin/mailman/options/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe>", "List-Archive": "<http://lists.openwrt.org/pipermail/openwrt-devel/>", "List-Post": "<mailto:openwrt-devel@lists.openwrt.org>", "List-Help": "<mailto:openwrt-devel-request@lists.openwrt.org?subject=help>", "List-Subscribe": "<https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel>,\n\t<mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe>", "Cc": "Sven Eckelmann <sven.eckelmann@open-mesh.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "base64", "Errors-To": "openwrt-devel-bounces@lists.openwrt.org", "Sender": "\"openwrt-devel\" <openwrt-devel-bounces@lists.openwrt.org>" }, "content": "The delays of PHY/MAC on the MR1750 are done by u-boot and OpenWrt in\ndifferent ways. u-boot only modifies the ETH_CFG of the QCA955x based on\nthe link speed. But OpenWrt can only modify the PHY delays based on the\nlink speed.\n\nThis can lead to communication problems when u-boot initializes the ETH_CFG\nfor a specific link speed (e.g. 10BASE-T) but then OpenWrt the sets the PHY\ndelays to an incompatible value.\n\nInstead reset the ETH_CFG delay bits of the QCA955x to a specific value and\nonly rely on the AT803x PHY settings.\n\nSigned-off-by: Sven Eckelmann <sven.eckelmann@open-mesh.com>\n\nBackport of r49031\n---\n .../ar71xx/files/arch/mips/ath79/mach-mr1750.c | 25 +++++++++++++++++++---\n 1 file changed, 22 insertions(+), 3 deletions(-)", "diff": "diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c\nindex 8ace02f..f9e45bd 100644\n--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c\n+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mr1750.c\n@@ -22,6 +22,7 @@\n #include <linux/ar8216_platform.h>\n \n #include <asm/mach-ath79/ar71xx_regs.h>\n+#include <linux/platform_data/phy-at803x.h>\n \n #include \"common.h\"\n #include \"dev-ap9x-pci.h\"\n@@ -92,14 +93,29 @@ static struct gpio_keys_button mr1750_gpio_keys[] __initdata = {\n \t},\n };\n \n+static struct at803x_platform_data mr1750_at803x_data = {\n+\t.disable_smarteee = 1,\n+\t.enable_rgmii_rx_delay = 1,\n+\t.enable_rgmii_tx_delay = 0,\n+\t.fixup_rgmii_tx_delay = 1,\n+};\n+\n+static struct mdio_board_info mr1750_mdio0_info[] = {\n+\t{\n+\t\t.bus_id = \"ag71xx-mdio.0\",\n+\t\t.phy_addr = 5,\n+\t\t.platform_data = &mr1750_at803x_data,\n+\t},\n+};\n+\n static void __init mr1750_setup(void)\n {\n \tu8 *art = (u8 *)KSEG1ADDR(0x1fff0000);\n \tu8 mac[6];\n \n-\tath79_eth0_pll_data.pll_1000 = 0xbe000101;\n-\tath79_eth0_pll_data.pll_100 = 0x80000101;\n-\tath79_eth0_pll_data.pll_10 = 0x80001313;\n+\tath79_eth0_pll_data.pll_1000 = 0xae000000;\n+\tath79_eth0_pll_data.pll_100 = 0xa0000101;\n+\tath79_eth0_pll_data.pll_10 = 0xa0001313;\n \n \tath79_register_m25p80(NULL);\n \n@@ -116,6 +132,9 @@ static void __init mr1750_setup(void)\n \tath79_setup_qca955x_eth_cfg(QCA955X_ETH_CFG_RGMII_EN);\n \tath79_register_mdio(0, 0x0);\n \n+\tmdiobus_register_board_info(mr1750_mdio0_info,\n+\t\t\t\t ARRAY_SIZE(mr1750_mdio0_info));\n+\n \tath79_init_mac(ath79_eth0_data.mac_addr, art + MR1750_MAC0_OFFSET, 0);\n \n \t/* GMAC0 is connected to the RMGII interface */\n", "prefixes": [ "OpenWrt-Devel", "CC", "15/34" ] }