Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3662763pxu; Sun, 11 Oct 2020 19:17:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzr8KpoNf9KrltYNvKpEyCTACpiZbthBYF5gtfwjUT+PK9LHgMf1fYVA1cuGMMdjeVCTs4 X-Received: by 2002:a05:6402:37a:: with SMTP id s26mr11335366edw.268.1602469070316; Sun, 11 Oct 2020 19:17:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602469070; cv=none; d=google.com; s=arc-20160816; b=u/2NDN7qW1nkglwGBuYFQi2QF4n6FEUBBus7L+ru0QLXMVvqRY8STvH9bgeBwxR2+m FjeU5WqdKstXNuNQPl6Zo/Si/ZXWQCxrHTyNNm2uAyIPloj3cnxUTg/u06+CXXmPK/DI 08MEcIvcj8xo+NQfnX0Ig3d9PkicylwCDlYMgblPDYq0FljU7EtipCBfyKysJWr1ZLXr KjhJ1/ARiTcWJtVvQmwMayG5H0XMEMAjYcc/FexQr2R30l+D48ZIx3ClwOjkoU61YpUC xTeznvEwIb0MFAm3aKsMZ4MyxxzuVMnXw1GmRbsUzfZH908sAzvS0HkMF2CGQke5Zk3e uLGw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=e7A35TvHolYaa24KD7F+uxR2wRjdhGSprLxGOJCNFEc=; b=VXPhFqws0mIiqiTxnkEVKe3G0tAK8ZqkmujJWXoDmtrGnJXvbhqlsJZtWeCA5dpRHu ptxiRchBhKv0yh0a+YsqpKyIKkhDt8gactg30myMoE0JsMnys/nQZ5calF94PymzmKb3 Tbw2HQM+OxeSiF3nvfxnUgAXWMLSiw6ilTD9kONoQz9P3VCNKLqGdw9pyN9z1mqVod2T I0V+MHKgRvdlJypC41f2cuw2LNoALpuB3gXjSO/vJ4n81EsrVE9J4ZAtYVHYtGH8Ly+S LYGZb6p2945U6xMNz5FbR64dhQtC4Oi7DVgkjhIYUb7KMRQ+Mij/56Em7/wQ1ULUkh2D dmdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=bEcV4WS4; 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 h26si6233612edz.138.2020.10.11.19.17.26; Sun, 11 Oct 2020 19:17: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=bEcV4WS4; 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 S2387533AbgJKVZl (ORCPT + 99 others); Sun, 11 Oct 2020 17:25:41 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:33207 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387413AbgJKVZk (ORCPT ); Sun, 11 Oct 2020 17:25:40 -0400 X-UUID: fbb25cca22524f8aadee432cd7924ca6-20201012 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:Message-ID:Date:Subject:CC:To:From; bh=e7A35TvHolYaa24KD7F+uxR2wRjdhGSprLxGOJCNFEc=; b=bEcV4WS4Faa02+a8mEykhls8ffEq9XHk/cAQhLYqwa2chtu4i0mDfdMri6RDQJAXXKzwiY4n2uaoXFjUH0zgMehhI1QMz0mRyPudToBeqzuIPkmGRYlu8UgU2wppffnUbSVowzs7mMd5iESfGwawknK/3KN08gcyX5M/VnVj1HM=; X-UUID: fbb25cca22524f8aadee432cd7924ca6-20201012 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] 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 689495866; Mon, 12 Oct 2020 05:25:36 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Oct 2020 05:25:34 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 12 Oct 2020 05:25:34 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , , , Ryder Lee Subject: [PATCH] mt76: mt7915: initialize firmware DRR settings correctly Date: Mon, 12 Oct 2020 05:25:29 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org RHJpdmVyIHVzZXMgbWFjODAyMTEgYWlydGltZSBmYWlybmVzcyBpbnN0ZWFkIG9mIGhhcmR3YXJl IHNvbHV0aW9uLA0Kc28gaW5pdGlhbGl6ZSBjb3JyZXNwb25kaW5nIE1DVSBzZXR0aW5ncyB0byBh ZGFwdCBpdC4NCg0KU2lnbmVkLW9mZi1ieTogUnlkZXIgTGVlIDxyeWRlci5sZWVAbWVkaWF0ZWsu Y29tPg0KLS0tDQogLi4uL25ldC93aXJlbGVzcy9tZWRpYXRlay9tdDc2L210NzkxNS9tYWluLmMg IHwgIDcgKysrDQogLi4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