Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1003651ybt; Fri, 19 Jun 2020 21:16:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjrxYQIrIgp6Getv57ubSp53WufbQfKiY8Z6cUq74YYQxVBx8sjaMQzLFVf+Jdr5vs5+pv X-Received: by 2002:aa7:c2c7:: with SMTP id m7mr6465010edp.148.1592626602360; Fri, 19 Jun 2020 21:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592626602; cv=none; d=google.com; s=arc-20160816; b=s3/dVQs9Lp6b5zT1Efqbo4JEKi97wtbww6WuanMmV+6YM4Wir8/06W+p5PLMRhlVqn whoQdF/NHTKupsSEEOGod4efp+ENwI8nZLT/DDE5IuokAR4hz5/t6c5/5ht+Hx9eNafb oqqAi8s72LXJcMZDrth73bYaoJIrXYzKfW1kjoo5CV/S9VQN2VRItAeIUkBwfPcRcARF 8iODUYtm+cQN1c+5eiGhemVZAT2HlMI1lyqqXIOjqxhtg4w7DhdkF1zNJI4+EnPJ/H/y cgcroVLUMIazMnvSqYnRzLfz8UThS6pcHsRDFUe9AeCwFV9vh5aCnNyCCKU63KRvQxIX YQJA== 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=sIDH8EdAE4qcmj93nhKlzx7c6UAV1dzXbtm0oufG89w=; b=F4+7r3iTAzwsU1xb0QlLJPY75X1xbJvlodr4l7oBlnwZ6Vq+gTJMUd4I7rgwt66v2W oVXxQAPgJI02vizafClwpn+sYOnkY4rCDvUu78yymSBDkeIPe7Awje8nsw1HT9feYu5X KZVuNjev0YoYQFQQxHJA7BjLOsHM6VkX0H/uNJHVS64j4lTVaCWtPFOORpXGCM6ebHnh EZbeadpbZIy3K921+gIx8R3l8hwMQy+/KMIpCaUL7BhqeiRihRhJwAmxl+wa9mLUiL3j L0tUnkXgRxaNv0m6eo3p//i3tC15JiL2aJ6jdOLX2ACM96yoaJI5RE/dZCzlIAy0nbY1 Is/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=P3vPznNb; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 e5si5271049edk.409.2020.06.19.21.15.58; Fri, 19 Jun 2020 21:16:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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=P3vPznNb; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 S2393252AbgFSRwL (ORCPT + 99 others); Fri, 19 Jun 2020 13:52:11 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:30411 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731445AbgFSRwL (ORCPT ); Fri, 19 Jun 2020 13:52:11 -0400 X-UUID: 4478a7f4d29c44a0baeac7527268ac55-20200620 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=sIDH8EdAE4qcmj93nhKlzx7c6UAV1dzXbtm0oufG89w=; b=P3vPznNbBFt87BddjbeK4q1uarTDy5M62LRiA60qFwjamgD6+S/0/pXdGMxxKeHEZuKtFb8AAqQ2+jC7qp6Y1sWZdOePsSSRpV3ueXiW0dPCVpDqYopHUHo5lPTbuLmWXcjd0NYTQgmEbaRgfKZY/hmtFuGp/5lKZF8Ja/Y+nqA=; X-UUID: 4478a7f4d29c44a0baeac7527268ac55-20200620 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1320373898; Sat, 20 Jun 2020 01:52:05 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 20 Jun 2020 01:52:02 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Sat, 20 Jun 2020 01:52:01 +0800 From: To: , CC: , , , Sean Wang , Mark Chen Subject: [PATCH v2 2/2] Bluetooth: btmtksdio: fix up firmware download sequence Date: Sat, 20 Jun 2020 01:52:02 +0800 Message-ID: <8ed6746c7d2ce6a38eb88c78c81593c0cbd4451f.1592588740.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <7d835850c16e07d1346c763900cc8c880182f497.1592588740.git.sean.wang@mediatek.com> References: <7d835850c16e07d1346c763900cc8c880182f497.1592588740.git.sean.wang@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org RnJvbTogU2VhbiBXYW5nIDxzZWFuLndhbmdAbWVkaWF0ZWsuY29tPg0KDQpEYXRhIFJBTSBvbiB0 aGUgZGV2aWNlIGhhdmUgdG8gYmUgcG93ZXJlZCBvbiBiZWZvcmUgc3RhcnRpbmcgdG8gZG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