Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp956223pxu; Fri, 11 Dec 2020 20:11:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzbzRc1ScK4rWtof3cNWcA96UVliJSlhwrdjdlfCnP70le621jMGh+7BFvMYGtF5wynkXvX X-Received: by 2002:aa7:ca03:: with SMTP id y3mr15254469eds.87.1607746296284; Fri, 11 Dec 2020 20:11:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607746296; cv=none; d=google.com; s=arc-20160816; b=POifkC04u9Ef7FQ+tZbRXTfFJU9+37fAZdbvDbR5G6Vq0ujZu3/QwBelBcmfo2Gx5N l4WTkyXJkDIdw5/S6+XrTDw3/MnS/HbHaaMb8c6DkklpSO1LzA54EloguT8s69s6IAhX WGZNuv3dpB1q11K3kfFlVekooFkcPCvIuqxuzAsEo1dRxx4+gFmu0UdH2MLvIpPvZSxZ j4E//Ywu6hp0QkQ0EapQaQKdE/+fHUfpg8vptj/If0rl9ozKerv5sw0sD0DYmf//F6CL uEOofQB21kwFIyKknf3JKmym9BcsEmD6FV6KUiTrZc/6jzMPSb/FITbTDtoez2zaBv5B cKtQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=J9Gkfw6PqMYjMiqAsCdoTdxmVJeKL3b8kE1ybX0wQp8=; b=lz7MkjR1tmjd73PCPDhH5SHtUNbokyDjcE86E2wihga9jk0N/cHMsKuv6lOhjeB61G 4SuB4FMAmajTyeSYYxWkqPk1N74XLEIOUSC2pVoVTk+uW8ozHk8TCsaLGpIjnPSzDD60 yRMK+PH9UPD/7Po+AgTIl0ckdlxhjNNPHULlbKj/4jSHC0p69RyOd01Up0+2FGK65XcT oj43vnNGitt5F91c7ngtlVuBihfCEyX/Lnf8yqUnGxUE8VzRQi3RmG/6Yd44GF01r7QW wUHIVfjqvd9j4XKTCu22psCvHqN1vd6rwS4a7EYix02CtW32R0rwO2YhLRTgwRMkXW9H cZ4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=WIyjZRTh; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n18si5503958ejk.69.2020.12.11.20.11.13; Fri, 11 Dec 2020 20:11:36 -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=@chromium.org header.s=google header.b=WIyjZRTh; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391388AbgLKGhi (ORCPT + 99 others); Fri, 11 Dec 2020 01:37:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389075AbgLKGh0 (ORCPT ); Fri, 11 Dec 2020 01:37:26 -0500 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E80CC0613CF for ; Thu, 10 Dec 2020 22:36:46 -0800 (PST) Received: by mail-pl1-x642.google.com with SMTP id u4so4089797plr.12 for ; Thu, 10 Dec 2020 22:36:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J9Gkfw6PqMYjMiqAsCdoTdxmVJeKL3b8kE1ybX0wQp8=; b=WIyjZRThPyIcByjD1VjOn8yzB/aMzxMJnGFYKBhQUxHL/8D99o1+TixNQQzj97PI2l Oblyp0AWTkMt/E7msPxQhosmku8buexCrgtuWx2B1epKLnou7e3T2QboFcEldqVJgvoL 5rcIzR7SGYwuoKzqr5+ki7K/3DAxIn0tB6nLQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J9Gkfw6PqMYjMiqAsCdoTdxmVJeKL3b8kE1ybX0wQp8=; b=acRUvWFD1xk5IZMw5GMzc5rF7TOcLenUXDXB6QB4esmZLfN9JpnwBQYKUBmxiV67Fv ZtKiraDbUN2OD5new/N5qZ4HN1NlaLmKYlw0oZLh8Ez2Td05j5NMXDvaVYpDtwovcqnV 76c7xtFujdv+kT3ey0lbVym0Nvmd3SwksyDXVz6VutuQQmgc2Zmia0c3WHeGvCF79XlV 3uLQeBlRveI5962x993ekfKpeJvBMiL7pt5HBEiYtisd4whJHKUlgh6QY2WXfz6SKeAv x+Sdwp899znZ2ZHreI6rm+IeL5dndaXz0N+f0sVcSw8aOzcflz16aUp1ZHB19S2nodBs Qonw== X-Gm-Message-State: AOAM5328JcvhEu3eD4tCKsrWxHNoZfJbh+8bH35qfnjP4x3KwR29IOtZ 9t//Vgs2ykT2iXsj6PdELRTeJQ3QuHRcUAuIHGhbsQ== X-Received: by 2002:a17:90a:902:: with SMTP id n2mr11676752pjn.126.1607668605729; Thu, 10 Dec 2020 22:36:45 -0800 (PST) MIME-Version: 1.0 References: <20201210104747.3416781-1-ikjn@chromium.org> <1607651584.23328.20.camel@mhfsdcap03> In-Reply-To: <1607651584.23328.20.camel@mhfsdcap03> From: Ikjoon Jang Date: Fri, 11 Dec 2020 14:36:34 +0800 Message-ID: Subject: Re: [PATCH v2 0/3] Release allocated periodic bandwidth data from reset_bandwidth() To: Chunfeng Yun Cc: "moderated list:ARM/Mediatek SoC support" , linux-usb@vger.kernel.org, Zhanyong Wang , Tianping Fang , Greg Kroah-Hartman , Mathias Nyman , Matthias Brugger , "moderated list:ARM/Mediatek SoC support" , open list Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 11, 2020 at 9:53 AM Chunfeng Yun wrote: > > On Thu, 2020-12-10 at 18:47 +0800, Ikjoon Jang wrote: > > xhci-mtk releases allocated TT bandwidth data only when whole > > endpoints of a device are dropped as there're only {add|drop}_endpoint() > > hooks are defined. This patchset adds more hooks and releases all > > bandwidth data from reset_bandwidth() path, not drop_endpoint(). > > > > > > Changes in v2: > > - fix a 0-day warning from unused variable > > - split one big patch into three patches > > - bugfix in hw flags > > > > Ikjoon Jang (3): > > usb: xhci-mtk: code cleanups in getting bandwidth table > > usb: xhci-mtk: delay association of tt and ep > > usb: xhci-mtk: fix unreleased bandwidth data > > > > drivers/usb/host/xhci-mtk-sch.c | 180 ++++++++++++++++++++------------ > > drivers/usb/host/xhci-mtk.h | 13 +++ > > drivers/usb/host/xhci.c | 9 ++ > > 3 files changed, 133 insertions(+), 69 deletions(-) > Thanks for your patch, I'll test it and check it with our DE Thanks, I will upload v3. But I don't expect any logic changes from v2. Can you please give me feedback on v2 if you find anything? > > > >