Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4716852pxu; Thu, 10 Dec 2020 03:52:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxl6LfNxn4UFNRf+9LeVFRsZw8YEGpxzNpo5EkTGJ5lhtQb5IXVpfaKdLL0BS3yIF5SoBf X-Received: by 2002:a05:6402:312c:: with SMTP id dd12mr6453861edb.327.1607601178967; Thu, 10 Dec 2020 03:52:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607601178; cv=none; d=google.com; s=arc-20160816; b=R4DdHKreDqnH1oCn2cQleTZVrHBLhWF8H3K7rljuSFkIWDL+oKsrJ0I/OQhzCuIODb Tx/mHfYkNhiDx0H2ynJd1MnwD/YglkIwp4iFMHaERe9ALJp3BsctbMxwIoS9r5auZ6kA idinuAbkVetvFJ7vJNFyBJqJYReYTHl28Bjk7oel/1k3e2dEfOv7zBquRamI5ld0hhdc GludPi5A/ySyzSdtN2PYdad2k/F9x07+mRBzC2DQXhIrt02CxN1ftH5borb3rr4KKC7S AQxuwder79D+A5eKzAhZKbr0jTqxCzpW/C9zP562fx0iYCsdvvuDQOL8QKi86ag1LWEt 3j/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=t+G9czYIayl3DS6ZFIbOMZ2dDoSxz9khDfYwdOJk8yA=; b=dSOGm6q+S6Ir09hdxsJ7zM11fu7Rmq3/vtVwg3Nzd6w7eSqzyMw2Vum2j27mm1B2cv 9Zlby1noQ/NFQ+HuSBe2gTVAT8+1XNkt7+Xnh+kq4Ythoau4PnyBNNsivvslgzeOoH5e 4oAMxYMvhV1BJ9x4jlaS9pqI5hu63A6uUm93/6bTY5eGluV4FBajy2fZKysV/zFmSGOU w0hkuiSbDWBDOaTN0nfAETolaTmTxGwK0TWOuZsb5tpNe85INwEXrlhI57wB0/W77s+7 uOsNc12tyM5ehN73+0dgyVzAQiuEWSrIEXAfJbAs3Akv6PQ6HncFtedeXzIT8TisYvHT L/3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=YqWT9A8V; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si2542635edf.565.2020.12.10.03.52.34; Thu, 10 Dec 2020 03:52:58 -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=@linuxfoundation.org header.s=korg header.b=YqWT9A8V; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389315AbgLJK7Y (ORCPT + 99 others); Thu, 10 Dec 2020 05:59:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:56606 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389287AbgLJK6Q (ORCPT ); Thu, 10 Dec 2020 05:58:16 -0500 Date: Thu, 10 Dec 2020 11:58:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1607597855; bh=+yNy2/EhKij1FrxrK/M173AdxIP7Qw+piOTeN0Owbwk=; h=From:To:Cc:Subject:References:In-Reply-To:From; b=YqWT9A8V1/rwqj8dU+bFqO3kPDEHGzBagQ50kyDtSZqSbkS6KE1WRE95VtxK6gnbD JqzjKXl1JUblAc7BspaphdDpa9W7IHVld5x+e/tAF2M1DFri3qOVhfbGs/KH5nGKHp VBwkyzBcX2PHgiRtRNv9qddao6RrODx2jEPgFmGw= From: Greg Kroah-Hartman To: Ikjoon Jang Cc: linux-mediatek@lists.infradead.org, linux-usb@vger.kernel.org, Zhanyong Wang , Chunfeng Yun , Tianping Fang , Mathias Nyman , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] usb: xhci-mtk: fix unreleased bandwidth data Message-ID: References: <20201210104747.3416781-1-ikjn@chromium.org> <20201210184700.v2.3.Id0d31b5f3ddf5e734d2ab11161ac5821921b1e1e@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201210184700.v2.3.Id0d31b5f3ddf5e734d2ab11161ac5821921b1e1e@changeid> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2020 at 06:47:47PM +0800, Ikjoon Jang wrote: > xhci-mtk has hooks on add_endpoint() and drop_endpoint() from xhci > to handle its own sw bandwidth managements and stores bandwidth data > into internal table every time add_endpoint() is called, > so when bandwidth allocation fails at one endpoint, all earlier > allocation from the same interface could still remain at the table. > > This patch adds two more hooks from check_bandwidth() and > reset_bandwidth(), and make mtk-xhci to releases all failed endpoints > from reset_bandwidth(). > > Fixes: 0cbd4b34cda9 ("xhci: mediatek: support MTK xHCI host controller") > Signed-off-by: Ikjoon Jang Shouldn't this be the first patch in the series? You don't want a fix to be dependent on code style changes, otherwise it is really really hard to backport it to older kernels that might need this fix, right? Can you re-order these patches please? thanks, greg k-h