From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 DC82D34321A; Wed, 3 Dec 2025 16:04:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764777841; cv=none; b=OyH7ZcDkCPZKddsCTyQUaWvJ7ZXwBlyMLf7nldeXAACBk4TSVJzRlwTaT3HKRsk7EMJfF09+mvM6Vk9DlAS/04GPXO9SAwVWHY6zNv6EyEHZaSXQYycBpBfXPjhH8HXpc2wOYwhTFQm+j0Qhb9y+trmfWKh05zA8lNkwpKRui9k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764777841; c=relaxed/simple; bh=ZxdMoA3q5Wwf3EOq5++P99F8Znz2thWA/FL6ghFlsQ4=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JrsASs+gUh0U6QzALu2FdCyAdQMaVWAWQGuO/lDoW66D5CQ9Xe1aYH+fibYuysPkD1HlltP9BUlbaPKq04rPXeRyGIr4PsdSdIiDAPWoH524lKs2t8uYmwCXcSz+qC/8SAPi8dTufvvnivyz3iR9SqaDz1vD/36Fdqel4q5gQ6o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lq27ekXL; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="lq27ekXL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49780C116C6; Wed, 3 Dec 2025 16:04:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764777840; bh=ZxdMoA3q5Wwf3EOq5++P99F8Znz2thWA/FL6ghFlsQ4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lq27ekXLE8jc8nly5T7bH4k4SXAik8ipR+Ejg266a7nLvTQCfcL7DNCrPn5gkxmwn RaqY8I8uHYeKvAUKWKcqmaM80ATQP6wUy8UTO6SV/5SICnS0N1yxAMUQLpDZEoqhHj FjhYbXO5S9ejWPOxPZ/dz2TEsKlEayqiqlxLYdbQ= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Krishna Kurapati , Sasha Levin Subject: [PATCH 5.15 162/392] usb: xhci: plat: Facilitate using autosuspend for xhci plat devices Date: Wed, 3 Dec 2025 16:25:12 +0100 Message-ID: <20251203152420.041027871@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251203152414.082328008@linuxfoundation.org> References: <20251203152414.082328008@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: Krishna Kurapati [ Upstream commit 41cf11946b9076383a2222bbf1ef57d64d033f66 ] Allow autosuspend to be used by xhci plat device. For Qualcomm SoCs, when in host mode, it is intended that the controller goes to suspend state to save power and wait for interrupts from connected peripheral to wake it up. This is particularly used in cases where a HID or Audio device is connected. In such scenarios, the usb controller can enter auto suspend and resume action after getting interrupts from the connected device. Signed-off-by: Krishna Kurapati Link: https://lore.kernel.org/r/20250916120436.3617598-1-krishna.kurapati@oss.qualcomm.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/usb/host/xhci-plat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index daf93bee7669b..c6ef7863c3e97 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -242,6 +242,7 @@ static int xhci_plat_probe(struct platform_device *pdev) } pm_runtime_set_active(&pdev->dev); + pm_runtime_use_autosuspend(&pdev->dev); pm_runtime_enable(&pdev->dev); pm_runtime_get_noresume(&pdev->dev); -- 2.51.0