Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1989655ybk; Mon, 11 May 2020 09:10:28 -0700 (PDT) X-Google-Smtp-Source: APiQypLtbVutOxkZiz23D9PGZROZzx3GrC1MIs3r6UqDzLnwVrIRXw/GIllboaPRzkrQUJQpHX6X X-Received: by 2002:a05:6402:1f6:: with SMTP id i22mr14602293edy.271.1589213428627; Mon, 11 May 2020 09:10:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589213428; cv=none; d=google.com; s=arc-20160816; b=W+GupbL6E3IIUydhA3l8fg8q7yNIAWqhmWUREcUEUwFF4SbQSHdA9jglQNJjKsBly4 gr4Khq1ah6yyoI1MXp8WnbtLC3+ZUhyD+nvoWMo2VQvRq6zCkuRm0rtY93rw/RfjUULu OAkvqEFsXPUV8XklMQm6wpBgDMfAH8QyRqVWVPfOwZKF6BW0acFqu8P/EEUDwOy8QSGV KgXgLImiZ6chDd5zWhP6VTMUlVD0qjDUbiMoiRN757Mpclga6x+0EMABMzhjz53/2SN/ OX35wfA0lsUvmT0O4mXzl1ivZ3TVWC07rKDJfdAtN6tX06PBR0aAKxvVIypacVqX8n3N 2HXA== 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=iqLbPXSZEh+NBhvm0FnTNsHDsy4qGYixGJzBK4ImsXw=; b=X582vwDl6Q2DxlpN6HGbgrjhdfp5fRs7aaRg3HaWgbEWFozfpA1UjFTW95sqwSKZjC 1b3tYBHYO4Nq+Qr7Dan1VuCAESKKOdXbOfdzzfb18d6vW2/6KpyQ72gz6xiN/2Sd4Dvx TvSzQo8/ArypsWvoBotBGpGsmHCAwm9wjHB3r9jU9nvfMQpRJX+CgqCbWIHjsGrxxopI gC79UJExMGMv7ryJ9dhIForsBY1SRKFxhTkxtbt8MDymHAyLPmukGOoyXHaWnRUDE0W4 ACzidwZ4URTs3/19yJdTzFmEg1WplIhjMwDSNB22syE2V6+l3kRUgrn5LviG8r+FFqFQ ylbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=GahBo0Zv; 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 h11si6691734ejy.116.2020.05.11.09.09.51; Mon, 11 May 2020 09:10:28 -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=GahBo0Zv; 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 S1730659AbgEKQGz (ORCPT + 99 others); Mon, 11 May 2020 12:06:55 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:54327 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730629AbgEKQGy (ORCPT ); Mon, 11 May 2020 12:06:54 -0400 X-UUID: 8eb1f86637f04dd1858f5887badea437-20200512 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=iqLbPXSZEh+NBhvm0FnTNsHDsy4qGYixGJzBK4ImsXw=; b=GahBo0Zv5gfu+hQ+lwt9ja+NkSFRTo45FwGhqMOTZYBh83vs/DuUbKSLqEPEL9qjOcQ+jGNU9u/nxN6iQEFOZ/7GwVBNTiKKPw2MNiGvqwZ5GanZcrcXyF2e0HE97UpAz3OldSwERinipRioCAFHRC/w4ZashrqW1esnbUqAcFU=; X-UUID: 8eb1f86637f04dd1858f5887badea437-20200512 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1713525772; Tue, 12 May 2020 00:06:49 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 12 May 2020 00:06:41 +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; Tue, 12 May 2020 00:06:41 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Sean Wang , , , Ryder Lee Subject: [PATCH 5/7] mt76: mt7915: add debugfs to track TxBF status Date: Tue, 12 May 2020 00:06:36 +0800 Message-ID: X-Mailer: git-send-email 2.18.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain 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 QWRkIGRlYnVnIGNvdW50ZXJzIHRvIHRyYWNrIHN0YXR1cyBvZiBiZWFtZm9ybWVyIGFuZCBiZWFt Zm9ybWVlLg0KDQpTaWduZWQtb2ZmLWJ5OiBSeWRlciBMZWUgPHJ5ZGVyLmxlZUBtZWRpYXRlay5j b20+DQotLS0NCiAuLi4vd2lyZWxlc3MvbWVkaWF0ZWsvbXQ3Ni9tdDc5MTUvZGVidWdmcy5jICAg fCA0NSArKysrKysrKysrKysrKysrKysrDQogLi4uL25ldC93aXJlbGVzcy9tZWRpYX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