* [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* Re: [PATCH] clk: qcom: gcc-shikra: Register set_hwmode_dev callback for USB GDSCs
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
1 sibling, 0 replies; 3+ messages in thread
From: Krishna Kurapati @ 2026-12-03 21:55 UTC (permalink / raw)
To: Bjorn Andersson, Abel Vesa, Stephen Boyd, Brian Masney,
Jerome Brunet
Cc: linux-arm-msm, linux-clk, linux-kernel
On 12/4/2026 3:21 AM, Krishna Kurapati wrote:
> 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>
My bad. The patch header is incorrect (its nord and not shikra). Please
ignore this patch. I will send a v2.
Sorry for the noise on mail.
Regards,
Krishna,
> ---
> 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 [flat|nested] 3+ messages in thread* Re: [PATCH] clk: qcom: gcc-shikra: Register set_hwmode_dev callback for USB GDSCs
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
1 sibling, 0 replies; 3+ messages in thread
From: sashiko-bot @ 2026-12-03 22:05 UTC (permalink / raw)
To: Krishna Kurapati; +Cc: linux-clk
Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] clk: qcom: commit subject names gcc-shikra instead of negcc-nord
--
commit 905888cae9b3810e1423574212e86f72fab0799e
Author: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
clk: qcom: gcc-shikra: Register set_hwmode_dev callback for USB GDSCs
This commit sets gdsc_set_hw_stay_on as the set_hwmode_dev callback for five
USB GDSCs in drivers/clk/qcom/negcc-nord.c so USB consumer drivers can keep
the GDSCs on in host mode.
> clk: qcom: gcc-shikra: Register set_hwmode_dev callback for USB GDSCs
[Severity: Low]
Should the subject prefix be clk: qcom: negcc-nord: instead of gcc-shikra?
This patch only modifies drivers/clk/qcom/negcc-nord.c, while
drivers/clk/qcom/gcc-shikra.c is a separate driver with its own USB GDSCs
that remains untouched.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261204-nord-usb-gdscs-v1-1-254a035965fe@oss.qualcomm.com?part=1
^ permalink raw reply [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