[PATCH] clk: qcom: gcc-shikra: Register set_hwmode_dev callback for USB GDSCs
From: Krishna Kurapati
Date: Thu Dec 03 2026 - 16:52:10 EST
Register gdsc_set_hw_stay_on as set_hwmode_dev callback for USB GDSCs to
allow the USB consumer drivers to keep the GDSC ON based on the
requirement in USB host mode.
Signed-off-by: Krishna Kurapati <krishna.kurapati@xxxxxxxxxxxxxxxx>
---
Following up on [1], this patch has only been compile tested.
[1]: https://lore.kernel.org/all/20261127-usb-pcie-gdsc-suspend-v1-0-485a08ffdc6f@xxxxxxxxxxxxxxxx/
---
drivers/clk/qcom/negcc-nord.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/clk/qcom/negcc-nord.c b/drivers/clk/qcom/negcc-nord.c
index 68ce4d6278ba..8f6a8cc8edc7 100644
--- a/drivers/clk/qcom/negcc-nord.c
+++ b/drivers/clk/qcom/negcc-nord.c
@@ -1706,6 +1706,7 @@ static struct gdsc ne_gcc_usb20_prim_gdsc = {
.clk_dis_wait_val = 0xf,
.pd = {
.name = "ne_gcc_usb20_prim_gdsc",
+ .set_hwmode_dev = gdsc_set_hw_stay_on,
},
.pwrsts = PWRSTS_OFF_ON,
.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
@@ -1718,6 +1719,7 @@ static struct gdsc ne_gcc_usb31_prim_gdsc = {
.clk_dis_wait_val = 0xf,
.pd = {
.name = "ne_gcc_usb31_prim_gdsc",
+ .set_hwmode_dev = gdsc_set_hw_stay_on,
},
.pwrsts = PWRSTS_OFF_ON,
.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
@@ -1730,6 +1732,7 @@ static struct gdsc ne_gcc_usb31_sec_gdsc = {
.clk_dis_wait_val = 0xf,
.pd = {
.name = "ne_gcc_usb31_sec_gdsc",
+ .set_hwmode_dev = gdsc_set_hw_stay_on,
},
.pwrsts = PWRSTS_OFF_ON,
.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
@@ -1742,6 +1745,7 @@ static struct gdsc ne_gcc_usb3_phy_gdsc = {
.clk_dis_wait_val = 0x2,
.pd = {
.name = "ne_gcc_usb3_phy_gdsc",
+ .set_hwmode_dev = gdsc_set_hw_stay_on,
},
.pwrsts = PWRSTS_OFF_ON,
.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
@@ -1754,6 +1758,7 @@ static struct gdsc ne_gcc_usb3_sec_phy_gdsc = {
.clk_dis_wait_val = 0x2,
.pd = {
.name = "ne_gcc_usb3_sec_phy_gdsc",
+ .set_hwmode_dev = gdsc_set_hw_stay_on,
},
.pwrsts = PWRSTS_OFF_ON,
.flags = POLL_CFG_GDSCR | RETAIN_FF_ENABLE,
---
base-commit: 3010f4b0fcca1d50f850ac6524275435d5af3502
change-id: 20261204-nord-usb-gdscs-de8fa4cbc070
prerequisite-change-id: 20261126-usb-pcie-gdsc-suspend-7a99c6b62406
Best regards,
--
Krishna Kurapati <krishna.kurapati@xxxxxxxxxxxxxxxx>