{"id":809337,"url":"http://patchwork.ozlabs.org/api/patches/809337/?format=json","web_url":"http://patchwork.ozlabs.org/project/lede/patch/10765588.6PpTN9TRU3@tool/","project":{"id":54,"url":"http://patchwork.ozlabs.org/api/projects/54/?format=json","name":"LEDE development","link_name":"lede","list_id":"lede-dev.lists.infradead.org","list_email":"lede-dev@lists.infradead.org","web_url":"http://lede-project.org/","scm_url":"","webscm_url":"http://git.lede-project.org/","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<10765588.6PpTN9TRU3@tool>","list_archive_url":null,"date":"2017-09-03T17:41:42","name":"[LEDE-DEV] ar71xx: WNDR4300: use the switch LED trigger on the WAN port","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"e9108ca9f14016184b3f53659c8f398d9687b191","submitter":{"id":65797,"url":"http://patchwork.ozlabs.org/api/people/65797/?format=json","name":"Daniel González Cabanelas","email":"dgcbueu@gmail.com"},"delegate":{"id":55824,"url":"http://patchwork.ozlabs.org/api/users/55824/?format=json","username":"mkresin","first_name":"Mathias","last_name":"Kresin","email":"openwrt@kresin.me"},"mbox":"http://patchwork.ozlabs.org/project/lede/patch/10765588.6PpTN9TRU3@tool/mbox/","series":[{"id":1263,"url":"http://patchwork.ozlabs.org/api/series/1263/?format=json","web_url":"http://patchwork.ozlabs.org/project/lede/list/?series=1263","date":"2017-09-03T17:41:42","name":"[LEDE-DEV] ar71xx: WNDR4300: use the switch LED trigger on the WAN port","version":1,"mbox":"http://patchwork.ozlabs.org/series/1263/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809337/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809337/checks/","tags":{},"related":[],"headers":{"Return-Path":"<lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"Wtgj30yW\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"qMmSpyyI\"; dkim-atps=neutral"],"Received":["from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xlgKm6fggz9t3f\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon,  4 Sep 2017 03:42:34 +1000 (AEST)","from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1doYuS-0007U1-Ae; Sun, 03 Sep 2017 17:42:12 +0000","from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1doYuO-0007Sm-CV\n\tfor lede-dev@lists.infradead.org; Sun, 03 Sep 2017 17:42:10 +0000","by mail-wm0-x241.google.com with SMTP id p17so4521459wmd.3\n\tfor <lede-dev@lists.infradead.org>;\n\tSun, 03 Sep 2017 10:41:47 -0700 (PDT)","from tool.localnet ([139.47.3.239])\n\tby smtp.googlemail.com with ESMTPSA id\n\tw13sm2917708edb.16.2017.09.03.10.41.44\n\tfor <lede-dev@lists.infradead.org>\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 03 Sep 2017 10:41:44 -0700 (PDT)"],"DKIM-Signature":["v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:Subject:MIME-Version:Message-ID:Date:To\n\t:From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From:\n\tResent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:\n\tList-Owner; bh=wbUoBQNZ6Nh7AtCoWotmFAbiS0Wp6Es2wadhzS1uiaQ=;\n\tb=Wtgj30yWSAznrS\n\telxr+o/OOdObIhyul/eQTymrZ8Q8fEwFZzdekPBsP42KdhAXVSnLHTMuPURB6PeaalsgZ2DaXfQmu\n\t9+1/mrFhknP4eJAshgkrQVL4n+PjAWIIjkxx7gZ/m8kOFbu7gqM3KEFKOusuGVtc2SbKn4w2XTIam\n\tY4E5F+5lvczO5vzRh5H1ZgdUC6igz7sCeehn/9Y9ILaDDsdUp7bZDPdypWdi+1DJ9MtsxwtN3LhKH\n\tqlhFDbgeJYRI9CD792f9DoPFbTiiSMBD+KCZcYCjOWCNQAJQCVS2oOzqEMDFxhWAzL5IUWGH68xex\n\t68Hg2EAZKTmwDb2at/pA==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:subject:date:message-id:user-agent:mime-version\n\t:content-transfer-encoding;\n\tbh=syErxEWpVgfQy6Q7WzoAupC+bfVZRLrS+8QeCl9kcog=;\n\tb=qMmSpyyIw8jGJ5W54D2FmYC2XziXXFV4KoleumE5lqdH/S7LJWVmZPX750OCaKiV1z\n\tgbA+yGUmpqGN/ffynBbHOqB0shgFYQgaMeVbqAWVDURF9/gfp9R+DYACggwCVA+oEj8q\n\tBZUAq25+269hvgCcyWf6vFdWW6D7PEtvf3agZtLaQovbrQt8gd7t/os/lv73mvfBGf4X\n\tBeXTupRz6zXRIHvMYz0QxFCnYTSUZsbtmU9MOl4w2f5dObHaxnz2YA+niDVgx/nfglej\n\t5XeW7uoyDMybW4NZxg5Vz7aLMmV3z/Q/iqtg7CG81+LakJQETyl4VX1B/gBEmuDqB+zx\n\t5/lg=="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:subject:date:message-id:user-agent\n\t:mime-version:content-transfer-encoding;\n\tbh=syErxEWpVgfQy6Q7WzoAupC+bfVZRLrS+8QeCl9kcog=;\n\tb=D/G2j01iIlGWy01NdcrjYUM34rwS3d3X5ww/gAnsFSrSZTsx1oybKP+QWJFuKxVQfF\n\tVW7c2j1nz/wYyvXy9To2lUvN0ualw/Mtd/Jlq1Ybv4WtE6flUwcxc9gU46YoG1GNBHCV\n\tzOHn9/XgKEu2n41TK0+6wyK5aS0v2JPYy4X3tzWEJBGQLy8aS0+D1AKfqRBgkSzOUGwv\n\tq0jLIkdBPkQ6jaAhsmOIyC/FnsbQFzeYhVqAKOeDGiWc3p7k7cdvlUAJxsHWu2ral8py\n\tcufJ/KNd7sh1ewzuwizCRUtBwhRX84CdgkQQGTuIMCqWJuMk9cP++4AoCrq6qQ18OWHC\n\tk/vw==","X-Gm-Message-State":"AHPjjUjCXpeJMKHJOXoSjUONZmHVTMJHt6ICM7uALCTnIMhctWuGYXG0\n\tGAGHddOr3UYS3Fnv","X-Google-Smtp-Source":"ADKCNb4nH66cph4lGb2kGzSG/tkERkH0mnqj8FNyZlU1J4LkjQKN4I94yLRx6P5ptA9n+wF06FK/nA==","X-Received":"by 10.80.163.227 with SMTP id t32mr4282135edb.29.1504460505590; \n\tSun, 03 Sep 2017 10:41:45 -0700 (PDT)","From":"Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>","To":"lede-dev@lists.infradead.org","Date":"Sun, 03 Sep 2017 19:41:42 +0200","Message-ID":"<10765588.6PpTN9TRU3@tool>","User-Agent":"KMail/4.14.10 (Linux/4.6.5-1-zen; KDE/4.14.14; x86_64; ; )","MIME-Version":"1.0","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170903_104208_610830_F7F17EE8 ","X-CRM114-Status":"UNSURE (   8.95  )","X-CRM114-Notice":"Please train this message.","X-Spam-Score":"-2.0 (--)","X-Spam-Report":"SpamAssassin version 3.4.1 on bombadil.infradead.org summary:\n\tContent analysis details:   (-2.0 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (dgcbueu[at]gmail.com)\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2a00:1450:400c:c09:0:0:0:241 listed in] [list.dnswl.org]\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain","Subject":"[LEDE-DEV] [PATCH] ar71xx: WNDR4300: use the switch LED trigger on\n\tthe WAN port","X-BeenThere":"lede-dev@lists.infradead.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<lede-dev.lists.infradead.org>","List-Unsubscribe":"<http://lists.infradead.org/mailman/options/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=unsubscribe>","List-Archive":"<http://lists.infradead.org/pipermail/lede-dev/>","List-Post":"<mailto:lede-dev@lists.infradead.org>","List-Help":"<mailto:lede-dev-request@lists.infradead.org?subject=help>","List-Subscribe":"<http://lists.infradead.org/mailman/listinfo/lede-dev>,\n\t<mailto:lede-dev-request@lists.infradead.org?subject=subscribe>","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Sender":"\"Lede-dev\" <lede-dev-bounces@lists.infradead.org>","Errors-To":"lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org"},"content":"The WAN port on the Netgear WNDR4300 router has two LEDs, \namber and green. Use the switch LED trigger to behave as the \nrest of the LAN HW controlled LEDs\n- Green: 1 Gbps\n- Amber: 100/10 Mbps\n\nSigned-off-by: Daniel Gonzalez Cabanelas <dgcbueu@gmail.com>\n---\n target/linux/ar71xx/base-files/etc/board.d/01_leds | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)","diff":"diff --git a/target/linux/ar71xx/base-files/etc/board.d/01_leds b/target/linux/ar71xx/base-files/etc/board.d/01_leds\nindex 84b1a7d..4132e91 100755\n--- a/target/linux/ar71xx/base-files/etc/board.d/01_leds\n+++ b/target/linux/ar71xx/base-files/etc/board.d/01_leds\n@@ -823,7 +823,8 @@ r6100)\n \t;;\n wndr3700v4|\\\n wndr4300)\n-\tucidef_set_led_netdev \"wan\" \"WAN (green)\" \"netgear:green:wan\" \"eth0.2\"\n+\tucidef_set_led_switch \"wan-green\" \"WAN (green)\" \"netgear:green:wan\" \"switch0\" \"0x20\" \"0x08\"\n+\tucidef_set_led_switch \"wan-amber\" \"WAN (amber)\" \"netgear:amber:wan\" \"switch0\" \"0x20\" \"0x06\"\n \tucidef_set_led_usbdev \"usb\" \"USB\" \"netgear:green:usb\" \"1-1\"\n \tucidef_set_led_wlan \"wlan2g\" \"WLAN2G\" \"netgear:green:wlan2g\" \"phy0tpt\"\n \tucidef_set_led_wlan \"wlan5g\" \"WLAN5G\" \"netgear:blue:wlan5g\" \"phy1tpt\"\n","prefixes":["LEDE-DEV"]}