From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55C95C433E0 for ; Tue, 26 Jan 2021 14:27:32 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0C3DE206CA for ; Tue, 26 Jan 2021 14:27:31 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0C3DE206CA Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date:Message-ID:From: References:To:Subject:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=KI2TIhHUkP2s5x6WByjmdTaXLwhpZn4FRrMBEQFUu0E=; b=K6G6aKMDKxWiAFJ63mLCO1AQ4 20s8yprqUOyb+f82XFxrGrt8HTzOFCAXA9aixQQcGBoMEqNe/8LSh2Ppw1587DAgd+I/uL76K7Cbl WTMDSN2xQ76Gccr+FLdyPs6ubWaC6qIZT/Vtd7R0u5VUd5ckQhnbwMAvqfRxhj2sMQwSYUblBP8pi ogGUq/SsBts7LF+yrj1n5yZGRW1epaVjgw0PcqbVhjwk+THhju/uXsbGqumwRRmQjhvGeCQZdkX/O l7B4uAOQUFINJQMQk/y8e4dqKFHXjADl8rvrKyXvUPOIEc+rGRm3ImRRnOBwmHqViio+X2qLENE4J xrULciOTA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4PHp-0002vU-Ep; Tue, 26 Jan 2021 14:25:41 +0000 Received: from mga18.intel.com ([134.134.136.126]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4PHm-0002uV-IS; Tue, 26 Jan 2021 14:25:39 +0000 IronPort-SDR: Akk/X9EsZduF02ZR9++tq93/PeETkCjmjdvHtpUeP2CIU/yXKjlBnLUBW+/9I2c/DlslRh95Hz siRgqxac28EA== X-IronPort-AV: E=McAfee;i="6000,8403,9875"; a="167578077" X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="167578077" 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 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-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210126_092538_788981_5AB4EDE5 X-CRM114-Status: GOOD ( 15.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Zhanyong Wang , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Tianping Fang , Matthias Brugger , linux-mediatek@lists.infradead.org, Chunfeng Yun , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel