]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: gadget: tegra-xudc: Add handling for BLCG_COREPLL_PWRDN
authorHaotien Hsu <haotienh@nvidia.com>
Fri, 23 Jan 2026 17:31:21 +0000 (01:31 +0800)
committerSasha Levin <sashal@kernel.org>
Wed, 4 Mar 2026 12:21:18 +0000 (07:21 -0500)
commitf42941d60f01ad59b1eff78b35ea33711a60a4d0
treee102dd79cde5b20ab90a0cdaf62d0e3165589fc6
parent1afe45f89d54b7183768ebbbbf14238ec187ab5c
usb: gadget: tegra-xudc: Add handling for BLCG_COREPLL_PWRDN

[ Upstream commit 1132e90840abf3e7db11f1d28199e9fbc0b0e69e ]

The COREPLL_PWRDN bit in the BLCG register must be set when the XUSB
device controller is powergated and cleared when it is unpowergated.
If this bit is not explicitly controlled, the core PLL may remain in an
incorrect power state across suspend/resume or ELPG transitions.
Therefore, update the driver to explicitly control this bit during
powergate transitions.

Fixes: 49db427232fe ("usb: gadget: Add UDC driver for tegra XUSB device mode controller")
Cc: stable <stable@kernel.org>
Signed-off-by: Haotien Hsu <haotienh@nvidia.com>
Signed-off-by: Wayne Chang <waynec@nvidia.com>
Link: https://patch.msgid.link/20260123173121.4093902-1-waynec@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/gadget/udc/tegra-xudc.c