* [PATCH 0/1] OMAP: TWL: set clk32kg regulator on
@ 2011-11-01 15:40 Vishal Mahaveer
2011-11-01 15:40 ` [PATCH 1/1] " Vishal Mahaveer
0 siblings, 1 reply; 8+ messages in thread
From: Vishal Mahaveer @ 2011-11-01 15:40 UTC (permalink / raw)
To: linux-omap; +Cc: Vishal Mahaveer
Set constraint always_on for clk32kg regulator.
This regulator is used by connectivity chip (wl12xx) on OMAP platforms.
Vishal Mahaveer (1):
OMAP: TWL: set clk32kg regulator on
arch/arm/mach-omap2/twl-common.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [PATCH 1/1] OMAP: TWL: set clk32kg regulator on
2011-11-01 15:40 [PATCH 0/1] OMAP: TWL: set clk32kg regulator on Vishal Mahaveer
@ 2011-11-01 15:40 ` Vishal Mahaveer
2011-11-04 23:16 ` Kevin Hilman
0 siblings, 1 reply; 8+ messages in thread
From: Vishal Mahaveer @ 2011-11-01 15:40 UTC (permalink / raw)
To: linux-omap; +Cc: Vishal Mahaveer
omap4_clk32kg regulator is used by connectivity (WLAN/BT/GPS) chip on
omap4 platforms.
Set always_on flag to true for connectivity chip to operate.
Signed-off-by: Vishal Mahaveer <vishalm@ti.com>
---
arch/arm/mach-omap2/twl-common.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/twl-common.c b/arch/arm/mach-omap2/twl-common.c
index 5224357..8910cea 100644
--- a/arch/arm/mach-omap2/twl-common.c
+++ b/arch/arm/mach-omap2/twl-common.c
@@ -270,6 +270,7 @@ static struct regulator_init_data omap4_vusb_idata = {
static struct regulator_init_data omap4_clk32kg_idata = {
.constraints = {
.valid_ops_mask = REGULATOR_CHANGE_STATUS,
+ .always_on = true,
},
};
--
1.7.0.4
^ permalink raw reply related [flat|nested] 8+ messages in thread* Re: [PATCH 1/1] OMAP: TWL: set clk32kg regulator on
2011-11-01 15:40 ` [PATCH 1/1] " Vishal Mahaveer
@ 2011-11-04 23:16 ` Kevin Hilman
2011-11-04 23:20 ` Mahaveer, Vishal
0 siblings, 1 reply; 8+ messages in thread
From: Kevin Hilman @ 2011-11-04 23:16 UTC (permalink / raw)
To: Vishal Mahaveer; +Cc: linux-omap
Vishal Mahaveer <vishalm@ti.com> writes:
> omap4_clk32kg regulator is used by connectivity (WLAN/BT/GPS) chip on
> omap4 platforms.
> Set always_on flag to true for connectivity chip to operate.
The driver/init for the connectivity chip should be using the regulator
API to enable/disable the regulator as needed.
Kevin
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH 1/1] OMAP: TWL: set clk32kg regulator on
2011-11-04 23:16 ` Kevin Hilman
@ 2011-11-04 23:20 ` Mahaveer, Vishal
2011-11-07 19:26 ` Kevin Hilman
0 siblings, 1 reply; 8+ messages in thread
From: Mahaveer, Vishal @ 2011-11-04 23:20 UTC (permalink / raw)
To: Hilman, Kevin; +Cc: linux-omap@vger.kernel.org
>> omap4_clk32kg regulator is used by connectivity (WLAN/BT/GPS) chip on
>> omap4 platforms.
>> Set always_on flag to true for connectivity chip to operate.
>
> The driver/init for the connectivity chip should be using the regulator
> API to enable/disable the regulator as needed.
The connectivity chip is used for BT, WLAN, FM and GPS. So we want it on at all times.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/1] OMAP: TWL: set clk32kg regulator on
2011-11-04 23:20 ` Mahaveer, Vishal
@ 2011-11-07 19:26 ` Kevin Hilman
2011-11-07 21:03 ` Mahaveer, Vishal
0 siblings, 1 reply; 8+ messages in thread
From: Kevin Hilman @ 2011-11-07 19:26 UTC (permalink / raw)
To: Mahaveer, Vishal; +Cc: linux-omap@vger.kernel.org
"Mahaveer, Vishal" <vishalm@ti.com> writes:
>>> omap4_clk32kg regulator is used by connectivity (WLAN/BT/GPS) chip on
>>> omap4 platforms.
>>> Set always_on flag to true for connectivity chip to operate.
>>
>> The driver/init for the connectivity chip should be using the regulator
>> API to enable/disable the regulator as needed.
>
> The connectivity chip is used for BT, WLAN, FM and GPS. So we want it
> on at all times.
No.
You want it on only
1) if the connectivity chip is present, *and*
2) BT, WLAN, FM or GPS are being used.
The current patch assumes that a connectivity chip is present whenever
the TWL is present, which may be true on the platform you're currently
working on, but is not true in general.
And, even if it were present, for power reasons the regulator should be
enabled only when it's needed, not because it might be needed. That
means that the device-specific (or board specific) code should be
configuring the regulators used for the various modules so the drivers
can request the regulators when they're needed.
Kevin
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH 1/1] OMAP: TWL: set clk32kg regulator on
2011-11-07 19:26 ` Kevin Hilman
@ 2011-11-07 21:03 ` Mahaveer, Vishal
2011-11-07 22:49 ` Kevin Hilman
0 siblings, 1 reply; 8+ messages in thread
From: Mahaveer, Vishal @ 2011-11-07 21:03 UTC (permalink / raw)
To: Hilman, Kevin; +Cc: linux-omap@vger.kernel.org
Hilman, Kevin wrote:
>
> No.
>
> You want it on only
>
> 1) if the connectivity chip is present, *and*
> 2) BT, WLAN, FM or GPS are being used.
>
> The current patch assumes that a connectivity chip is present
> whenever the TWL is present, which may be true on the platform you're
> currently working on, but is not true in general.
>
> And, even if it were present, for power reasons the regulator should
> be enabled only when it's needed, not because it might be needed.
> That means that the device-specific (or board specific) code should
> be configuring the regulators used for the various modules so the
> drivers can request the regulators when they're needed.
>
> Kevin
Will it make more sense to move clk32 regulator initialization to board-xxx files of platforms which has the connectivity chip?
- Vishal
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH 1/1] OMAP: TWL: set clk32kg regulator on
2011-11-07 21:03 ` Mahaveer, Vishal
@ 2011-11-07 22:49 ` Kevin Hilman
2011-11-08 14:57 ` Mahaveer, Vishal
0 siblings, 1 reply; 8+ messages in thread
From: Kevin Hilman @ 2011-11-07 22:49 UTC (permalink / raw)
To: Mahaveer, Vishal; +Cc: linux-omap@vger.kernel.org
"Mahaveer, Vishal" <vishalm@ti.com> writes:
> Hilman, Kevin wrote:
>>
>> No.
>>
>> You want it on only
>>
>> 1) if the connectivity chip is present, *and*
>> 2) BT, WLAN, FM or GPS are being used.
>>
>> The current patch assumes that a connectivity chip is present
>> whenever the TWL is present, which may be true on the platform you're
>> currently working on, but is not true in general.
>>
>> And, even if it were present, for power reasons the regulator should
>> be enabled only when it's needed, not because it might be needed.
>> That means that the device-specific (or board specific) code should
>> be configuring the regulators used for the various modules so the
>> drivers can request the regulators when they're needed.
>>
>
> Will it make more sense to move clk32 regulator initialization to
> board-xxx files of platforms which has the connectivity chip?
Yes, initialization should be done only when connectivity chip is
present.
But more importantly, it's the usage of the regulator API that is
important. My primary objection to this patch is the use of 'always
on', where the drivers/devices that depend on this regulator are the
ones that should be requesting it to be on using the regulator API.
Kevin
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: [PATCH 1/1] OMAP: TWL: set clk32kg regulator on
2011-11-07 22:49 ` Kevin Hilman
@ 2011-11-08 14:57 ` Mahaveer, Vishal
0 siblings, 0 replies; 8+ messages in thread
From: Mahaveer, Vishal @ 2011-11-08 14:57 UTC (permalink / raw)
To: Hilman, Kevin; +Cc: linux-omap@vger.kernel.org
Hilman, Kevin wrote:
> "Mahaveer, Vishal" <vishalm@ti.com> writes:
>
>> Hilman, Kevin wrote:
>>>
>>> No.
>>>
>>> You want it on only
>>>
>>> 1) if the connectivity chip is present, *and*
>>> 2) BT, WLAN, FM or GPS are being used.
>>>
>>> The current patch assumes that a connectivity chip is present
>>> whenever the TWL is present, which may be true on the platform
>>> you're currently working on, but is not true in general.
>>>
>>> And, even if it were present, for power reasons the regulator should
>>> be enabled only when it's needed, not because it might be needed.
>>> That means that the device-specific (or board specific) code should
>>> be configuring the regulators used for the various modules so the
>>> drivers can request the regulators when they're needed.
>>>
>>
>> Will it make more sense to move clk32 regulator initialization to
>> board-xxx files of platforms which has the connectivity chip?
>
> Yes, initialization should be done only when connectivity chip is
> present.
>
> But more importantly, it's the usage of the regulator API that is
> important. My primary objection to this patch is the use of 'always
> on', where the drivers/devices that depend on this regulator are the
> ones that should be requesting it to be on using the regulator API.
>
> Kevin
Understood...
1) clk32kg regulator should be initialized in platform file (boazrd file)
2) Use regulator APIs in connectivity driver to enable it.
- Vishal
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2011-11-08 14:57 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-01 15:40 [PATCH 0/1] OMAP: TWL: set clk32kg regulator on Vishal Mahaveer
2011-11-01 15:40 ` [PATCH 1/1] " Vishal Mahaveer
2011-11-04 23:16 ` Kevin Hilman
2011-11-04 23:20 ` Mahaveer, Vishal
2011-11-07 19:26 ` Kevin Hilman
2011-11-07 21:03 ` Mahaveer, Vishal
2011-11-07 22:49 ` Kevin Hilman
2011-11-08 14:57 ` Mahaveer, Vishal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox