Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1845920ybl; Sat, 1 Feb 2020 07:35:17 -0800 (PST) X-Google-Smtp-Source: APXvYqzl8zOJK2/VNkLkE2b+wWfCPLFAXVTjPDSUBKeTqmQigQi8apmg9rbpwFRjsz7jqrJnarA5 X-Received: by 2002:a05:6808:658:: with SMTP id z24mr10058528oih.91.1580571317269; Sat, 01 Feb 2020 07:35:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580571317; cv=none; d=google.com; s=arc-20160816; b=Ve86EhS43MOaj4wNXXSHoM8EeBJCw6fefq1Q0VcCDNCfsvuyStnyu9Oc7uF3WKYXMQ s6o6D70bfZz55KCc12PP+g6AN0I2msM7TqFA1KPQYn9aQcyUDGuN71dC6IxRcDTkJ+cp It0WYRUx+MIy4YP9Yk0fMZsctmzVTMWsmK3zdMoaymiVpEuHQ8mCo0l97RZLBk+ymiZA mgNUCubRdxVR5POul/PGkBnQJ2LsDtZSHxoS0AD1m1dut9bw5T4Fzelon5wCjVvpoFpS vomxn1JtIROtAOO+rj5cnmviej3fQCd7swVI8jagtjduT93FnLJ333o5ZS8fE+Zema5s sIqw== 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=WHvlW4nzcYlhxJhkmi6GNJeu5+5MhcgG+sf8MXm+PcU=; b=YV8ngPmLvzWSqmLG2JPLnbFxvGejJechOLezE9hjR0ODV3NZ5vXOKDBm8vc2pSnZ2q HW4OAaJFoohbW7jjHUuiST64Gazxm9Z5jxGGp6AmhWornUDdioXe+59CMw9o2G7YOxnL WwQOspIk0IFFFj9hRB0Amp9pTgmrtWr3hAF/RVi/CcIjjMvxEQXsImRtEB3xdNcygOBA JfPMLrfbL8wDmV1fpG0SEVUjv3LKpPqKWeBitOcgI7z2Dy/Tdkv+kWh3vth2c2Z1VVSo 84GFuVgNnZYNp1gddKIQncnG1BeV6nfumzU0oRmnAjFb/RdxsBrKLs3TkTYjQYA5SLFb iUiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mWYo68tQ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id d2si6336921oth.267.2020.02.01.07.35.06; Sat, 01 Feb 2020 07:35:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mWYo68tQ; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 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 S1727119AbgBAPeL (ORCPT + 99 others); Sat, 1 Feb 2020 10:34:11 -0500 Received: from mailgw02.mediatek.com ([210.61.82.184]:51861 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726670AbgBAPeL (ORCPT ); Sat, 1 Feb 2020 10:34:11 -0500 X-UUID: 98f2effcbc83459ea5e955b1f6b3ccac-20200201 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=WHvlW4nzcYlhxJhkmi6GNJeu5+5MhcgG+sf8MXm+PcU=; b=mWYo68tQM7r31QVkL9WCTFBQPHri1SUkpSapkJeMh9xFMrt13Twnc1d9pisRMfpxJXlPIodNApHki6/ZINdGB0pJ6RfQH0FwZdwSvLDzHzswTabfZTgX3SLZJMGOgnccRViZ3vwH9RpvoiTgIDYHlnfVLRLhOZTtxDVrYutNPeQ=; X-UUID: 98f2effcbc83459ea5e955b1f6b3ccac-20200201 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 2091207316; Sat, 01 Feb 2020 23:34:02 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Sat, 1 Feb 2020 23:34:11 +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.1395.4 via Frontend Transport; Sat, 1 Feb 2020 23:31:34 +0800 From: Ryder Lee To: Felix Fietkau , Lorenzo Bianconi CC: Shayne Chen , Roy Luo , Sean Wang , Josh Boyer , , , Ryder Lee Subject: [PATCH v2 4/7] mt76: mt7615: add starec operating flow for firmware v2 Date: Sat, 1 Feb 2020 23:33:49 +0800 Message-ID: <5a64e78f336c1b72888bf000719b1cf7f77f62db.1580565624.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 QWRkIGZ3X3ZlciBpbiBtdDc2MTVfZGV2IHRvIGNoZWNrIGZpcm13YXJlIHZlcnNpb24sIGFuZCBh ZGp1c3QNCm10NzYxNV9tY3Vfc2VuZF9zdGFfcmVjKCkgdG8gYWRhcHQgZmlybXdhcmUgdjIgY2hh bmdlcy4NCg0KU2lnbmVkLW9mZi1ieTogU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