{"id":809225,"url":"http://patchwork.ozlabs.org/api/1.2/patches/809225/?format=json","web_url":"http://patchwork.ozlabs.org/project/lede/patch/20170903054318.3980-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":"<20170903054318.3980-1-hackpascal@gmail.com>","list_archive_url":null,"date":"2017-09-03T05:43:18","name":"[LEDE-DEV,PATCHv2,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/20170903054318.3980-1-hackpascal@gmail.com/mbox/","series":[{"id":1199,"url":"http://patchwork.ozlabs.org/api/1.2/series/1199/?format=json","web_url":"http://patchwork.ozlabs.org/project/lede/list/?series=1199","date":"2017-09-03T05:43:18","name":"[LEDE-DEV,PATCHv2,1/4] mac80211: enable use of GPI9 of ath9k","version":1,"mbox":"http://patchwork.ozlabs.org/series/1199/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/809225/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/809225/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=\"KhwVg8eS\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Wg7dLcu+\"; 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 3xlMNr6MP3z9s7C\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSun,  3 Sep 2017 15:44:12 +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 1doNhV-0006fl-AO; Sun, 03 Sep 2017 05:44:05 +0000","from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1doNhS-0006dA-AA\n\tfor lede-dev@lists.infradead.org; Sun, 03 Sep 2017 05:44:03 +0000","by mail-pf0-x243.google.com with SMTP id v22so2505012pfk.1\n\tfor <lede-dev@lists.infradead.org>;\n\tSat, 02 Sep 2017 22:43:41 -0700 (PDT)","from localhost ([182.148.31.147]) by smtp.gmail.com with ESMTPSA id\n\ts80sm6097749pfj.118.2017.09.02.22.43.39\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSat, 02 Sep 2017 22:43:39 -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=HPSJMeJbEFcWzQbZ28UspiHrnAbZ+ksKhhoHLJVTZRg=;\n\tb=KhwVg8eSVfUTrO\n\tnQlwI4iIXFEMRsGWY3glce4ETXmPzx5N5VWN3xHToYVoD4D1zjSH5OXr/FHGBjGA+LzxDVcQUoRTh\n\twIrDdrw0gNRf0Rh+hcZVh1ZRUAjnwcPJr0NMp809BDxJq3JQTFvytfBlYnkSB8JLaNgAmtkMzRSCO\n\t28JOWT8sGzcH71FojMMyyvQWapJYzoQlAbEFbiv8zucXyJmllWE6KbWTBsnpEYv78u8MjX49E+I+W\n\tW9oRT0Ex+9I9x0u2g5C0EVViNKG2yX+7gg54fEtN3wsb3VRMFvDipaDfz3dyhxdSiL7NRy9cnS9Gz\n\tfsAg/qql9FhHI3hI+QIg==;","v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id;\n\tbh=HD7Tay7T71iLqPfZwg0VD2dO7hhKqTGfkVnT6vzzP8Q=;\n\tb=Wg7dLcu+1x57iB5Mpv9AxfbvTSBAxusl0g1Xyb8CK5M/tsRK8YHz7wVikMlQSpM74u\n\tKK7Aqq2Bb6LFPf3li0qqzZfPyPRyl92MmYS0QbQ8gw8eCnWtU+kuSwQiB/DLP6oED/Tl\n\tqHyE0BFNjf9jKnne2J5zxihJcEOManHUmBOYvVSHyGsHHtbfB7CO6wNJIVeMis9CxoQR\n\tQWmsZCT2b9QjoczhZcQz0uV59yz4QBvleGpIYQnJAEXbs+b+UQFsYC9EbSGlCCwSkJ2x\n\t4JKuRDTgzHwfstT/j8d01Ena0Y5R7Qsp5Rla8Ryq7IYxN3tGkmvjjqRZ+f5XZcxZjawj\n\t1fQg=="],"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=HD7Tay7T71iLqPfZwg0VD2dO7hhKqTGfkVnT6vzzP8Q=;\n\tb=pqijfX5X2TVP0O0ADQ85EKtkoCQ/SUbNMqWNsWDFi90qKeqs7CA+NyR1lFyoltZn9x\n\tdfpHItLcvLbuKsywJJouhUTrAd5x7BZgE8r/AFf5SyEY60iZ0DfKVmAFLYuEN2hsomZC\n\tnXiYxY+Svhtp3HENBzHT0f09OjaOqgPcxbsK6QIeJlmrY/Nhp4H3GaeSj0jWjuT+Um1V\n\t6ARjsmt8lnquHte5grMfOdsKPhZ+zrt1aZ/vvTZVe2Vx6b2JBG8BYVMJAmOFA4Ldoy9s\n\t3gLZq1h4gTi0SgDAe7tyBLVcixaLqh0qvlEhHjsAEX0TzcolPSOG9ornqEWJEUBNy6Mz\n\tenEQ==","X-Gm-Message-State":"AHPjjUg37QaN60+yExUk7zArfx4LJ34i/OdemFpztID2Z2cSQVuF8OfY\n\t3ylFS/3uuz74TDZ9","X-Google-Smtp-Source":"ADKCNb7epai1yx+dmrof3s6invZV8wG50YnQFjW/focO3X7CmGR9X6ErwcBXUscWC7t7A32RLo0LRg==","X-Received":"by 10.98.35.80 with SMTP id j77mr962120pfj.276.1504417420955;\n\tSat, 02 Sep 2017 22:43:40 -0700 (PDT)","From":"hackpascal <hackpascal@gmail.com>","To":"lede-dev@lists.infradead.org","Date":"Sun,  3 Sep 2017 13:43:18 +0800","Message-Id":"<20170903054318.3980-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_224402_407461_A5A231B3 ","X-CRM114-Status":"UNSURE (   8.82  )","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 (hackpascal[at]gmail.com)\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:243 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] [PATCHv2 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":"Weijie Gao <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":"From: Weijie Gao <hackpascal@gmail.com>\n\nGPI9 (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: Weijie Gao <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","PATCHv2","1/4"]}