Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1110683ybt; Thu, 18 Jun 2020 00:18:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxp6A1tJq4daHQ+CjLzHGHGagnGG6P3RjC7ZGhDL166dHaP5assYG7LSAiyim6ZOnbdgWLX X-Received: by 2002:a05:6402:3ca:: with SMTP id t10mr2901605edw.128.1592464690181; Thu, 18 Jun 2020 00:18:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592464690; cv=none; d=google.com; s=arc-20160816; b=suHLau7bF5J3Rqv5dUZ+HNNvnikw3TVLWFlAY/IFOt4SpM1WHPjw6GMldacuK88aV5 ggkIxckpyC7eGxM9Rh8sUHCb1cOTtH8Mh+4woB7fnCtNAVAkTxqqt96qqPfsnzNi2n4X ekHD8YQzIneKhv71OQk6qKZQ8JYF2wPC9TYsA/bmZnn2H81r7c/wWHHNAmq3KHbgywoX 24sc43oPpULbPULn+aHcL54yj2gyz4tQmiZqFd7j0GF6e41J1uq9F60F4//7b0EtHmkl nCoYb/hM6GvYpdN8s7fbMAXq+OPdsJXv5qlfnumwZ610UUxLdkVmu7lSr/TlGbWg9XS2 uNRw== 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=aDN+iiFlgb/HTwHnI1GgrUUk9EOWb7fnkVZpVNjf0yw=; b=QGAy4ABUIPJQ997M/MifuGPrP+2glIP+29fuIxR7FK93VOwuQvRDb3u1u80ihoxH/j O+DE4ScqFQuDOPHP1AJi3y9wiVPowmEaJTZ/aBCi961ZPcO/5S0nogaE6hGmnoY/iMcf d2o6RGWkJltod2MGZgryYTa4IOk2kbHhwqEm8Ya6XZc/6Tbz72IWTCpj2M9w5WZOBc6d w8lah2UdHJ9uguFHpL0o3kH0cOCzM51teq7vtax7ggCSSXYfKxFy87nMnKTcbF6ecW3c 0h2VPsvG9oE0xGFglCVIq1SodYUWFShtvzarh6MH44cLPAUz2oWhkzCQH/YtvhFUrUdN Ib1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rTYqOdTb; 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 dk11si1399762edb.19.2020.06.18.00.17.28; Thu, 18 Jun 2020 00:18:10 -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=rTYqOdTb; 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 S1727809AbgFRHRU (ORCPT + 99 others); Thu, 18 Jun 2020 03:17:20 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:60927 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725829AbgFRHRR (ORCPT ); Thu, 18 Jun 2020 03:17:17 -0400 X-UUID: e8455561c44641ffb33f1fde6f3d70d3-20200618 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=aDN+iiFlgb/HTwHnI1GgrUUk9EOWb7fnkVZpVNjf0yw=; b=rTYqOdTbz9Vb4gOIc7omEyOWE5VLJ1HjwntjUdSH6YTsuxcYpE0GGVDE2fbpbX0+vdV14YBdtgUkvIKCr2mpVV1VJXidoJdKHE58TE8K/hti3E5h81l9IjHlSlJfsPpW/5tf1nhfe5ZUYcpqNYHRaNm+IMiY3mbyIBDMa5DfOcY=; X-UUID: e8455561c44641ffb33f1fde6f3d70d3-20200618 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 454420887; Thu, 18 Jun 2020 15:17:12 +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; Thu, 18 Jun 2020 15:17:08 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 18 Jun 2020 15:17:08 +0800 From: To: , CC: , , , Sean Wang , Mark Chen Subject: [PATCH 2/2] Bluetooth: btmtksdio: fix up firmware download sequence Date: Thu, 18 Jun 2020 15:17:07 +0800 Message-ID: <51dda3f7e6e3a01b20145c5e879e837cec78b7da.1592463595.git.sean.wang@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: 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 aGUgZGV2aWNlIGhhdmUgdG8gYmUgcG93ZXJlZCBvbiBiZWZvcmUgc3RhcnRpbmcgdG8gZG93bmxv YWQNCnRoZSBmaXJtd2FyZS4NCg0KRml4ZXM6IDlhZWJmZDRhMjIwMCAoIkJsdWV0b290aDogbWVk aWF0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