Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp977243ybg; Wed, 3 Jun 2020 20:06:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFgOhw4zJx3e3/gEDP5MJXr0terxV9H0ry5GEU2p6R22O6t62LRclv+gK2OTkkMtuEprte X-Received: by 2002:a17:906:840d:: with SMTP id n13mr2063625ejx.49.1591239964799; Wed, 03 Jun 2020 20:06:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591239964; cv=none; d=google.com; s=arc-20160816; b=LD2e7+1ClRHGDits+wicNen8pThkdBxx/0a6BU5azCxoj8QbiCKCCE4qOV/MWy33Y1 UKIdRM4YoFcg6CMy60qAJq/6LVzY2iZkMP3riUUawKOkxmpCvZEdYplSnZoitLi1Euc6 xrlmgiqUPfxViKspQmx+okfPBzzn0fhgNCgfkXRDEY8DyYsq3+kBKNXOhiY9KxMZ5p5I YQJIuAuozrwEDVdGR41Um/S72rLiSXO1b15hleXI1chrWM7n33oIC/p2aCYH56Y7r7cB jPwewKe22iNwOGiO/yEFw/j4TY5cXZv9OMTR6C6nThMTqxRbrftyyFl9e0TghUO3AWWe RcSQ== 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=UrOXbDNOnHiFKXtwaHVgzKiUKHi9PYwsXdkt9BWMTQ0=; b=D8YZk6NqsDoaYgUo/l9YrhQSjE9Hl6hqAU4qGf1ytVGvVOzScmtc2ffaq8jPufcuP0 SchKHDHgKuDccB0Les5W5PiBtZ0Obgxn8myFYMJHiUkqf/O7VJ91M1pf8gBlnvDT/ekM jEQ/VzdiEjHj/CjxLN+UHyrx6TL7S2SYCpi5/h4KkbkHvjUEA3o7yUR1yBWLPUWRTWDM hEET8yivmw3no//c4HxxEUJZY19SuCNLEIEWb+xcmezXyJzn+MebiZONZJJRVpm8IshR lIq6e9O1fh5xDG53WDE7qXusVlj0W1B/7jKZFg8MkonwRNod0vhkAD/XvmtnmCVNTTde z8Hg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=l4b8g311; 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 a2si792201edl.517.2020.06.03.20.05.42; Wed, 03 Jun 2020 20:06:04 -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=l4b8g311; 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 S1727008AbgFDDCH (ORCPT + 99 others); Wed, 3 Jun 2020 23:02:07 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:16223 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725992AbgFDDCH (ORCPT ); Wed, 3 Jun 2020 23:02:07 -0400 X-UUID: be76835fb3214aa3b7f98be91c9e5e1e-20200604 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=UrOXbDNOnHiFKXtwaHVgzKiUKHi9PYwsXdkt9BWMTQ0=; b=l4b8g311ij1osd5rrSxatQoejISeR2FIM9I2BLjH5Z/lF5w8CdMBFRPcBp84q2OS4CxL9M56MOPd2wPBOp9D/552vfvJTfOKfHr0KlZa+rg9vZY3kxhFE+KCSJJutYqimi5pgAKHP6lUDwhjwveUlVkudm8n9bE0Ve4NyvBLQJA=; X-UUID: be76835fb3214aa3b7f98be91c9e5e1e-20200604 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 493531536; Thu, 04 Jun 2020 11:02:05 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 4 Jun 2020 11:02:03 +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, 4 Jun 2020 11:02:03 +0800 From: Macpaul Lin To: Chunfeng Yun , Mathias Nyman , Greg Kroah-Hartman , Matthias Brugger CC: Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin , , , , , Subject: [PATCH v4] usb: host: xhci-mtk: avoid runtime suspend when removing hcd Date: Thu, 4 Jun 2020 11:01:53 +0800 Message-ID: <1591239713-5081-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1591189767-21988-1-git-send-email-macpaul.lin@mediatek.com> References: <1591189767-21988-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: B6818B62397C1B7303376C105A3A0368FFDDA6D0DA11CA08A9A0942B6D3722342000: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 YXBwZW4NCndo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