Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1129773ybt; Sun, 14 Jun 2020 11:24:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfHartR1iDHqEloJJP7AhqfoJr0ElkQ/Wq19B9nHN+GtLerFWiym5NfiQrDpvEnWcfjxMl X-Received: by 2002:a17:906:7c5a:: with SMTP id g26mr9895552ejp.200.1592159090884; Sun, 14 Jun 2020 11:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592159090; cv=none; d=google.com; s=arc-20160816; b=s8YtQA/niZJNu6ZV8AxWVd71NXZcTC7F73xSjFI1juy0XC5q6dmGUDF/RD87u4or46 F8KiZCWUGTfoOUMlm/g9Hg7aepjTDCNmejYpOg1PyMyl81p9r1JSkxp0mHARcDoNEWjT TIaLBnJrQIdZt1bBp7Tik2PjxWe57axnKS9w8fdjTjg7z/608vi5+p+wAyC6dPhrR0gD 4dnl/Txkec6k+9kYocBlWUdV5MbaXw/owwxAHean18KhGsBC23mB8r0307kDkLuR8HaH 1atU0j0AEmRl3tBbqbOinWcj8cphyk+f/OHx9GUtWlv6Ja8y/AhOhO5VhdA5FtnK+meC JwAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=yiDwoODRApKiS8BqfOswBdXGWjMSyDFQ2o559D7NaM0=; b=06Yrqc8aLt6IhPElJ1PbdzF3Md9CH6jEEpFyFBcIm2BHhwGIHJVp9PX9TrJlrArOX/ +dROW/26Uba3t/aaHJ/KTI96BnNIeKLrr3/HtWeBKaZAJ7o3ZO0L59Qexmc01E8GJr/h +0K2cROMBTDjQOgBrkVt10/5R0zrzq8+FQXysTaHHJPkn0yACzFP7fPDhijBoCoFC4E0 K8zz1ZpNu8A5uAilGvqveNKL3/RY6QhRwwkLHNLQkLHAfFdhRkYEkwUe/L4FxPaXJPGx nv8oeKhFSw9Wjjpii0G2E7h76T1fbZlvjYSFEDjmtWGyC4/U5tmz8zZeNlz5m7sqkWVo 0Xgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=WBeVHsAh; 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 l12si7409946edn.427.2020.06.14.11.24.27; Sun, 14 Jun 2020 11:24:50 -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=WBeVHsAh; 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 S1727036AbgFNSXt (ORCPT + 99 others); Sun, 14 Jun 2020 14:23:49 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:57936 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726905AbgFNSXt (ORCPT ); Sun, 14 Jun 2020 14:23:49 -0400 X-UUID: c8bd295fd93c4ef782b4cbc5dab73bcc-20200615 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=yiDwoODRApKiS8BqfOswBdXGWjMSyDFQ2o559D7NaM0=; b=WBeVHsAhOTvopMkadQDB87BFcWMRqTZlH2Skpd9KFHNDkUuktUwT9WoN2XUuvzKm79F0CBNtlsZr8O/RLQYdCVBJB2s0QjVdhn9rug1Tt64dxd+Y03i168KK8eS90b16XsvZc4n+0IGhmXrA7ml7jp7O42NWdUQWV+fdRmcY51g=; X-UUID: c8bd295fd93c4ef782b4cbc5dab73bcc-20200615 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1784729193; Mon, 15 Jun 2020 02:23:42 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 15 Jun 2020 02:23:33 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 15 Jun 2020 02:23:35 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH v3 2/4] mt76: mt7915: add a fixed AC queue mapping Date: Mon, 15 Jun 2020 02:23:34 +0800 Message-ID: <1739c8bf33c5e36d3fd08d37e16a7107302e092a.1592158312.git.ryder.lee@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: D9C8C47F77C2515087A0B61BA0FAE53B0150ED464838AA2A86598C3F3BCB6C982000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org SW4gTVQ3OTE1LCBoYXJkd2FyZSBxdWV1ZSBtYXAgaXMgZmxleGlibGUuIEhvd2V2ZXIsIGNlcnRh aW4gZmlybXdhcmUgbW9kdWxlcw0KbGlrZSBNVSBhbmQgVS1BUFNEIHByZXN1bWUgYSBmaXhlZC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