Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4058095pxb; Tue, 26 Jan 2021 11:13:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzLkbsF7A5L4nrRWNeMRUGrIxS5kHURFZsTNxVF70NOVA7q2ziA/pcwSoRKROrSypBpcE/y X-Received: by 2002:a17:906:b082:: with SMTP id x2mr4145239ejy.100.1611688424006; Tue, 26 Jan 2021 11:13:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611688423; cv=none; d=google.com; s=arc-20160816; b=WJVhGANKBXl/WE9z2D6u9DcA3073jMGOgVhE2AzbMyFmeIAUAY7luLvfG2EJNCLFEY Qs0VQ7L1KYquiIU1K4BJTQCvyp+E7K1JT197Vbnt488nVPboyWRw9eZiCUGsRFg9F41Y wvUgUqfvCpzhcOTs1P+9ZWeTQzOLTNb77b6H/zL7MbIpY7TyPeXJ0lvElwDgfzj7/4LB tp2Q8I/hKb4TcYsp1xvJAFTipDlhEboSVf2djbOBOEatxJRfOSyWU64VQzpqL2vLGZMV UkbEhOYRx3Cgv/R4NS07ssJTY6fcOhLbZiHjWzqkdy2BgV0k3YGBo8y8whGtuNhsRM5T 7Hiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=s5ahjCAMjyPaj7ZJ4fRUn8RUMGXeAHAjvN4Hb+px/Ow=; b=ENBjzYbrGRNV7Dqkr+68zjlso7UQs3u58oNYROtR/zDRVE3PEY8gL6Yr9/C5UNOOnh S6SuMOoHvl75KSjH8GWeiTH2m/w8Rj1KhT3UhbKs24jYfMQdJRfmQjXSiOtXPvWqBvfu TqP/sh0wU0ciVKpxy1UXcElxG/PiTQu1+WH9zCxOnnlGq8yl97/Pje49Fe877eZulMgX jst3skDPDKMwRI3Nxba+ra9h7nMgTiV0J0ZC3kU43JuCoPQdcvLQENTX7mOfuzf7wWBA tDuLbdwupHMdWHOImkTymfuiHtHH1IgVWXNnBjuQB6dgS8v1cabp3FNMaz9VCHw8pb8p yZ9A== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g9si7035781ejj.456.2021.01.26.11.13.17; Tue, 26 Jan 2021 11:13:43 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405837AbhAZO2y (ORCPT + 99 others); Tue, 26 Jan 2021 09:28:54 -0500 Received: from mga18.intel.com ([134.134.136.126]:5622 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405550AbhAZO0N (ORCPT ); Tue, 26 Jan 2021 09:26:13 -0500 IronPort-SDR: o68jXiInwOxN9TZsRLyhdk3hAtIkCI+LNTcXnz7iEiAg1lIM3Q76aakp1NoCY8xffL45XatDtb 2ceof+v6UqaA== X-IronPort-AV: E=McAfee;i="6000,8403,9875"; a="167578080" X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="167578080" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Jan 2021 06:25:28 -0800 IronPort-SDR: vvt6Adz2BKcGwpgcWYcH6FKlCUOcTI7rq0u1VcZGFWVx6poy2y1ywqfBOwaSS9FpY9mYHyZd7I ONPGlqgmDVAg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="350679839" Received: from mattu-haswell.fi.intel.com (HELO [10.237.72.170]) ([10.237.72.170]) by fmsmga007.fm.intel.com with ESMTP; 26 Jan 2021 06:25:26 -0800 Subject: Re: [PATCH v6] usb: xhci-mtk: fix unreleased bandwidth data To: Greg Kroah-Hartman , Ikjoon Jang Cc: linux-mediatek@lists.infradead.org, linux-usb@vger.kernel.org, Zhanyong Wang , Chunfeng Yun , Tianping Fang , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20210113180444.v6.1.Id0d31b5f3ddf5e734d2ab11161ac5821921b1e1e@changeid> From: Mathias Nyman Message-ID: Date: Tue, 26 Jan 2021 16:27:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 26.1.2021 16.13, Greg Kroah-Hartman wrote: > On Wed, Jan 13, 2021 at 06:05:11PM +0800, Ikjoon Jang wrote: >> xhci-mtk needs XHCI_MTK_HOST quirk functions in add_endpoint() and >> drop_endpoint() to handle its own sw bandwidth management. >> >> It stores bandwidth data into an internal table every time >> add_endpoint() is called, and drops those in drop_endpoint(). >> But when bandwidth allocation fails at one endpoint, all earlier >> allocation from the same interface could still remain at the table. >> >> This patch moves bandwidth management codes to check_bandwidth() and >> reset_bandwidth() path. To do so, this patch also adds those functions >> to xhci_driver_overrides and lets mtk-xhci to release all failed >> endpoints in reset_bandwidth() path. >> >> Fixes: 08e469de87a2 ("usb: xhci-mtk: supports bandwidth scheduling with multi-TT") >> Signed-off-by: Ikjoon Jang > > Mathias, any objection to me taking this patch, or do you have others > being queued up for 5.11-final? > No objections, haven't tried it out but it looks good to me. If I finish some additional small fix for 5.11-final I can make it on top of this -Mathias