Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp491983ybg; Wed, 3 Jun 2020 06:14:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkvAYJG53AYg/CfVdsYYBMGiHWGRHV3jOScUkVd+p4rl68SrBLpGKLWzlnWHqVKV7HBdO1 X-Received: by 2002:a17:906:70ca:: with SMTP id g10mr28844600ejk.171.1591190071072; Wed, 03 Jun 2020 06:14:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591190071; cv=none; d=google.com; s=arc-20160816; b=xfI8qiNJag052ez2a5XL8ZIyqQPV05u5ftaXIdidBOsBw5w1L10JBEzPuApI1HXp2+ ix6wMFJCMh35vO38U1RwHvpkhqjN6HDpW1rL5w80UhVDDy96m4L6smkecDXq3zkhcaCM cQPutttKOvP6c/KXlWl4HVDTLVmZiACA039M/cF9v+iReSc8S39oYoKBXsg4iY1M5RRB 4dp9M/nSfvMfzTWrQTluKWL7QC2cqZuDAstmRow7rDxAubt22Brxncd2EFPrXxn40USa 3UcXbYKhv3IsmV/tZGGOz5Q9b9IykkgJ6OW1JUVgBYUpMDkMRTQ39zzfm31uRTr+roQj gvJg== 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=2OS1Oc6QKgyNEMcqfsLs5jUWJHdxON7zK6mWXvLCPnM=; b=ithZ3JLD6tZuN4O9v7v2jZ+PA/Qsjn6c2ECqckylMf+yJuNZ5B9YWC0TJAAj26qH1H R4CMycJDHHCeDEbsBhSqPngCz9DuJVP7qEgK4stP5L0qc5CMn4RBcEivPHXgtsc1NbnI EHdrpkJsvGVyfkIrHWPN5BdSpY/lj/w7kNFhjDBFEivK/ts2hKXJiIGV2hyvigbbkeML ++Z5G9fAejafahhLkX0KkVSMe4v2n7VAi22ibS8r6lqcXlMfBxaFT1p9RAYaWE5hWdNh JZX89Ow1iaDYcTqZ4+9L2z2pjpyPX4RKBHwNP2zW2JmKc/ttkrAFvS4kh1gJFcPv9g/x 3e0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=qMOL6MSH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 a62si987469edf.361.2020.06.03.06.14.07; Wed, 03 Jun 2020 06:14:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=qMOL6MSH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 S1725967AbgFCNKK (ORCPT + 99 others); Wed, 3 Jun 2020 09:10:10 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:57799 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725854AbgFCNKK (ORCPT ); Wed, 3 Jun 2020 09:10:10 -0400 X-UUID: 0657ba4250544b7d8ce827bf6bd21513-20200603 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=2OS1Oc6QKgyNEMcqfsLs5jUWJHdxON7zK6mWXvLCPnM=; b=qMOL6MSHSaTVwFjjhcJ+NW3YbFUjF2jBfQIQi/CZyflUFw5Mh0VO3T761w4WOEKrbLUtG7NYWM0aaWXi2wd37T+/92xYm74Pi3aJUJOGhGar3bZFTcJ8VnRW9WuOPMMsY65Vnf1vX82SxmLx/38gVgthPIuJXrDYFj9WaX1CQfQ=; X-UUID: 0657ba4250544b7d8ce827bf6bd21513-20200603 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 110805781; Wed, 03 Jun 2020 21:10:04 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 3 Jun 2020 21:09:59 +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; Wed, 3 Jun 2020 21:10:01 +0800 From: Macpaul Lin To: Chunfeng Yun , Mathias Nyman , Greg Kroah-Hartman , Matthias Brugger , CC: Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin , , , , Subject: [PATCH v3] usb: host: xhci-mtk: avoid runtime suspend when removing hcd Date: Wed, 3 Jun 2020 21:09:27 +0800 Message-ID: <1591189767-21988-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 891385B6AA430B1B9CAB903AC4DA341DF9FFE4F9D9796E2CF48A9C88B1AE21CC2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org V2hlbiBydW50aW1lIHN1c3BlbmQgd2FzIGVuYWJsZWQsIHJ1bnRpbWUgc3VzcGVuZCBtaWdodCBo YXBwZW5lZA0Kd2hlbiB4aGNpIGlzIHJlbW92aW5nIGhjZC4gVGh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