Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1110986ybt; Thu, 18 Jun 2020 00:18:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXHDk2m2cnsvenyPW8usEprYRL+FRvLsM8YKQAZ5OK33Trsa8+GKr1lhH5xXtfwlp4zDAH X-Received: by 2002:a17:906:ae81:: with SMTP id md1mr2816561ejb.128.1592464727107; Thu, 18 Jun 2020 00:18:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592464727; cv=none; d=google.com; s=arc-20160816; b=LZ1ZHBwBp9O13u2siD6Ziik+uYL7K91NtqKq3h1XbIQMXJq9okauV4Da8W1w3JaZM2 eF4DraKbDvxTPj2cys2Wt+FPR7/zhXoaGVXvq2AOaCeFEwKD8pea9+JfNEIcJTgVJsKl xrCu7+KWFjomAXLOTwM026LzWLq7JfU7svaZJObOi3KPf/r9Tc329RpB6uY9bSel/j3m 9ljYH+WBboUEP0MetHI+BHbd5/bROHkp4Vd14ytwcl7pVqzpKksLrcc4eFCh/57zN3Xh EJuGNHcmfP/V2qHNCapgo+yA46P8ESUCGXPhRmoXI1MLtTwIEA8RDB3YLN+LzSODSivA O4cA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=HnIteQvd4KMhuQ9w57SE4F35NLCkVns3U4oUnquUoAs=; b=A1U5/iBjiSwxYE+CYngdwDwuO7Afw/R+XwY4USOGPc2jfrEKD1vv9NGnMJTdlVQM0g xXbkklTTLRDtRcbkdU0KynjZyZ+AB6ZnixCTp2BslB8xywnFc8P4r1qoeQPKbW7wvdsP W/C7o+IBb0oxKshsJhp80UwGqC5tAYa2i3JmrKVaHBmUg8S7Hegf56AOXcEUqVWXsFp0 91G0YKg4aAZEZHh/lv0ckIZLBF+KY2m4cu65rTLIfXSPyJePyAU5SY4FTru9rFK2cHPA Xud+tKSoCB3jMapCGrNKZX/4ElBWGRXzDzGY6U1NcwFntjjFc5zVjU/6DMr5Yhb+C2hA dmEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=FMkqgzns; 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 cm27si1416191edb.248.2020.06.18.00.18.23; Thu, 18 Jun 2020 00:18:47 -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=FMkqgzns; 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 S1727973AbgFRHRU (ORCPT + 99 others); Thu, 18 Jun 2020 03:17:20 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:16466 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726905AbgFRHRR (ORCPT ); Thu, 18 Jun 2020 03:17:17 -0400 X-UUID: 2549ac3351ef46149d2ad7b29d6565bf-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:Message-ID:Date:Subject:CC:To:From; bh=HnIteQvd4KMhuQ9w57SE4F35NLCkVns3U4oUnquUoAs=; b=FMkqgznsUMJi1VDjIQn8N2enhzjxLZV/YnntEtWKjo+ne6Z+5EkmPF5T+v4wJjzE4dY08DrqBwOuzUzSsm4oLV0tCYy5dlLsNGsHsubN4REFmvB4Qx/2ZZdRdhCJ5qCt2ecf+vMdfZjjFC/8YUR/KsWVsCRUwuWec2E/rvL5LmQ=; X-UUID: 2549ac3351ef46149d2ad7b29d6565bf-20200618 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 336558185; Thu, 18 Jun 2020 15:17:12 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 18 Jun 2020 15:17:09 +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 1/2] Bluetooth: btusb: fix up firmware download sequence Date: Thu, 18 Jun 2020 15:17:06 +0800 Message-ID: X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: E120C006C4D97BC1152B7312E11C245C13CECDC4A1FF53C4D9A6A165180109D62000:8 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 YWQNCnRoZSBmaXJtd2FyZS4NCg0KRml4ZXM6IGExYzQ5YzQzNGUxNSAoIkJsdWV0b290aDogYnR1 c2I6IEFkZCBwcm90b2NvbCBzdX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