Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp3842009ybl; Tue, 21 Jan 2020 08:03:26 -0800 (PST) X-Google-Smtp-Source: APXvYqzcgw9anSNyb/dfZikOZDWmKGomVhkwd1FTDUisr88um196CT+0XqPjua6NYLxXFXEwulkf X-Received: by 2002:aca:1b01:: with SMTP id b1mr3342133oib.6.1579622606145; Tue, 21 Jan 2020 08:03:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579622606; cv=none; d=google.com; s=arc-20160816; b=XYgaaXRLYGPJRXZyHFvgyApYlW9bC76qpAtX8uUuqJHUg36JbwAyQTIOo6TD4ZgcIo EZqje+o9QW08cylHo8LH9AxEqnZqIAyBIgKOPSh2/NWb4E/reDdsSq+s4t/1Z547/g3M YwTqMRRyZH/T/5osoTW8dxRyEELgS1gM1Dd93A67MbXa9LZXk9CEE1NNtl2vSTl4Wd7w 0QQi6c10oQBazWButpXUb7P5pOjumyS28aoKLzi8+RY1qM1Aw8xpQCXRPndNy0+O9MD8 5J52afCbXPMi/I7MZfuYjybfVI9kbKilMRvq7uFGs0t+L2imD7cCw+uogMV64tdy6/hd r2eA== 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:date:cc:to:from:subject:message-id :dkim-signature; bh=hl0UeD+P+rTTtPqsFkqtujX3P2uXkUS9JL4iwIHiWhk=; b=D2L22sBLAPsbedErjMeNzuQ8Tmfl1PX4mg3I/r1pEDT1cYt6hJWcYn+DDxYIx7b9h4 +bH9aX/mdEBiBh9wACNI9eclE0LeM9zgR0QvnN6zdwtipXhEQ+9Ts15Ungcx9fx/ydnf TtWbem+8cr4ocNWkg2gUxibrCmCQdx6hn7YGg5DSBbQhDpt0XOFh+dfK6/J4xEvGXvtn rZSmo0Z1ov+XixbRK8Yuk6wb9yohChTfQQCwhDhEnylkHm5Ac6G8r825Cg4g3ztL0BOn baXahypd1FHcFAJqU8Nb6SUEUZWPmpXm606cC1A7ltU/BcOFJ5hWz9Owlrd/GJtoHLE6 gMTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=hB9PHdQo; 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 p16si19994993oto.287.2020.01.21.08.02.55; Tue, 21 Jan 2020 08:03:26 -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=hB9PHdQo; 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 S1728779AbgAUQAo (ORCPT + 99 others); Tue, 21 Jan 2020 11:00:44 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:14698 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726968AbgAUQAo (ORCPT ); Tue, 21 Jan 2020 11:00:44 -0500 X-UUID: 4b30edc956f84d85bc4e2ce0221ea96e-20200122 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=hl0UeD+P+rTTtPqsFkqtujX3P2uXkUS9JL4iwIHiWhk=; b=hB9PHdQocbpaaPneY55GxhipThVOhW6GnMyRx5l5kDd1bXoa+XuDa0ZWAaiMbygCpqZr/ov6Y8ReatlixWOvJDMUFukeKG+IbnIb98NFldU07DTPy6v4d8/HNvfHXft6ZFRVMv/M/rsi9XtPhd3zXCvFADS7+QnMa6GlW7x6wWU=; X-UUID: 4b30edc956f84d85bc4e2ce0221ea96e-20200122 Received: from mtkcas06.mediatek.inc [(172.21.101.30)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1909450229; Wed, 22 Jan 2020 00:00:40 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs06n1.mediatek.inc (172.21.101.129) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 22 Jan 2020 00:00:39 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 22 Jan 2020 00:01:35 +0800 Message-ID: <1579622439.4993.17.camel@mtkswgap22> Subject: Re: [PATCH 1/7] mt76: mt7615: simplify mcu_set_bmc flow From: Ryder Lee To: Lorenzo Bianconi CC: Felix Fietkau , Lorenzo Bianconi , Shayne Chen , "Roy Luo" , Sean Wang , , Date: Wed, 22 Jan 2020 00:00:39 +0800 In-Reply-To: <20200121151105.GA2396@localhost.localdomain> References: <20200121151105.GA2396@localhost.localdomain> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 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 T24gVHVlLCAyMDIwLTAxLTIxIGF0IDE2OjExICswMTAwLCBMb3JlbnpvIEJpYW5jb25pIHdyb3Rl Og0KPiA+IE1vdmUgbWN1X3d0YmxfYm1jIGludG8gbWN1X3NldF9zdGFfcmVjX2JtYyB0byBzaW1w bGlmeSBmbG93Lg0KPiA+IA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