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 F361D2F12CE; Sun, 1 Mar 2026 01:52:31 +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=1772329952; cv=none; b=PnhloobhJ2dLpHujlO6ala67NkdUUJ0gOUH1BN/YAjQISZMO1uGVbl2E7XG0xo2ulf5pde3OUUW0t05X/66XN+Gm1WrlcjPJkJUnGoPL7E46hgJQnrmDBF57so8VSjn93FNoIzsyy5QmGI2GDQmHWm8bhvEuNUJAIqa+xME2+1s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772329952; c=relaxed/simple; bh=lK7j4WZSSl7gy8lpJIYfmQvgTUHcfSKUjQ0FZWdvr1s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SYY9//xZiuPD5IUWBBDUxf7hvnqC/RLzGqtIjvoRFQBMJNseIIng0lh9X2JZSeybvGC/903MIjWfx4VPbXvVnMcgn/4UUttqC0lk1BVBetKBl9hZkAppLtxDC/G0tFr08S8Zs2oKlPeaoXGwPMuHrDHiXNf/qkRQFYuZc6jtiP0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=MRmTCWtK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="MRmTCWtK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E48B4C19424; Sun, 1 Mar 2026 01:52:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772329951; bh=lK7j4WZSSl7gy8lpJIYfmQvgTUHcfSKUjQ0FZWdvr1s=; h=From:To:Cc:Subject:Date:From; b=MRmTCWtK9fsBCn2EYEBhfvchR7C9Ukst8JDhGjW45g4KFuLWFKKhNXMbg60DL8BAK fzj6FK3Walb0Li1GqirPXiCVCvOjXEZAzBy+6ENWwipYWiaFttsx64nuPDx0nLq2a3 2HRE2ooLC2TYhqOPYGamlTU2rNfZXAf3FpgymCDlPT0oT+WzDNnsywrOfEnkLF7hbs 30YbvzfuvhBKZpnmjfL9BkqfiFdPbADp/8OZ2PLiz6U5PnLm5KVkCEV8vAcI0Tk33H I9JthquljMC9S1crXa8ZOTshToaAB3eUCBydvRxj47JPTt5FkYaSkH9GR4Rkkv8ZzH ychSIu2BaqvQg== From: Sasha Levin To: stable@vger.kernel.org, haotienh@nvidia.com Cc: stable , Wayne Chang , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-tegra@vger.kernel.org Subject: FAILED: Patch "usb: gadget: tegra-xudc: Add handling for BLCG_COREPLL_PWRDN" failed to apply to 5.15-stable tree Date: Sat, 28 Feb 2026 20:52:29 -0500 Message-ID: <20260301015229.1719032-1-sashal@kernel.org> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Hint: ignore X-stable: review Content-Transfer-Encoding: 8bit The patch below does not apply to the 5.15-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . Thanks, Sasha ------------------ original commit in Linus's tree ------------------ >From 1132e90840abf3e7db11f1d28199e9fbc0b0e69e Mon Sep 17 00:00:00 2001 From: Haotien Hsu Date: Sat, 24 Jan 2026 01:31:21 +0800 Subject: [PATCH] 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 Signed-off-by: Haotien Hsu Signed-off-by: Wayne Chang Link: https://patch.msgid.link/20260123173121.4093902-1-waynec@nvidia.com Signed-off-by: Greg Kroah-Hartman --- drivers/usb/gadget/udc/tegra-xudc.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/tegra-xudc.c b/drivers/usb/gadget/udc/tegra-xudc.c index 9d2007f448c04..7f7251c10e952 100644 --- a/drivers/usb/gadget/udc/tegra-xudc.c +++ b/drivers/usb/gadget/udc/tegra-xudc.c @@ -3392,17 +3392,18 @@ static void tegra_xudc_device_params_init(struct tegra_xudc *xudc) { u32 val, imod; + val = xudc_readl(xudc, BLCG); if (xudc->soc->has_ipfs) { - val = xudc_readl(xudc, BLCG); val |= BLCG_ALL; val &= ~(BLCG_DFPCI | BLCG_UFPCI | BLCG_FE | BLCG_COREPLL_PWRDN); val |= BLCG_IOPLL_0_PWRDN; val |= BLCG_IOPLL_1_PWRDN; val |= BLCG_IOPLL_2_PWRDN; - - xudc_writel(xudc, val, BLCG); + } else { + val &= ~BLCG_COREPLL_PWRDN; } + xudc_writel(xudc, val, BLCG); if (xudc->soc->port_speed_quirk) tegra_xudc_limit_port_speed(xudc); @@ -3953,6 +3954,7 @@ static void tegra_xudc_remove(struct platform_device *pdev) static int __maybe_unused tegra_xudc_powergate(struct tegra_xudc *xudc) { unsigned long flags; + u32 val; dev_dbg(xudc->dev, "entering ELPG\n"); @@ -3965,6 +3967,10 @@ static int __maybe_unused tegra_xudc_powergate(struct tegra_xudc *xudc) spin_unlock_irqrestore(&xudc->lock, flags); + val = xudc_readl(xudc, BLCG); + val |= BLCG_COREPLL_PWRDN; + xudc_writel(xudc, val, BLCG); + clk_bulk_disable_unprepare(xudc->soc->num_clks, xudc->clks); regulator_bulk_disable(xudc->soc->num_supplies, xudc->supplies); -- 2.51.0