{"id":809214,"url":"http://patchwork.ozlabs.org/api/1.2/patches/809214/?format=json","web_url":"http://patchwork.ozlabs.org/project/lede/patch/20170903044510.26397-1-hackpascal@gmail.com/","project":{"id":54,"url":"http://patchwork.ozlabs.org/api/1.2/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":"<20170903044510.26397-1-hackpascal@gmail.com>","list_archive_url":null,"date":"2017-09-03T04:45:10","name":"[LEDE-DEV,1/4] mac80211: enable use of GPI9 of ath9k","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"b86f087135f8f243701e49a42d46fdbc35f4e5be","submitter":{"id":65302,"url":"http://patchwork.ozlabs.org/api/1.2/people/65302/?format=json","name":"Weijie Gao","email":"hackpascal@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/lede/patch/20170903044510.26397-1-hackpascal@gmail.com/mbox/","series":[{"id":1197,"url":"http://patchwork.ozlabs.org/api/1.2/series/1197/?format=json","web_url":"http://patchwork.ozlabs.org/project/lede/list/?series=1197","date":"2017-09-03T04:45:10","name":"[LEDE-DEV,1/4] mac80211: enable use of GPI9 of ath9k","version":1,"mbox":"http://patchwork.ozlabs.org/series/1197/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809214/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809214/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=\"t8tM6kG5\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"nq9sY/qk\"; 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 3xlL5v3S31z9s7c\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  3 Sep 2017 14:46:08 +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 1doMn6-0001D7-0c; Sun, 03 Sep 2017 04:45:48 +0000","from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1doMn2-0001A7-Mn\n\tfor lede-dev@lists.infradead.org; Sun, 03 Sep 2017 04:45:47 +0000","by mail-pf0-x242.google.com with SMTP id a2so2442409pfj.4\n\tfor <lede-dev@lists.infradead.org>;\n\tSat, 02 Sep 2017 21:45:16 -0700 (PDT)","from localhost ([182.148.31.147]) by smtp.gmail.com with ESMTPSA id\n\tg12sm5253948pfm.158.2017.09.02.21.45.14\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSat, 02 Sep 2017 21:45:15 -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:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:\n\tDate:To:From:Reply-To: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=rAtXPq0/mqF+GfGNcY3w5i2zGZ0qjFOOS02b0+CpnRo=;\n\tb=t8tM6kG5evzEYl\n\tJlMrqSg/xIs7B4g3gitq7MSvPpFvnPhKZipMK5bXmUUXB7+ISirSaB19MDSx+3oULPf30icU/YyNZ\n\tMGl9QCSeGJty3yXnkmCLO/+7corl7SpedVCxAKbR1YRNIRJ20iyX/N+1GubLvIdNfZ/9M0BIYYYyc\n\tJuWFtM0qKWP+o0Q8tO2O8pA/Ax9+ENAn8nGZEyiof99LMie9CeW0jU5G7byIcfr92azaiKjgISgBy\n\tX9gUxfPotNdJSNjkKPdeLCZ1rWtuOt9byHpWONI2jEUa/BORk572wvhWeR33u+CqOaKt8mbIy2C74\n\tIIub92L1fSFZ7AzQzYDw==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=XQ1Heg1wfCuxcpXhnA/fwImZICzB/L/vLi69fJ/uIPo=;\n\tb=nq9sY/qkNFsiYgYmuCQ6tHcXZlycODQtW8osvfOD/ae//5KTGYfkoPR1D37H5H72ER\n\t159Y/LxH8Skle74a2KH+Em7G+D7uB32pAxf8exSiqnXTgQv3gtGevRX/CvHKSrTbL67Q\n\ttE0xLq4oK0CORTwWs4FcL5Syzj/MBiI+NWq9H7s2bxkOALZIM+WGjG02YOEnrSU4Pdfw\n\toPmuAAGZ//TpKhGdxmfpmTgZvB2PS01TsbfUpTf+4u9V5aPQ/Fbva+w5Kx8Rw6hDa4rH\n\t0HpdAg2/H6uqqqvTXHzwnftwQM7buuh7yGXAfNEHwE9JqZ9uzr5syhun2VM27W6lcRpl\n\tBQaw=="],"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:cc:subject:date:message-id;\n\tbh=XQ1Heg1wfCuxcpXhnA/fwImZICzB/L/vLi69fJ/uIPo=;\n\tb=lRV/ZrDvctmq0fyA36GBd3fiq3olVqyafqTXPFz/FquYFw9XXfdXvZW5Exc3+pGws5\n\tRsUAWc73y6JCywJHcM0pEWR2IFQnLf/7o8jWjb28INj9420MET5kwsjXyQVPt99cXdw8\n\tfQ/QZxlgrbb9TWh+RQ4TmmSJt6D9X3SKGZVzn6vaB8HPBY9LpxkKFZvRiRJBEHHMtB2t\n\tsKC1P2SieWjePuKyBDyGDnXkX56eDdbEefnVDfsLaANiCwUS1mAZgUwTy5aWDW8hDB3R\n\t5VdOSiDuVTL9Dwjg6l2pxLsI3+ifKDOd+NyqqrgdJr7+3BVpTC4Y4E7iKLaXmVwx8Eqc\n\t9asQ==","X-Gm-Message-State":"AHPjjUgViIHTgdBnK0wRzR2U04WH/NORbVEFaoVV0lquzi8ArrBVlvhL\n\tBVrRotIuwUuvGn36","X-Google-Smtp-Source":"ADKCNb7aA2wP6IZsUyXDBmKpWKHeY8/j6ojxXyNZLMozAzv1Bos7u13drcjKcGo7IZQwJRzW5a6a7Q==","X-Received":"by 10.98.207.5 with SMTP id b5mr7450781pfg.268.1504413915859;\n\tSat, 02 Sep 2017 21:45:15 -0700 (PDT)","From":"hackpascal <hackpascal@gmail.com>","To":"lede-dev@lists.infradead.org","Date":"Sun,  3 Sep 2017 12:45:10 +0800","Message-Id":"<20170903044510.26397-1-hackpascal@gmail.com>","X-Mailer":"git-send-email 2.11.0","X-CRM114-Version":"20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ","X-CRM114-CacheID":"sfid-20170902_214544_814480_59EDCF8B ","X-CRM114-Status":"UNSURE (   9.04  )","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 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2607:f8b0:400e:c00:0:0:0:242 listed in] [list.dnswl.org]\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 (hackpascal[at]gmail.com)\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 1/4] mac80211: enable use of GPI9 of ath9k","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>","Cc":"hackpascal <hackpascal@gmail.com>","MIME-Version":"1.0","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":"GPI9 (input-only pin) is used by Netgear WNDR4500v3 as the wireless button,\nbut not enabled in ath9k.\n\nThis patch enables the pin by adding corresponding bit in the usable gpio\nmasks.\n\nSigned-off-by: hackpascal <hackpascal@gmail.com>\n---\n .../552-ath9k-enable-use-of-wmac-gpi9.patch        | 22 ++++++++++++++++++++++\n 1 file changed, 22 insertions(+)\n create mode 100644 package/kernel/mac80211/patches/552-ath9k-enable-use-of-wmac-gpi9.patch","diff":"diff --git a/package/kernel/mac80211/patches/552-ath9k-enable-use-of-wmac-gpi9.patch b/package/kernel/mac80211/patches/552-ath9k-enable-use-of-wmac-gpi9.patch\nnew file mode 100644\nindex 0000000000..b64006a202\n--- /dev/null\n+++ b/package/kernel/mac80211/patches/552-ath9k-enable-use-of-wmac-gpi9.patch\n@@ -0,0 +1,22 @@\n+--- a/drivers/net/wireless/ath/ath9k/reg.h\n++++ b/drivers/net/wireless/ath/ath9k/reg.h\n+@@ -1136,8 +1136,8 @@ enum {\n+ #define AR9280_GPIO_MASK\t\t\t 0x000003FF\n+ #define AR9285_GPIO_MASK\t\t\t 0x00000FFF\n+ #define AR9287_GPIO_MASK\t\t\t 0x000003FF\n+-#define AR9300_GPIO_MASK\t\t\t 0x0000F4FF\n+-#define AR9330_GPIO_MASK\t\t\t 0x0000F4FF\n++#define AR9300_GPIO_MASK\t\t\t 0x0000F6FF\n++#define AR9330_GPIO_MASK\t\t\t 0x0000F6FF\n+ #define AR9340_GPIO_MASK\t\t\t 0x0000000F\n+ #define AR9462_GPIO_MASK\t\t\t 0x00003FFF\n+ #define AR9485_GPIO_MASK\t\t\t 0x00000FFF\n+@@ -1145,7 +1145,7 @@ enum {\n+ #define AR9550_GPIO_MASK\t\t\t 0x0000000F\n+ #define AR9561_GPIO_MASK\t\t\t 0x0000000F\n+ #define AR9565_GPIO_MASK\t\t\t 0x00003FFF\n+-#define AR9580_GPIO_MASK\t\t\t 0x0000F4FF\n++#define AR9580_GPIO_MASK\t\t\t 0x0000F6FF\n+ #define AR7010_GPIO_MASK\t\t\t 0x0000FFFF\n+ \n+ #define AR_GPIO_IN_OUT                           (AR_SREV_9340(ah) ? 0x4028 : 0x4048)\n","prefixes":["LEDE-DEV","1/4"]}