Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp854987pxb; Wed, 13 Jan 2021 18:25:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJxyM5fy7EJAnA7iwjMRRzRLIf48XoF7DX3sqVis20qJJFbxckuTPhh1Uck9mva21KDaOGlG X-Received: by 2002:a17:907:2131:: with SMTP id qo17mr3580083ejb.546.1610591150522; Wed, 13 Jan 2021 18:25:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610591150; cv=none; d=google.com; s=arc-20160816; b=mUOXPuv0BBAQSD9MvwQlBdHJI5eLUoEQfxX9GAe4wDWr63Erhkp12e3j3TsEw1zsa6 fSGjam38+pBRcbzwoZkSa2e61XGpL7tf3ol2Qv0OM/4IllRmSbM28SpPvCRQmLZnfq0t PlYcMRqVSaBPULKjCFDPj/ifPg7GAtpbDRLacuNic8WwtB5t1dZZs9C5ea/ChVWI6Vig Fwk56AAYKkfMFfVw2iB06hTgXK9Ivx5LIuijEdX42/KfpNcThOtjdvZerA+C3Hm0Qrzu vN8TLTi0FOzpMUAVS9r1UVJtn2iB7WjrV8/Afp6g4GU3V4FkB5gMJbu6KJ47MEeEoWuR Bjsg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=0f8PN7MZ8lryr7shQx6RispXN42qI03UFJy1nYTtVSY=; b=OMqGmWrRJXPUXHiEsHQTktK6UTHGYNv0MZtr3xkJaJOcs2PZML4AEwCs2scDaJaEHw 77btdICJK1duCao0SYrcQQR2taUatQP/iZ3VXMBCWXMJSkdgBYk96a+aStOQONL08aFf Nta4nOsRvG6Wj1y1F4M1YJBdVF133m3Ofn2x2OGJXsE7JoVod62ClIweNv8U+WBW259K UlnnNkMZ3HGYqgzEYiMwbSz9SFxyX9gR6yP3nPrDVZeVjImRp7QvEpXw1IMni3rI+Zpq /vGFSzMQiyntslj8mtsp+VooCYZkoC/QunF7ZpEUERCdGODtrf5z2ouo8YRGU+HwHI5S ECxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=RjfS9u9i; 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 i9si1867120edq.66.2021.01.13.18.25.25; Wed, 13 Jan 2021 18:25:50 -0800 (PST) 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=RjfS9u9i; 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 S1726773AbhANCYc (ORCPT + 99 others); Wed, 13 Jan 2021 21:24:32 -0500 Received: from Mailgw01.mediatek.com ([1.203.163.78]:24819 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725997AbhANCYa (ORCPT ); Wed, 13 Jan 2021 21:24:30 -0500 X-UUID: 2241d1b2e2e647a9b8dcef62b71b080d-20210114 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=0f8PN7MZ8lryr7shQx6RispXN42qI03UFJy1nYTtVSY=; b=RjfS9u9i0ZbvSUQHh+FUybKa9AEmf+r8uudOotuRlcQY9eMqyFfvV+6HPfzCmpHvjigiQKNgKiXd9CXld90Pq3iT8zeZc6c4H/N070k4aDxfpnIcPDz2Ujc0GMsbBtPG8ffDkFJK884R5hvsrQOY/TdkHjBD/rb4CQSESyPcHrY=; X-UUID: 2241d1b2e2e647a9b8dcef62b71b080d-20210114 Received: from mtkcas36.mediatek.inc [(172.27.4.253)] by mailgw01.mediatek.com (envelope-from ) (mailgw01.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1670023909; Thu, 14 Jan 2021 10:23:40 +0800 Received: from MTKCAS36.mediatek.inc (172.27.4.186) by MTKMBS31N1.mediatek.inc (172.27.4.69) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 14 Jan 2021 10:23:38 +0800 Received: from [10.17.3.153] (10.17.3.153) by MTKCAS36.mediatek.inc (172.27.4.170) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 14 Jan 2021 10:23:37 +0800 Message-ID: <1610591018.30053.9.camel@mhfsdcap03> Subject: Re: [PATCH v5] usb: xhci-mtk: fix unreleased bandwidth data From: Chunfeng Yun To: Ikjoon Jang CC: Mathias Nyman , "moderated list:ARM/Mediatek SoC support" , , Tianping Fang , Zhanyong Wang , Greg Kroah-Hartman , Mathias Nyman , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , open list Date: Thu, 14 Jan 2021 10:23:38 +0800 In-Reply-To: References: <20201229142406.v5.1.Id0d31b5f3ddf5e734d2ab11161ac5821921b1e1e@changeid> <2aea44f0-85e7-fd55-2c35-c1d994f20e03@linux.intel.com> <1610086308.24856.30.camel@mhfsdcap03> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4-0ubuntu2 MIME-Version: 1.0 X-TM-SNTS-SMTP: D96C631E47A1733E1479224AE790FF99A3F6127D3291F12C857B76F92C1FF2022000:8 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gVHV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