From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B45C93D88F2; Tue, 16 Jun 2026 18:10:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781633457; cv=none; b=KmNpMfjJYttL5UMCl+j4gITBK7yUSA9xYQjWK1lDLtwShBFNw7QMokmH1NoqQ2plDQjixC2CTqSqYEHBHK7TcIlhqhrOTwpjaDawGKMm2WEjvu2ndBK1+sZ+wtaYUtXb11EFbVbNbCnmW36IJ3O+84M5Q0QItB8B/xnsFNkfa/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781633457; c=relaxed/simple; bh=qU0biTERpHz1AKiw8uAA79ccZaCP8V+d16uumuzTQTo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=BKYQ0g6I0egWHKhRU5jqhrWiGwD6SnaCuT4u7VuFVylzsP7sHtXuFDvND5Wi1phOtexQEMX6y3BVoVTIh2jsmQlge7ApR7XN3fE3cXKpMA9TN3O0O1rHhRfC8hRQ/u43UXAJSReUs6iHpBghmicv2YzXI2ZVwXosza09MkoWh48= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KGlmTHQ5; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KGlmTHQ5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7B4B91F000E9; Tue, 16 Jun 2026 18:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1781633455; bh=Yo4DkNUuelwMgnrQYMJWronwtR7CdP75RM3lCu7+5ZA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=KGlmTHQ5RpOrckoYsKwqmQZ9iWzbjGeax0NdA/UjXRVJiQ4KCaNBq8kgb13Y/kCmu BPCcTI5Uf4/RVvVjV56mAKfnmOgNIC6JHG258E63EWyoGKwIaKreEZUpZrqXfPaz3r OmWPezuYHUFxvc58dAgyw/f9zFTteKwEX2KsCB7c= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, stable , sashiko-bot , Peter Chen Subject: [PATCH 5.15 081/411] usb: cdns3: plat: fix unbalanced pm_runtime_forbid() call permanently leaks the runtime PM usage counter across bind/unbind cycles Date: Tue, 16 Jun 2026 20:25:19 +0530 Message-ID: <20260616145104.577031844@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260616145100.376842714@linuxfoundation.org> References: <20260616145100.376842714@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Chen commit ae6f3b82324e4f39ad8443c9020787e6fc889637 upstream. Call pm_runtime_allow(dev) conditionally at cdns3_plat_remove. Fixes: f738957277ba ("usb: cdns3: Split core.c into cdns3-plat and core.c file") Cc: stable Reported-by: sashiko-bot Closes: https://lore.kernel.org/linux-devicetree/agKaEePSFknhDBg2@nchen-desktop/T/#m21e1d9c1574eb127ce03c0c2a1a49002ce435b52 Signed-off-by: Peter Chen Link: https://patch.msgid.link/20260513085310.2217547-3-peter.chen@cixtech.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- drivers/usb/cdns3/cdns3-plat.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/usb/cdns3/cdns3-plat.c +++ b/drivers/usb/cdns3/cdns3-plat.c @@ -181,6 +181,9 @@ static int cdns3_plat_remove(struct plat struct device *dev = cdns->dev; pm_runtime_get_sync(dev); + if (!(cdns->pdata && (cdns->pdata->quirks & CDNS3_DEFAULT_PM_RUNTIME_ALLOW))) + pm_runtime_allow(dev); + pm_runtime_disable(dev); pm_runtime_put_noidle(dev); cdns_remove(cdns);