Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH] clk: qcom: gcc-shikra: Register set_hwmode_dev callback for USB GDSCs
@ 2026-12-03 21:51 Krishna Kurapati
  2026-12-03 21:55 ` Krishna Kurapati
  2026-12-03 22:05 ` sashiko-bot
  0 siblings, 2 replies; 3+ messages in thread
From: Krishna Kurapati @ 2026-12-03 21:51 UTC (permalink / raw)
  To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
	Jerome Brunet
  Cc: linux-arm-msm, linux-clk, linux-kernel, Krishna Kurapati

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@oss.qualcomm.com>
---
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@oss.qualcomm.com/
---
 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@oss.qualcomm.com>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-03 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 21:51 [PATCH] clk: qcom: gcc-shikra: Register set_hwmode_dev callback for USB GDSCs Krishna Kurapati
2026-12-03 21:55 ` Krishna Kurapati
2026-12-03 22:05 ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox