]> git.ipfire.org Git - thirdparty/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jan 2026 14:51:58 +0000 (15:51 +0100)
commit1132e90840abf3e7db11f1d28199e9fbc0b0e69e
tree25a659a8067e6313df8f6890dc871729e46244ef
parent8acc379b664ec987dcc7eca25a5f5c4a9a4eb9c4
usb: gadget: tegra-xudc: Add handling for BLCG_COREPLL_PWRDN

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>
drivers/usb/gadget/udc/tegra-xudc.c