Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp841465pxu; Thu, 15 Oct 2020 19:03:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyapvND50FaHhjbtSg75i6/msI99G0SbLF3vYkTyefpDE0ifonLgl2wpUf2AEP3DVvlwTXy X-Received: by 2002:a05:6402:d6:: with SMTP id i22mr1341718edu.53.1602813785990; Thu, 15 Oct 2020 19:03:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602813785; cv=none; d=google.com; s=arc-20160816; b=iI8QjZdLTIN/ZhYxiBrSqrk+FZmNMDsEZwV7f411bqScaCfsrghD/3YbCT71bncjKE /MAFYOpR/9kFX8JXItHRBwtKPzCvK96Gev5Js9C1PmpFEVnwX0R0VxHQBKj6O3qLTCwq bRfeY8L9A7UhA7gwFQlyrZwM3XZG3CPwixbYpO3PeZUVnQysnECpXNerkg0Wiw1gIrTZ wmRTHJZA/BIXZFD/wYIVo590nPxKLTPT430VrqgAn4VjbwWPsg37gGY1mV+PZsYk9Cf4 ap6JJRHWH1NkWkw6yq0llQp+mrdAEtCbEFhGUBAVr6vPXG12LONiwnqHduhQO+btWIlG KnPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=fbeyHcPr5HXFs3nWVr8l+SD2fzx2BPv1Slq4oYY7jSo=; b=MwsPs1pHeP2cRIVnao7hZ2MGpUvj2yLj0Ac+tJ39YnLj1IHZMPC4M0YljZGWSeE07z tS2e0MwdqGeTai/g2ygRIS9qeHhzRFjJ2J246cUsnZ/fUTpE01vBvkEZS2T0FNkklIEg FUdS62OzSE2Ic7fdSJB/3lRSFn+RKnUbAWfd+LEJfsT/0pcAJO9xDLWMkkhI+AhzZ+oo vGzHyCTjg1x7lgQ67IlBmG26kjV4Jh7hVvoAEdP7BJLfgk0V3OxQlVrwfbx222lYb6Pa uRtdo5sUerourjuSHkHkUoWcpjdhu8X4X5GCgDsBDETTsNgI7Z0RA6qbnlhIj6n8EELr ZQ5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=q36OKirF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q7si583821ejb.740.2020.10.15.19.02.27; Thu, 15 Oct 2020 19:03:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=q36OKirF; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731813AbgJPA06 (ORCPT + 99 others); Thu, 15 Oct 2020 20:26:58 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:38567 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731772AbgJPA06 (ORCPT ); Thu, 15 Oct 2020 20:26:58 -0400 X-UUID: 2761c0ee11e04572a0c7e3eba0ab2612-20201016 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=fbeyHcPr5HXFs3nWVr8l+SD2fzx2BPv1Slq4oYY7jSo=; b=q36OKirF3GRFv3T8lXvnREY0zhLM3Q1ELz9mHYtqnzhvVgGlpqtuUeJB0/FBkg+yzzN+Uh/j3gnBoZT2FouPn82wrQbwJb7AVbWNZYOYbF0KLP1l6XhBBQbxk+KaX+phW6urUNRjiFWbdP+NDo09kuWfMEzlplVPB3LUJe7i4SE=; X-UUID: 2761c0ee11e04572a0c7e3eba0ab2612-20201016 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 377058225; Fri, 16 Oct 2020 08:26:51 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 16 Oct 2020 08:26:48 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 16 Oct 2020 08:26:48 +0800 From: To: , CC: , , , , Sean Wang , YN Chen Subject: [PATCH 2/2] mt76: mt7663s: introduce WoW support via GPIO Date: Fri, 16 Oct 2020 08:26:42 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <267346a9a9c5f71caec03292b6c33b39864b38c5.1602807276.git.objelf@gmail.com> References: <267346a9a9c5f71caec03292b6c33b39864b38c5.1602807276.git.objelf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 48CCB54E6685AF6484C239E9F170579B5A1571F1DB198B59D7F6A4180DD6FDDB2000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org RnJvbTogU2VhbiBXYW5nIDxvYmplbGZAZ21haWwuY29tPg0KDQpTRElPLWJhc2VkIFdpRmkgd291 bGQgcmVseSBvbiBhbiBhZGRpdGlvbmFsIEdQSU8gcGluIHRvIHdha2UgdXAgdGhlIGh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