Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp103588ybz; Fri, 24 Apr 2020 12:34:10 -0700 (PDT) X-Google-Smtp-Source: APiQypIJW3jzf58JBypeTz8PrV3AY9xEtPylj9KIuv/aVou5xHVXQMFH3JrZYPshrMU38phvfgrK X-Received: by 2002:a50:f058:: with SMTP id u24mr8366100edl.171.1587756850443; Fri, 24 Apr 2020 12:34:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587756850; cv=none; d=google.com; s=arc-20160816; b=hmiR+FCtok9/+vCque3fi+GiY5xpmRk501DRonW7p6Mo9YhPBr7Af6ONCC0bDGDPJb TZ131Jgrg6jDTiLXcayppBym5ja5eSv5TZtPt7XlmtIH4WZqWU83BOSI4h9YM/OIbipM 7TXkAYb8ukl7J0xA3od2G0Oo6oVD2Hj+WcD1tB+IgzxbCg9IofoURs7ZCIXNCpjELzeE R7D0e/RVF2PpyVTpMzJYsVv///DP5SJadboERorg+2VALESNWM9nxJ1YBHLlaGuOKQxa XNiIEKxgBnNxhrA2m2KtNwOWk1WjWJ6F5gj1vjww635WVS+MxCW9id18OHgYhMCa14Xg Mpjg== 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=PrMrGQUfXMNhRG58H8+GNHeDRKweulvlAJdxD1OYkqE=; b=xhHO1oVRfue702bm+P42gKyd2lOwSykzxjZbDZH4zgo84FKMCbmXF8CLhZxZjdHfv1 4cU8mOnMTWhUvD5yGI1AaoV+YQ1phvocziwEecJrERkSGD9RoGx4FsyPKnNLAZXlJvOb DBS9ZWJ+k7xDnyGOKnuyBeyGvdyG69dGGXEO2Nwfcv4sf0nqDrLOko//Ga5x9bwYA/PF 2274DBcV4qyRJSWtxRPE5Xq+fZxUHNQTcRJG7bsLyD7yE4NyELAvpZLuo9TCL0xjHHAD frP51gYD8v8DzkWVcQ3jBrXTYs2rQ2xy9Ib64cUizSC9vsqYogl7xU2VmKErvp8V96SD /eEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=dNUJzR1c; 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 cw10si3806318edb.54.2020.04.24.12.33.46; Fri, 24 Apr 2020 12:34:10 -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=dNUJzR1c; 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 S1729398AbgDXTdE (ORCPT + 99 others); Fri, 24 Apr 2020 15:33:04 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:24807 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729386AbgDXTdD (ORCPT ); Fri, 24 Apr 2020 15:33:03 -0400 X-UUID: 8d05198925ee42d28a737a7c65580717-20200425 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=PrMrGQUfXMNhRG58H8+GNHeDRKweulvlAJdxD1OYkqE=; b=dNUJzR1c5h2VCTY4jeXWaKoyoQkwzXFppB+OLcjwxCSXuIqyZdvneQwwaBdfSP7WrMGMvZibY3JGGTjpcBzZkb/z+kRy6frOCQtud26krk6lv35YxsYODekkTivG9Opxm0DLhgiQigi2pJ8d4PIKNKqp30tJ3EjwTpmtRyR5mv0=; X-UUID: 8d05198925ee42d28a737a7c65580717-20200425 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1714144704; Sat, 25 Apr 2020 03:32:59 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs02n1.mediatek.inc (172.21.101.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 25 Apr 2020 03:32:54 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 25 Apr 2020 03:32:57 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , YF Luo , Yiwei Chung , Chih-Min Chen , Evelyn Tsai , Sean Wang , , , Ryder Lee Subject: [PATCH v3 16/18] mt76: mt7915: add tsf related callbacks Date: Sat, 25 Apr 2020 03:32:37 +0800 Message-ID: <5423850c6348b9d0b0c2ec443c3a1ae4ef06931c.1587756404.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-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 SXQgaXMgdXNlZnVsIGZvciBJQlNTIE1lc2ggdG8gYWRqdXN0IHRfY2xvY2tkcmlmdC4NCg0KU2ln bmVkLW9mZi1ieTogUnlkZXIgTGVlIDxyeWRlci5sZWVAbWVkaWF0ZWsuY29tPg0KUmVwb3J0ZWQt Ynk6IFNoYXluZSBDaGVuIDxzaGF5bmUuY2hlbkBtZWRpYXRlay5jb20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