Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp230336ybm; Thu, 28 May 2020 21:37:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOMfR1t4aXFaA/jd+luMTdLWUu+Ne7SAoYpW1SIe+NjvjJ3YYgRJWQMgSG3S8FwYqzF0aT X-Received: by 2002:a05:6402:2c4:: with SMTP id b4mr6564823edx.331.1590727051871; Thu, 28 May 2020 21:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590727051; cv=none; d=google.com; s=arc-20160816; b=fp/bNyWQedVKx/GciaUuK8DkRAZKwzuiv8wtKev0FulgB0SVSJGIUQXuLvqixd5AHW k231TVOS6uSRBGnl9LdLsOSn2R++zYfGPwJvd+3ec22lSpsh5QdYe1e1lUcEESWPlOvR 8iwZL3RP2uQkn+RK+mLgWc+hHOe1FOBbPZCirL/y6ejtgL8Mm+gsVeU/v+Chw4m1v4kO KD0u8Yot2v5u71k9Ut8DtpVMw9e7RXkBV3c6ymAbZyrfdIQ9U+ggr3sBrSoYs6AkildS 4Z+SxjliljSBuiuOFv0mdddivZxN6l8HUDaVGua90In8p5LoPB2JwSI7gZX7NfkAAjqS pPqw== 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=NQxTpzWSVt9V/exBuo1GGmsYXw0ueriE8T12aD6F8IM=; b=v5XrzZD9rTGu6zYbkjFMtZmfxUE3hiotBLwh6Bp5A3q97aCMOdSadzhNWk1Sy9Ox26 fEtswjISjBc00ufoG90xu5qtzdazMsLLrUpz5xJadS5W2i/rJb5IHNkhf1U90Gl+Q8jv TnMz77uhKDKhYnSEG9bh2yQHtlxbi3aNHQ23TcXY2zJieAqYVA9YseeVIZtSdX/ARI1w 8YeweFOISCLuC39EgW0FQRj5Jp+olQhXG5v0VjIwI8QmTUdeZqwuWileJCbeAku4lA70 rowZdIUt6iBHer9BX0CAY7Q1UI67zjwEYJ+Ybo2KC8leas+BzuvUR3yNO0z7QKHKkpWb reWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=XtDq46ug; 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 c15si4973126edm.218.2020.05.28.21.37.08; Thu, 28 May 2020 21:37: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=XtDq46ug; 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 S1725863AbgE2EdI (ORCPT + 99 others); Fri, 29 May 2020 00:33:08 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:54675 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725562AbgE2EdH (ORCPT ); Fri, 29 May 2020 00:33:07 -0400 X-UUID: f0271cf6ad2d45038bb3d5c8fea372a1-20200529 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=NQxTpzWSVt9V/exBuo1GGmsYXw0ueriE8T12aD6F8IM=; b=XtDq46ugdCZakv0oCcUDzadMUYjE6/TWegB2PNYxZtPM4VKPNCYaFG5cpBrlgQkFA3fMlcq1jP/97Wq+wV5Bxua9aLYovYopOJOyv0I3M/UUfMMBAxEOem6HhueJkD/jpW8TnB7qnMZ3lmzTjsOj1sgu4ZW8hLBlX9utYS/Ic04=; X-UUID: f0271cf6ad2d45038bb3d5c8fea372a1-20200529 Received: from mtkcas10.mediatek.inc [(172.21.101.39)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1318030598; Fri, 29 May 2020 12:33:03 +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; Fri, 29 May 2020 12:32:57 +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; Fri, 29 May 2020 12:33:02 +0800 From: Macpaul Lin To: Chunfeng Yun , Mathias Nyman , Greg Kroah-Hartman , Matthias Brugger CC: Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin , , , , Subject: [PATCH v2] usb: host: xhci-mtk: avoid runtime suspend when removing hcd Date: Fri, 29 May 2020 12:32:58 +0800 Message-ID: <1590726778-29065-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1590726569-28248-1-git-send-email-macpaul.lin@mediatek.com> References: <1590726569-28248-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: F7F5029A8E56D799AC15E58E9FB9F79910F4976461FD69A9201D4F2A0F901EDB2000: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 YXBwZW5l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