Skip to contentSkip to conversation

reset: Correct dependencies for RESET_RZG2L_USBPHY_CTRL

PATCH Superseded Tom Rini 2 participants 14 messages Mar 17 – Mar 23 Reset controller framework

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 reset: Correct dependencies for RESET_RZG2L_USBPHY_CTRL

As exposed by "make randconfig", we have an issue with the dependencies for RESET_RZG2L_USBPHY_CTRL. As REGULATOR_RZG2L_USBPHY depends on DM_REGULATOR this symbol must also depend on it as well.

---
Cc: Marek Vasut <[email protected]>

---
 drivers/reset/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/reset/Kconfig +1 -1
index 66911199c8ba..3f0ec50510c0 100644
@@ -239,7 +239,7 @@ config RESET_AT91
 
 config RESET_RZG2L_USBPHY_CTRL
 	bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-	depends on DM_RESET
+	depends on DM_RESET && DM_REGULATOR
 	select REGULATOR_RZG2L_USBPHY
 	help
 	  Enable support for controlling USB 2.0 PHY resets on the Renesas
Signature · 1 line
2.43.0
#1 lore raw
Quoted 16 lines · Tom Rini

As exposed by "make randconfig", we have an issue with the dependencies for RESET_RZG2L_USBPHY_CTRL. As REGULATOR_RZG2L_USBPHY depends on DM_REGULATOR this symbol must also depend on it as well.

---
Cc: Marek Vasut <[email protected]>

---
  drivers/reset/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/reset/Kconfig +0 -0
index 66911199c8ba..3f0ec50510c0 100644

drivers/reset/Kconfig config RESET_AT91 · line 243

Quoted 6 lines
drivers/reset/Kconfig +1 -1
@@ -239,7 +239,7 @@ config RESET_AT91
 
  config RESET_RZG2L_USBPHY_CTRL
  	bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-	depends on DM_RESET
+	depends on DM_RESET && DM_REGULATOR
  	select REGULATOR_RZG2L_USBPHY

But this already selects REGULATOR_RZG2L_USBPHY , which according to drivers/power/regulator/Kconfig contains:

508 config REGULATOR_RZG2L_USBPHY
509 bool "Enable driver for RZ/G2L USB PHY VBUS supply"
510 depends on DM_REGULATOR

which does depend on DM_REGULATOR transitively ?

author
#2 lore raw
Quoted 25 lines · Marek Vasut
Quoted 16 lines · Tom Rini

As exposed by "make randconfig", we have an issue with the dependencies for RESET_RZG2L_USBPHY_CTRL. As REGULATOR_RZG2L_USBPHY depends on DM_REGULATOR this symbol must also depend on it as well.

---
Cc: Marek Vasut <[email protected]>

---
  drivers/reset/Kconfig | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/reset/Kconfig +0 -0
index 66911199c8ba..3f0ec50510c0 100644

drivers/reset/Kconfig config RESET_AT91 · line 242

Quoted 5 lines
drivers/reset/Kconfig +1 -1
@@ -239,7 +239,7 @@ config RESET_AT91
  config RESET_RZG2L_USBPHY_CTRL
  	bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-	depends on DM_RESET
+	depends on DM_RESET && DM_REGULATOR
  	select REGULATOR_RZG2L_USBPHY

But this already selects REGULATOR_RZG2L_USBPHY , which according to drivers/power/regulator/Kconfig contains:

Quoted 5 lines

508 config REGULATOR_RZG2L_USBPHY
509 bool "Enable driver for RZ/G2L USB PHY VBUS supply"
510 depends on DM_REGULATOR

which does depend on DM_REGULATOR transitively ?

That's why Kconfig complains about the unmet dependency. "randconfig" does some fun and apparently valid things.

Signature · 1 line
Tom
#3 lore raw
Quoted 26 lines · Tom Rini
Quoted 25 lines · Marek Vasut
Quoted 16 lines · Tom Rini

As exposed by "make randconfig", we have an issue with the dependencies for RESET_RZG2L_USBPHY_CTRL. As REGULATOR_RZG2L_USBPHY depends on DM_REGULATOR this symbol must also depend on it as well.

---
Cc: Marek Vasut <[email protected]>

---
   drivers/reset/Kconfig | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
drivers/reset/Kconfig +0 -0
index 66911199c8ba..3f0ec50510c0 100644

drivers/reset/Kconfig config RESET_AT91 · line 242

Quoted 5 lines
drivers/reset/Kconfig +1 -1
@@ -239,7 +239,7 @@ config RESET_AT91
   config RESET_RZG2L_USBPHY_CTRL
   	bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-	depends on DM_RESET
+	depends on DM_RESET && DM_REGULATOR
   	select REGULATOR_RZG2L_USBPHY

But this already selects REGULATOR_RZG2L_USBPHY , which according to drivers/power/regulator/Kconfig contains:

Quoted 8 lines
Quoted 5 lines

508 config REGULATOR_RZG2L_USBPHY
509 bool "Enable driver for RZ/G2L USB PHY VBUS supply"
510 depends on DM_REGULATOR

which does depend on DM_REGULATOR transitively ?

That's why Kconfig complains about the unmet dependency. "randconfig" does some fun and apparently valid things.

That's the thing -- if RESET_RZG2L_USBPHY_CTRL depends on REGULATOR_RZG2L_USBPHY which depends on DM_REGULATOR, how can DM_REGULATOR be unset, while RESET_RZG2L_USBPHY_CTRL is set ?

author
#4 lore raw
Quoted 31 lines · Marek Vasut
Quoted 30 lines · Tom Rini
Quoted 29 lines · Marek Vasut
Quoted 16 lines · Tom Rini

As exposed by "make randconfig", we have an issue with the dependencies for RESET_RZG2L_USBPHY_CTRL. As REGULATOR_RZG2L_USBPHY depends on DM_REGULATOR this symbol must also depend on it as well.

---
Cc: Marek Vasut <[email protected]>

---
   drivers/reset/Kconfig | 2 +-
   1 file changed, 1 insertion(+), 1 deletion(-)
drivers/reset/Kconfig +0 -0
index 66911199c8ba..3f0ec50510c0 100644

drivers/reset/Kconfig config RESET_AT91 · line 242

Quoted 5 lines
drivers/reset/Kconfig +1 -1
@@ -239,7 +239,7 @@ config RESET_AT91
   config RESET_RZG2L_USBPHY_CTRL
   	bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-	depends on DM_RESET
+	depends on DM_RESET && DM_REGULATOR
   	select REGULATOR_RZG2L_USBPHY

But this already selects REGULATOR_RZG2L_USBPHY , which according to drivers/power/regulator/Kconfig contains:

508 config REGULATOR_RZG2L_USBPHY
509 bool "Enable driver for RZ/G2L USB PHY VBUS supply"
510 depends on DM_REGULATOR

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

which does depend on DM_REGULATOR transitively ?

That's why Kconfig complains about the unmet dependency. "randconfig" does some fun and apparently valid things.

That's the thing -- if RESET_RZG2L_USBPHY_CTRL depends on REGULATOR_RZG2L_USBPHY which depends on DM_REGULATOR, how can DM_REGULATOR be unset, while RESET_RZG2L_USBPHY_CTRL is set ?

Using "randconfig" will find some odd problems, yes, because it makes a (based on what all of the Kconfig files say) possible config and then forces it to be validated against the expressed logic.

So I think the answer is if you fire up menuconfig, and turn off RESET_RZG2L_USBPHY_CTRL and REGULATOR_RZG2L_USBPHY and DM_REGULATOR and then enable RESET_RZG2L_USBPHY_CTRL things will become mad because RESET_RZG2L_USBPHY_CTRL has select'd REGULATOR_RZG2L_USBPHY but we don't have DM_REGULATOR.

Signature · 1 line
Tom
#5 lore raw
Quoted 44 lines · Tom Rini
Quoted 31 lines · Marek Vasut
Quoted 30 lines · Tom Rini
Quoted 29 lines · Marek Vasut
Quoted 16 lines · Tom Rini

As exposed by "make randconfig", we have an issue with the dependencies for RESET_RZG2L_USBPHY_CTRL. As REGULATOR_RZG2L_USBPHY depends on DM_REGULATOR this symbol must also depend on it as well.

---
Cc: Marek Vasut <[email protected]>

---
    drivers/reset/Kconfig | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)
drivers/reset/Kconfig +0 -0
index 66911199c8ba..3f0ec50510c0 100644

drivers/reset/Kconfig config RESET_AT91 · line 242

Quoted 5 lines
drivers/reset/Kconfig +1 -1
@@ -239,7 +239,7 @@ config RESET_AT91
    config RESET_RZG2L_USBPHY_CTRL
    	bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-	depends on DM_RESET
+	depends on DM_RESET && DM_REGULATOR
    	select REGULATOR_RZG2L_USBPHY

But this already selects REGULATOR_RZG2L_USBPHY , which according to drivers/power/regulator/Kconfig contains:

508 config REGULATOR_RZG2L_USBPHY
509 bool "Enable driver for RZ/G2L USB PHY VBUS supply"
510 depends on DM_REGULATOR

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

which does depend on DM_REGULATOR transitively ?

That's why Kconfig complains about the unmet dependency. "randconfig" does some fun and apparently valid things.

That's the thing -- if RESET_RZG2L_USBPHY_CTRL depends on REGULATOR_RZG2L_USBPHY which depends on DM_REGULATOR, how can DM_REGULATOR be unset, while RESET_RZG2L_USBPHY_CTRL is set ?

Using "randconfig" will find some odd problems, yes, because it makes a (based on what all of the Kconfig files say) possible config and then forces it to be validated against the expressed logic.

Quoted 5 lines

So I think the answer is if you fire up menuconfig, and turn off RESET_RZG2L_USBPHY_CTRL and REGULATOR_RZG2L_USBPHY and DM_REGULATOR and then enable RESET_RZG2L_USBPHY_CTRL things will become mad because RESET_RZG2L_USBPHY_CTRL has select'd REGULATOR_RZG2L_USBPHY but we don't have DM_REGULATOR.

How is it possible to enable RESET_RZG2L_USBPHY_CTRL without enabling its dependencies ? This is what I do not understand.

author
#6 lore raw
Quoted 45 lines · Marek Vasut
Quoted 44 lines · Tom Rini
Quoted 31 lines · Marek Vasut
Quoted 30 lines · Tom Rini
Quoted 29 lines · Marek Vasut
Quoted 16 lines · Tom Rini

As exposed by "make randconfig", we have an issue with the dependencies for RESET_RZG2L_USBPHY_CTRL. As REGULATOR_RZG2L_USBPHY depends on DM_REGULATOR this symbol must also depend on it as well.

---
Cc: Marek Vasut <[email protected]>

---
    drivers/reset/Kconfig | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)
drivers/reset/Kconfig +0 -0
index 66911199c8ba..3f0ec50510c0 100644

drivers/reset/Kconfig config RESET_AT91 · line 242

Quoted 5 lines
drivers/reset/Kconfig +1 -1
@@ -239,7 +239,7 @@ config RESET_AT91
    config RESET_RZG2L_USBPHY_CTRL
    	bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-	depends on DM_RESET
+	depends on DM_RESET && DM_REGULATOR
    	select REGULATOR_RZG2L_USBPHY

But this already selects REGULATOR_RZG2L_USBPHY , which according to drivers/power/regulator/Kconfig contains:

508 config REGULATOR_RZG2L_USBPHY
509 bool "Enable driver for RZ/G2L USB PHY VBUS supply"
510 depends on DM_REGULATOR

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

which does depend on DM_REGULATOR transitively ?

That's why Kconfig complains about the unmet dependency. "randconfig" does some fun and apparently valid things.

That's the thing -- if RESET_RZG2L_USBPHY_CTRL depends on REGULATOR_RZG2L_USBPHY which depends on DM_REGULATOR, how can DM_REGULATOR be unset, while RESET_RZG2L_USBPHY_CTRL is set ?

Using "randconfig" will find some odd problems, yes, because it makes a (based on what all of the Kconfig files say) possible config and then forces it to be validated against the expressed logic.

Quoted 7 lines
Quoted 5 lines

So I think the answer is if you fire up menuconfig, and turn off RESET_RZG2L_USBPHY_CTRL and REGULATOR_RZG2L_USBPHY and DM_REGULATOR and then enable RESET_RZG2L_USBPHY_CTRL things will become mad because RESET_RZG2L_USBPHY_CTRL has select'd REGULATOR_RZG2L_USBPHY but we don't have DM_REGULATOR.

How is it possible to enable RESET_RZG2L_USBPHY_CTRL without enabling its dependencies ? This is what I do not understand.

The way I said in the part you quoted? If you don't like the way I'm solving the problem with the dependency graph here please propose an alternate. But it is possible to encounter this problem, or randconfig wouldn't expose it.

Signature · 1 line
Tom
#7 lore raw

On 3/19/26 2:41 PM, Tom Rini wrote:

[...]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

So I think the answer is if you fire up menuconfig, and turn off RESET_RZG2L_USBPHY_CTRL and REGULATOR_RZG2L_USBPHY and DM_REGULATOR and then enable RESET_RZG2L_USBPHY_CTRL things will become mad because RESET_RZG2L_USBPHY_CTRL has select'd REGULATOR_RZG2L_USBPHY but we don't have DM_REGULATOR.

Quoted 7 lines
Quoted 2 lines

How is it possible to enable RESET_RZG2L_USBPHY_CTRL without enabling its dependencies ? This is what I do not understand.

The way I said in the part you quoted? If you don't like the way I'm solving the problem with the dependency graph here please propose an alternate. But it is possible to encounter this problem, or randconfig wouldn't expose it.

What I do not understand is, how is it possible to enable Kconfig symbol without enabling its dependencies. Is that a bug in Kconfig ?

author
#8 lore raw
Quoted 12 lines · Marek Vasut

On 3/19/26 2:41 PM, Tom Rini wrote:

[...]

Quoted 8 lines
Quoted 7 lines
Quoted 5 lines

So I think the answer is if you fire up menuconfig, and turn off RESET_RZG2L_USBPHY_CTRL and REGULATOR_RZG2L_USBPHY and DM_REGULATOR and then enable RESET_RZG2L_USBPHY_CTRL things will become mad because RESET_RZG2L_USBPHY_CTRL has select'd REGULATOR_RZG2L_USBPHY but we don't have DM_REGULATOR.

How is it possible to enable RESET_RZG2L_USBPHY_CTRL without enabling its dependencies ? This is what I do not understand.

Quoted 6 lines
Quoted 4 lines

The way I said in the part you quoted? If you don't like the way I'm solving the problem with the dependency graph here please propose an alternate. But it is possible to encounter this problem, or randconfig wouldn't expose it.

What I do not understand is, how is it possible to enable Kconfig symbol without enabling its dependencies. Is that a bug in Kconfig ?

There is nothing ensuring that when you enable RESET_RZG2L_USBPHY_CTRL today that DM_REGULATOR is enabled. But since you're telling it to select REGULATOR_RZG2L_USBPHY it then will give an error.

Signature · 1 line
Tom
#9 lore raw
Quoted 17 lines · Tom Rini
Quoted 16 lines · Marek Vasut

On 3/19/26 2:41 PM, Tom Rini wrote:

[...]

Quoted 12 lines
Quoted 7 lines
Quoted 5 lines

So I think the answer is if you fire up menuconfig, and turn off RESET_RZG2L_USBPHY_CTRL and REGULATOR_RZG2L_USBPHY and DM_REGULATOR and then enable RESET_RZG2L_USBPHY_CTRL things will become mad because RESET_RZG2L_USBPHY_CTRL has select'd REGULATOR_RZG2L_USBPHY but we don't have DM_REGULATOR.

How is it possible to enable RESET_RZG2L_USBPHY_CTRL without enabling its dependencies ? This is what I do not understand.

The way I said in the part you quoted? If you don't like the way I'm solving the problem with the dependency graph here please propose an alternate. But it is possible to encounter this problem, or randconfig wouldn't expose it.

Quoted 6 lines
Quoted 2 lines

What I do not understand is, how is it possible to enable Kconfig symbol without enabling its dependencies. Is that a bug in Kconfig ?

There is nothing ensuring that when you enable RESET_RZG2L_USBPHY_CTRL today that DM_REGULATOR is enabled. But since you're telling it to select REGULATOR_RZG2L_USBPHY it then will give an error.

Hmmm, I see it now. If I have both CONFIG_REGULATOR_RZG2L_USBPHY=y and CONFIG_RESET_RZG2L_USBPHY_CTRL=y in .config, and I delete CONFIG_DM_REGULATOR=y from .config , then I can select CONFIG_DM_REGULATOR=n .

But isn't the right fix the elimination of 'select' ? Linux Kconfig documentation now hints that 'select' should only be used for hidden symbols. So how about this fix instead , that should retain the transitive dependency on REGULATOR_RZG2L_USBPHY , which depends on DM_REGULATOR :

"

drivers/reset/Kconfig +1 -2
index 2fd91d6299c..a7acd5cfa69 100644
@@ -239,8 +239,7 @@ config RESET_AT91
 
 config RESET_RZG2L_USBPHY_CTRL
        bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-       depends on DM_RESET
-       select REGULATOR_RZG2L_USBPHY
+       depends on DM_RESET && REGULATOR_RZG2L_USBPHY
        help
          Enable support for controlling USB 2.0 PHY resets on the Renesas
          RZ/G2L SoC. This is required for USB 2.0 functionality to 

work on this
"

author
#10 lore raw
Quoted 21 lines · Marek Vasut
Quoted 20 lines · Tom Rini
Quoted 18 lines · Marek Vasut

On 3/19/26 2:41 PM, Tom Rini wrote:

[...]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

So I think the answer is if you fire up menuconfig, and turn off RESET_RZG2L_USBPHY_CTRL and REGULATOR_RZG2L_USBPHY and DM_REGULATOR and then enable RESET_RZG2L_USBPHY_CTRL things will become mad because RESET_RZG2L_USBPHY_CTRL has select'd REGULATOR_RZG2L_USBPHY but we don't have DM_REGULATOR.

Quoted 7 lines
Quoted 2 lines

How is it possible to enable RESET_RZG2L_USBPHY_CTRL without enabling its dependencies ? This is what I do not understand.

The way I said in the part you quoted? If you don't like the way I'm solving the problem with the dependency graph here please propose an alternate. But it is possible to encounter this problem, or randconfig wouldn't expose it.

What I do not understand is, how is it possible to enable Kconfig symbol without enabling its dependencies. Is that a bug in Kconfig ?

Quoted 7 lines
Quoted 3 lines

There is nothing ensuring that when you enable RESET_RZG2L_USBPHY_CTRL today that DM_REGULATOR is enabled. But since you're telling it to select REGULATOR_RZG2L_USBPHY it then will give an error.

Hmmm, I see it now. If I have both CONFIG_REGULATOR_RZG2L_USBPHY=y and CONFIG_RESET_RZG2L_USBPHY_CTRL=y in .config, and I delete CONFIG_DM_REGULATOR=y from .config , then I can select CONFIG_DM_REGULATOR=n .

Right.

Quoted 2 lines

But isn't the right fix the elimination of 'select' ? Linux Kconfig documentation now hints that 'select' should only be used for hidden

As a much longer term goal, yes, this is largely where we should go. But we're still at the point where I'm catching these kind of dependency issues in the Kconfig side of things, let alone build time problems.

Quoted 9 lines

symbols. So how about this fix instead , that should retain the transitive dependency on REGULATOR_RZG2L_USBPHY , which depends on DM_REGULATOR :

"

drivers/reset/Kconfig +0 -0
index 2fd91d6299c..a7acd5cfa69 100644

drivers/reset/Kconfig config RESET_AT91 · line 245

Quoted 9 lines
drivers/reset/Kconfig +1 -2
@@ -239,8 +239,7 @@ config RESET_AT91
 
 config RESET_RZG2L_USBPHY_CTRL
        bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-       depends on DM_RESET
-       select REGULATOR_RZG2L_USBPHY
+       depends on DM_RESET && REGULATOR_RZG2L_USBPHY
        help
          Enable support for controlling USB 2.0 PHY resets on the Renesas
          RZ/G2L SoC. This is required for USB 2.0 functionality to work on

This is fine too, yes, please do a patch for it and you'll need to make sure that renesas_rzg2l_smarc_defconfig gets updated with CONFIG_REGULATOR_RZG2L_USBPHY=y too so there's no functional change.

Signature · 1 line
Tom
#11 lore raw
Quoted 49 lines · Tom Rini
Quoted 21 lines · Marek Vasut
Quoted 20 lines · Tom Rini
Quoted 18 lines · Marek Vasut

On 3/19/26 2:41 PM, Tom Rini wrote:

[...]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

So I think the answer is if you fire up menuconfig, and turn off RESET_RZG2L_USBPHY_CTRL and REGULATOR_RZG2L_USBPHY and DM_REGULATOR and then enable RESET_RZG2L_USBPHY_CTRL things will become mad because RESET_RZG2L_USBPHY_CTRL has select'd REGULATOR_RZG2L_USBPHY but we don't have DM_REGULATOR.

Quoted 7 lines
Quoted 2 lines

How is it possible to enable RESET_RZG2L_USBPHY_CTRL without enabling its dependencies ? This is what I do not understand.

The way I said in the part you quoted? If you don't like the way I'm solving the problem with the dependency graph here please propose an alternate. But it is possible to encounter this problem, or randconfig wouldn't expose it.

What I do not understand is, how is it possible to enable Kconfig symbol without enabling its dependencies. Is that a bug in Kconfig ?

Quoted 7 lines
Quoted 3 lines

There is nothing ensuring that when you enable RESET_RZG2L_USBPHY_CTRL today that DM_REGULATOR is enabled. But since you're telling it to select REGULATOR_RZG2L_USBPHY it then will give an error.

Hmmm, I see it now. If I have both CONFIG_REGULATOR_RZG2L_USBPHY=y and CONFIG_RESET_RZG2L_USBPHY_CTRL=y in .config, and I delete CONFIG_DM_REGULATOR=y from .config , then I can select CONFIG_DM_REGULATOR=n .

Right.

Quoted 2 lines

But isn't the right fix the elimination of 'select' ? Linux Kconfig documentation now hints that 'select' should only be used for hidden

As a much longer term goal, yes, this is largely where we should go. But we're still at the point where I'm catching these kind of dependency issues in the Kconfig side of things, let alone build time problems.

Quoted 10 lines

symbols. So how about this fix instead , that should retain the transitive dependency on REGULATOR_RZG2L_USBPHY , which depends on DM_REGULATOR :

"

drivers/reset/Kconfig +0 -0
index 2fd91d6299c..a7acd5cfa69 100644
@@ -239,8 +239,7 @@ config RESET_AT91
 
Quoted 10 lines

drivers/reset/Kconfig config RESET_AT91

Quoted 8 lines
drivers/reset/Kconfig +1 -2
  config RESET_RZG2L_USBPHY_CTRL
         bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-       depends on DM_RESET
-       select REGULATOR_RZG2L_USBPHY
+       depends on DM_RESET && REGULATOR_RZG2L_USBPHY
         help
           Enable support for controlling USB 2.0 PHY resets on the Renesas
           RZ/G2L SoC. This is required for USB 2.0 functionality to work on

This is fine too, yes

Excellent, can you please do a V2 ? I'll RB it then.

Thank you !

author
#12 lore raw

PATCH v2 1/1 reset: Correct dependencies for RESET_RZG2L_USBPHY_CTRL

In reply to Tom Rini

As exposed by "make randconfig", we have an issue with the dependencies for RESET_RZG2L_USBPHY_CTRL. As this functionally depends on REGULATOR_RZG2L_USBPHY, express this dependency directly in Kconfig as well.

---
Changes in v2:
- Make RESET_RZG2L_USBPHY_CTRL depend on REGULATOR_RZG2L_USBPHY as suggested by Marek

Cc Marek Vasut <[email protected]>
---
 drivers/reset/Kconfig | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/reset/Kconfig +1 -2
index 66911199c8ba..ebf484d9df4e 100644
@@ -239,8 +239,7 @@ config RESET_AT91
 
 config RESET_RZG2L_USBPHY_CTRL
 	bool "Enable support for Renesas RZ/G2L USB 2.0 PHY control"
-	depends on DM_RESET
-	select REGULATOR_RZG2L_USBPHY
+	depends on DM_RESET && REGULATOR_RZG2L_USBPHY
 	help
 	  Enable support for controlling USB 2.0 PHY resets on the Renesas
 	  RZ/G2L SoC. This is required for USB 2.0 functionality to work on this
Signature · 1 line
2.43.0