Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4827694pxu; Thu, 10 Dec 2020 06:30:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJz4jkNnpfh4giu1o9ZzMgXMj11NgLYhfjCfvpgR2+esy/PcqbTRvAgckBDtkgjTnr8zHfPS X-Received: by 2002:a50:c209:: with SMTP id n9mr7078814edf.123.1607610643584; Thu, 10 Dec 2020 06:30:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607610643; cv=none; d=google.com; s=arc-20160816; b=f5fcS1cCWI9jy+sR2RgThp4rCNvVBlS8P4TdcCYINdncrco1B+l5uVC3nKk6Mqs+gW R+qPPq4k1bcwmBfNRiF23t7oiQ3jJNxTDRA/ECCed2ATnPh/ai8Z4A/dhwBCy2K82nuQ TpzzIVfSQLoYCorcQqknvcOdDeifFfEUzVGMjljjBE+3F19IpfG93vdP5W2HhPR4O6kb Zh0iYxMLMrSPp6/M3Dr7dGxVTwoQH1ZN1aBCQTADDKlzM/A2fJUAPD3wT4gVX0aDTGg/ JQmI0RpB9XkuF+jTtu43k1DnQJfx0GlnZ+hGGWXcHPpblKb3f+hdzwpnR7vjoyWh8Jhf OOtQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=/1CLF3jhgzuG8CXsCmdXZEYaITzNoEWk6wc5CrYfURY=; b=D0DNo8rUzWLWGzI4g6Ayyvy1hFM5k0B6blpGH1U20TOG+QX0twqtKjRcObay3U+lAN lJ+oiMBwHAE7FRhoXHctLtKqKoSoQ/N0U2FHSmNo87/mzvpTFFCRZjM2wNf0tZ3J+Dhs 3fQ7+Kkz4ue/gU2LohLuB8jhPfnV0deZAabLMxPWFvni79mhu54yctNck5CxDZvaaHtf dXIgYNN7xlGdi1QvxLqw45UtDVW1d1gq7ALBS8l7iNq+2GPYfNx6xF8T4yfDS+8OfBQo ruSOPSJH95zTMXSNGBMdcGh854afJpwxTrWn8kfQ++lpc54CQgybkeVuRmoFcQyq+Cq4 iNKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=MYtZnMZk; 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 n8si2652763edy.54.2020.12.10.06.30.20; Thu, 10 Dec 2020 06:30: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; dkim=pass header.i=@chromium.org header.s=google header.b=MYtZnMZk; 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 S2389058AbgLJKse (ORCPT + 99 others); Thu, 10 Dec 2020 05:48:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388872AbgLJKsd (ORCPT ); Thu, 10 Dec 2020 05:48:33 -0500 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B18EC0613D6 for ; Thu, 10 Dec 2020 02:47:53 -0800 (PST) Received: by mail-pf1-x444.google.com with SMTP id p4so3690049pfg.0 for ; Thu, 10 Dec 2020 02:47:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/1CLF3jhgzuG8CXsCmdXZEYaITzNoEWk6wc5CrYfURY=; b=MYtZnMZka/yCtbeqjEtHPQMPRp1pS+LV5yBBJOSv5CxwHvamurnZGghYtmeuTU8F61 sDFbaTQ5Vh11gbpI41KxB+fM6OZ66qRVUMM00yzvye7KdgyP9tov+Pi9eAdXP0k5Qz7R uSrEc6Xw6liW70X0OkD8dzvMZDS8DkyvuyhmY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/1CLF3jhgzuG8CXsCmdXZEYaITzNoEWk6wc5CrYfURY=; b=qdrILttu5HFcHl5HcAFpKifAjUxoOCqCi0TJa87b6Hvp5mJNIpbjE8QDU7oq7u+Eu5 v2ziN80Yn1yZRcCpriNN8VceU7pP2sMe55lGy2byZNJvYKCQ0dEOehdYqIzQ6BsU8f0z KWyAq4V0sGePmm7uDYcWIjIvuduCLqByi6vmxHpEE3hx3WRGxkaQ899mJusefBvJm4z+ J+ao4plkdyXFV3FJI40FIOnT0C2DicrCiFCE5J60YGnWzZ6Eeup6kI4nPr6ftLh2+OSt R6NIIbP/5if4P9Y3uuMOZQINItfUlEzPYEQKC/NEn5x23lBsoZfh3hNqdKZ8XF8gWV4H +tkQ== X-Gm-Message-State: AOAM532EGefhhOv82vXG2sRdCTNJJDBOgpL5/F0+043O6dbtiw31Rd5I riFz4mpZJkk5OZPe4Ftx3IaykQ== X-Received: by 2002:a62:d142:0:b029:19e:6b61:7f80 with SMTP id t2-20020a62d1420000b029019e6b617f80mr6244596pfl.9.1607597272744; Thu, 10 Dec 2020 02:47:52 -0800 (PST) Received: from ikjn-p920.tpe.corp.google.com ([2401:fa00:1:b:f693:9fff:fef4:a8fc]) by smtp.gmail.com with ESMTPSA id y1sm6386658pff.17.2020.12.10.02.47.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 02:47:52 -0800 (PST) From: Ikjoon Jang To: linux-mediatek@lists.infradead.org, linux-usb@vger.kernel.org Cc: Zhanyong Wang , Chunfeng Yun , Tianping Fang , Ikjoon Jang , Greg Kroah-Hartman , Mathias Nyman , Matthias Brugger , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/3] Release allocated periodic bandwidth data from reset_bandwidth() Date: Thu, 10 Dec 2020 18:47:44 +0800 Message-Id: <20201210104747.3416781-1-ikjn@chromium.org> X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) -- 2.29.2.576.ga3fc446d84-goog