RE: [PATCH v5 19/21] clk: tegra: Add Super Gen5 Logic

2015-05-25 Thread Bill Huang
> -Original Message- > From: ble...@google.com [mailto:ble...@google.com] On Behalf Of Benson > Leung > Sent: Friday, May 15, 2015 3:37 AM > To: Rhyland Klein > Cc: Peter De Schrijver; Mike Turquette; Stephen Warren; Stephen Boyd; Thierry > Reding; Alexandre Cour

[PATCH 1/1] clk: tegra: read correct iddq register in PLL_SS registration

2015-05-18 Thread Bill Huang
This fixes bug in tegra_clk_register_pllss() which mistakenly assume the iddq register is the PLL base address. Signed-off-by: Bill Huang --- drivers/clk/tegra/clk-pll.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk

[PATCH 1/1] clk: tegra: fix WARN_ON in PLL_RE registration

2015-05-15 Thread Bill Huang
This fixes two things. - Read the correct IDDQ register - Check the correct IDDQ bit position Signed-off-by: Bill Huang --- drivers/clk/tegra/clk-pll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c index 05c6d08

Re: [RFC 1/1] driver core: re-order dpm_list after a succussful probe

2014-12-24 Thread Bill Huang
On 12/23/2014 10:26 PM, Bibek Basu wrote: sorry for the delay in responding. On Thu, Dec 18, 2014 at 1:35 PM, Bill Huang mailto:bilhu...@nvidia.com>> wrote: On 12/17/2014 10:47 PM, Bibek Basu wrote: Hi Bill, Though I like your solution, I have a usecase whe

Re: [RFC 1/1] driver core: re-order dpm_list after a succussful probe

2014-12-18 Thread Bill Huang
On Fri, Dec 12, 2014 at 03:50:15AM -0800, Bill Huang wrote: > The dpm_list was added in the call "device_add" and when we do defer > probe we'll explicitly move the probed device to be the last in the > dpm_list, we should do the same for the normal probe since t

[RFC 1/1] driver core: re-order dpm_list after a succussful probe

2014-12-12 Thread Bill Huang
d Driver for device B was binded Driver for device A was binded Signed-off-by: Bill Huang --- It seems to me this is a bug in the core driver, but I'm not sure how should we fix it. - Do we have better fix? - This proposed fix or any other fix might introduces side effect that breaks existin

[PATCH v5 1/1] cpufreq: tegra: Re-model Tegra20 cpufreq driver

2013-12-19 Thread Bill Huang
compatible}-cpufreq" so SoC cpufreq driver can bind to it accordingly. Signed-off-by: Bill Huang --- This patch remodel Tegra cpufreq driver to make it more easy to add new SoC support, in addition to that, adding probe function in the driver to let probe defer can be used to control init s

[PATCH v4 1/1] cpufreq: tegra: Re-model Tegra20 cpufreq driver

2013-12-12 Thread Bill Huang
compatible}-cpufreq" so SoC cpufreq driver can bind to it accordingly. Signed-off-by: Bill Huang --- This patch remodel Tegra cpufreq driver to make it more easy to add new SoC support, in addition to that, adding probe function in the driver to let probe defer can be used to control init s

[PATCH v4 1/1] cpufreq: tegra: Re-model Tegra20 cpufreq driver

2013-12-12 Thread Bill Huang
compatible}-cpufreq" so SoC cpufreq driver can bind to it accordingly. Signed-off-by: Bill Huang --- This patch remodel Tegra cpufreq driver to make it more easy to add new SoC support, in addition to that, adding probe function in the driver to let probe defer can be used to control init s

[PATCH v3 1/2] cpufreq: tegra: Call tegra_cpufreq_init() specifically in machine code

2013-12-04 Thread Bill Huang
Move the call from module_init to Tegra machine codes so it won't be called in a multi-platform kernel running on non-Tegra SoCs. Signed-off-by: Bill Huang --- arch/arm/mach-tegra/tegra.c |2 ++ drivers/cpufreq/tegra-cpufreq.c | 13 ++--- include/linux/tegra-soc.h |

[PATCH v3 0/2] Remodel Tegra cpufreq drivers to support Tegra series SoC

2013-12-04 Thread Bill Huang
branch 'cpufreq-next' on git://git.linaro.org/people/vireshk/linux.git. Changes since v1: - Split up patches. - Split configuration-time data out of structure "tegra_cpufreq_data". - Bug fixes. Bill Huang (2): cpufreq: tegra: Call tegra_cpufreq_init() specifically in machin

[PATCH v3 2/2] cpufreq: tegra: Re-model Tegra cpufreq driver

2013-12-04 Thread Bill Huang
n the driver to support voltage scaling (DVFS). Signed-off-by: Bill Huang --- drivers/cpufreq/Kconfig.arm | 12 +++ drivers/cpufreq/Makefile |1 + drivers/cpufreq/tegra-cpufreq.c | 185 ++--- drivers/cpufreq/tegra-cpufreq.h | 40 dr

Re: [PATCH v2 3/4] cpufreq: tegra: Re-model Tegra cpufreq driver

2013-09-13 Thread Bill Huang
On Sat, 2013-09-14 at 06:26 +0800, Stephen Warren wrote: > On 09/12/2013 05:24 AM, Bill Huang wrote: > > Re-model Tegra cpufreq driver to support all Tegra series of SoCs. > > > > * Make tegra-cpufreq.c a generic Tegra cpufreq driver. > > * Move Tegra20 specific c

[PATCH v2 1/4] cpufreq: tegra: Call tegra_cpufreq_init() specifically in machine code

2013-09-12 Thread Bill Huang
Move the call from module_init to Tegra machine codes so it won't be called in a multi-platform kernel running on non-Tegra SoCs. Signed-off-by: Bill Huang --- arch/arm/mach-tegra/common.c|2 ++ drivers/cpufreq/tegra-cpufreq.c | 13 ++--- include/linux/tegra-soc.h |

[PATCH v2 4/4] ARM: tegra: defconfig updates

2013-09-12 Thread Bill Huang
Enable: * Tegra CPUFreq driver. Signed-off-by: Bill Huang --- arch/arm/configs/tegra_defconfig |1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/tegra_defconfig b/arch/arm/configs/tegra_defconfig index ea042e8..64bc8bd 100644 --- a/arch/arm/configs/tegra_defconfig +++ b

[PATCH v2 3/4] cpufreq: tegra: Re-model Tegra cpufreq driver

2013-09-12 Thread Bill Huang
n the driver to support voltage scaling (DVFS). Signed-off-by: Bill Huang --- drivers/cpufreq/Kconfig.arm |8 +- drivers/cpufreq/Makefile |1 + drivers/cpufreq/tegra-cpufreq.c | 176 +++-- drivers/cpufreq/tegra-cpufreq.h | 42 + dr

[PATCH v2 2/4] cpufreq: tegra: Remove not used header files and clean up codes

2013-09-12 Thread Bill Huang
Remove the inclustion of the not needed header files and remove the logic to check the CPU ID to not exceeding the maximum supported CPUs. Signed-off-by: Bill Huang --- drivers/cpufreq/tegra-cpufreq.c | 15 ++- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/drivers

[PATCH v2 0/4] Remodel Tegra cpufreq driver to support Tegra series SoCs

2013-09-12 Thread Bill Huang
-time data out of structure "tegra_cpufreq_data". - Bug fixes. Bill Huang (4): cpufreq: tegra: Call tegra_cpufreq_init() specifically in machine code cpufreq: tegra: Remove not used header files and clean up codes cpufreq: tegra: Re-model Tegra cpufreq driver ARM: tegra:

Re: [PATCH 2/2] cpufreq: tegra: Re-model Tegra cpufreq driver

2013-09-12 Thread Bill Huang
On Thu, 2013-09-12 at 18:14 +0800, Peter De Schrijver wrote: > On Wed, Sep 11, 2013 at 01:19:14PM +0200, Bill Huang wrote: > > > +static inline int tegra_cpufreq_init(void) > > +{ > > + retrun EOPNOTSUPP; > > This should be -EOPNOTSUPP at least. I think

Re: [PATCH 2/2] cpufreq: tegra: Re-model Tegra cpufreq driver

2013-09-11 Thread Bill Huang
On Thu, 2013-09-12 at 03:33 +0800, Stephen Warren wrote: > On 09/11/2013 05:19 AM, Bill Huang wrote: > > diff --git a/drivers/cpufreq/tegra20-cpufreq.c > > b/drivers/cpufreq/tegra20-cpufreq.c > > > +static struct cpufreq_frequency_table freq_table[] = { >

[PATCH 1/2] cpufreq: tegra: Remove not used header and clean up codes

2013-09-11 Thread Bill Huang
Remove inclustion of the not needed header files and remove the logic to check the CPU ID to not exceeding the maximum supported CPUs. Signed-off-by: Bill Huang --- drivers/cpufreq/tegra-cpufreq.c | 14 ++ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/drivers

[PATCH 2/2] cpufreq: tegra: Re-model Tegra cpufreq driver

2013-09-11 Thread Bill Huang
n the driver to support voltage scaling (DVFS). * Call tegra_cpufreq_init() in Tegra machine code specifically so it won't be called in multi-platform kernel which is not running on Tegra SoCs. Signed-off-by: Bill Huang --- arch/arm/mach-tegra/common.c |2 + drivers/cpufreq/K

[PATCH 0/2] Remodel Tegra cpufreq driver to support Tegra series SoCs

2013-09-11 Thread Bill Huang
This patch series remodel Tegra cpufreq driver to make it more easy to add new SoC support, in addition to that, adding probe function in the driver to let probe defer can be used to control init sequence when we going to support DVFS. Bill Huang (2): cpufreq: tegra: Remove not used header and

[PATCH 1/1] ARM: tegra: configure power off for Dalmore

2013-08-18 Thread Bill Huang
Add DT property to tell the regulator to register pm_power_off to make "shutdown" work. Signed-off-by: Bill Huang --- arch/arm/boot/dts/tegra114-dalmore.dts |2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-d

Re: [PATCH RESEND v2 1/1] mfd: palmas: Add power off control

2013-08-09 Thread Bill Huang
On Thu, 2013-08-08 at 20:32 +0800, Lee Jones wrote: > On Thu, 08 Aug 2013, Bill Huang wrote: > > > Hook up "pm_power_off" to palmas power off routine if there is DT > > property "ti,system-power-controller" defined, so platform which is > > powered b

[PATCH RESEND v2 1/1] mfd: palmas: Add power off control

2013-08-08 Thread Bill Huang
Hook up "pm_power_off" to palmas power off routine if there is DT property "ti,system-power-controller" defined, so platform which is powered by this regulator can be powered off properly. Signed-off-by: Mallikarjun Kasoju Signed-off-by: Bill Huang --- .../devicetree/bindi

Re: [PATCH v2 1/1] mfd: palmas: Add power off control

2013-08-05 Thread Bill Huang
On Fri, 2013-08-02 at 22:39 +0800, Nishanth Menon wrote: > On 08/02/2013 12:45 AM, Bill Huang wrote: > > On Thu, 2013-08-01 at 21:08 +0800, Nishanth Menon wrote: > >> On 04:08-20130801, Bill Huang wrote: > >>> On Wed, 2013-07-31 at 19:57 +0800, Nishanth Menon wrote: &

Re: [PATCH v2 1/1] mfd: palmas: Add power off control

2013-08-01 Thread Bill Huang
On Thu, 2013-08-01 at 21:08 +0800, Nishanth Menon wrote: > On 04:08-20130801, Bill Huang wrote: > > On Wed, 2013-07-31 at 19:57 +0800, Nishanth Menon wrote: > > > > > > If you notice the reference code I send, atleast on TWL6035/37 variants > > > of Palmas, U

Re: [PATCH v2 1/1] mfd: palmas: Add power off control

2013-08-01 Thread Bill Huang
On Wed, 2013-07-31 at 19:57 +0800, Nishanth Menon wrote: > > If you notice the reference code I send, atleast on TWL6035/37 variants > of Palmas, USB IRQ unmask is mandatory for power on with USB cable - > example usage scenario: extremely low battery, device powered off, plug > in usb cable to

Re: [PATCH 1/1] mfd: palmas: Add power off control

2013-07-31 Thread Bill Huang
On Wed, 2013-07-31 at 17:56 +0800, Lee Jones wrote: > On Tue, 30 Jul 2013, Bill Huang wrote: > > > Hook up "pm_power_off" to palmas power off routine if there is DT > > property "ti,system-power-controller" defined, so platform which is > > powered b

[PATCH v2 1/1] mfd: palmas: Add power off control

2013-07-31 Thread Bill Huang
Hook up "pm_power_off" to palmas power off routine if there is DT property "ti,system-power-controller" defined, so platform which is powered by this regulator can be powered off properly. Based on work by: Mallikarjun Kasoju Signed-off-by: Bill Huang cc

Re: [PATCH 1/1] mfd: palmas: Add power off control

2013-07-30 Thread Bill Huang
On Tue, 2013-07-30 at 21:17 +0800, Nishanth Menon wrote: > On 07/30/2013 07:05 AM, Bill Huang wrote: > > Hook up "pm_power_off" to palmas power off routine if there is DT > > property "ti,system-power-controller" defined, so platform which is > > pow

[PATCH 1/1] mfd: palmas: Add power off control

2013-07-30 Thread Bill Huang
Hook up "pm_power_off" to palmas power off routine if there is DT property "ti,system-power-controller" defined, so platform which is powered by this regulator can be powered off properly. Based on work by: Mallikarjun Kasoju Signed-off-by: Bill Huang cc

Re: [PATCH 1/5] clk: allow reentrant calls into the clk framework

2013-03-26 Thread Bill Huang
On Thu, 2013-02-28 at 12:49 +0800, Mike Turquette wrote: > Reentrancy into the clock framework from the clk.h api is highly > desirable. This feature is necessary for clocks that are prepared and > unprepared via i2c_transfer (which includes many PMICs and discrete > audio chips) and it is also ne

Re: [PATCH 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-20 Thread Bill Huang
On Wed, 2013-03-20 at 22:47 +0800, Mike Turquette wrote: > Quoting Bill Huang (2013-03-19 21:39:44) > > On Wed, 2013-03-20 at 11:31 +0800, Mike Turquette wrote: > > > Quoting Bill Huang (2013-03-19 19:55:49) > > > > On Wed, 2013-03-20 at 01:01 +0800, Mike Turquette

Re: [PATCH 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-19 Thread Bill Huang
On Wed, 2013-03-20 at 11:31 +0800, Mike Turquette wrote: > Quoting Bill Huang (2013-03-19 19:55:49) > > On Wed, 2013-03-20 at 01:01 +0800, Mike Turquette wrote: > > > Quoting Bill Huang (2013-03-19 06:28:32) > > > > Add notifier calls in clk_prepare and clk_

Re: [PATCH 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-19 Thread Bill Huang
On Wed, 2013-03-20 at 01:01 +0800, Mike Turquette wrote: > Quoting Bill Huang (2013-03-19 06:28:32) > > Add notifier calls in clk_prepare and clk_unprepare so drivers which are > > interested in knowing that clk_prepare/unprepare call can act accordingly. > > > >

[PATCH 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-19 Thread Bill Huang
d notifier events are: PRE_CLK_PREPARE POST_CLK_PREPARE ABORT_CLK_PREPARE PRE_CLK_UNPREPARE POST_CLK_UNPREPARE Signed-off-by: Bill Huang --- drivers/clk/clk.c | 88 ++- include/linux/clk.h |5 +++ 2 files changed, 57 insertions(+), 36

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-15 Thread Bill Huang
On Sat, 2013-03-16 at 01:09 +0800, Russell King - ARM Linux wrote: > On Tue, Mar 12, 2013 at 10:40:04PM -0700, Bill Huang wrote: > > That will be too bad, it looks like we deadlock in the mechanism, we > > cannot change existing drivers behavior (that means some call > &g

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-15 Thread Bill Huang
On Fri, 2013-03-15 at 20:33 +0800, Ulf Hansson wrote: > I guess you did not fully got what I meant with "dvfs clock type". It > will not affect the clock API. But instead the dvfs is handled by > implementing a specific clk hw type. So the same thing is accomplished > as with clk notifiers, no chan

Re: [PATCH 1/1] mfd: palmas: Add power off control

2013-03-15 Thread Bill Huang
On Sat, 2013-03-16 at 01:22 +0800, Stephen Warren wrote: > On 03/14/2013 11:51 PM, Bill Huang wrote: > > On Fri, 2013-03-15 at 13:19 +0800, Stephen Warren wrote: > >> On 03/14/2013 04:58 AM, Bill Huang wrote: > >>> Hook up "pm_power_off" to palmas power o

Re: [RFC v2 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-15 Thread Bill Huang
On Sat, 2013-03-16 at 03:51 +0800, Stephen Warren wrote: > On 03/15/2013 11:45 AM, Russell King - ARM Linux wrote: > > On Thu, Mar 14, 2013 at 02:31:04AM -0700, Bill Huang wrote: > >> Add the below two notifier events so drivers which are interested in > >> knowi

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-15 Thread Bill Huang
On Sat, 2013-03-16 at 03:38 +0800, Stephen Warren wrote: > On 03/15/2013 06:33 AM, Ulf Hansson wrote: > > On 15 March 2013 13:06, Bill Huang wrote: > >> On Fri, 2013-03-15 at 18:08 +0800, Ulf Hansson wrote: > ... > >>> Some prerequisites; I think am in favor of u

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-15 Thread Bill Huang
On Fri, 2013-03-15 at 18:08 +0800, Ulf Hansson wrote: > On 15 March 2013 10:39, Peter De Schrijver wrote: > > On Fri, Mar 15, 2013 at 06:22:47AM +0100, Stephen Warren wrote: > >> On 03/14/2013 07:20 PM, Bill Huang wrote: > >> > On Fri, 2013-03-15 at 01:54 +0800, St

Re: [PATCH 1/1] mfd: palmas: Add power off control

2013-03-14 Thread Bill Huang
On Fri, 2013-03-15 at 13:19 +0800, Stephen Warren wrote: > On 03/14/2013 04:58 AM, Bill Huang wrote: > > Hook up "pm_power_off" to palmas power off routine if there is DT > > property "ti,system-power-controller" defined, so platform which is > > pow

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-14 Thread Bill Huang
On Fri, 2013-03-15 at 13:22 +0800, Stephen Warren wrote: > On 03/14/2013 07:20 PM, Bill Huang wrote: > > On Fri, 2013-03-15 at 01:54 +0800, Stephen Warren wrote: > >> On 03/14/2013 03:28 AM, Bill Huang wrote: > >>> On Thu, 2013-03-14 at 17:21 +0800, Peter De Schrijve

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-14 Thread Bill Huang
On Fri, 2013-03-15 at 01:54 +0800, Stephen Warren wrote: > On 03/14/2013 03:28 AM, Bill Huang wrote: > > On Thu, 2013-03-14 at 17:21 +0800, Peter De Schrijver wrote: > >> On Thu, Mar 14, 2013 at 03:15:11AM +0100, Bill Huang wrote: > >> > >>> I don't t

[PATCH 1/1] mfd: palmas: Add power off control

2013-03-14 Thread Bill Huang
Hook up "pm_power_off" to palmas power off routine if there is DT property "ti,system-power-controller" defined, so platform which is powered by this regulator can be powered off properly. Based on work by: Mallikarjun Kasoju Signed-off-by: Bill Huang --- drivers/mfd/p

[RFC v3 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-14 Thread Bill Huang
Add the below two notifier events so drivers which are interested in knowing the clock status can act accordingly. This is extremely useful in some of the DVFS (Dynamic Voltage Frequency Scaling) design. CLK_PREPARED CLK_UNPREPARED Signed-off-by: Bill Huang --- drivers/clk/clk.c | 75

Re: [RFC v2 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-14 Thread Bill Huang
On Thu, 2013-03-14 at 17:31 +0800, Bill Huang wrote: > Add the below two notifier events so drivers which are interested in > knowing the clock status can act accordingly. This is extremely useful > in some of the DVFS (Dynamic Voltage Frequency Scaling) design. > > CLK_PREPARED &

[RFC v2 1/1] clk: Add notifier support in clk_prepare/clk_unprepare

2013-03-14 Thread Bill Huang
Add the below two notifier events so drivers which are interested in knowing the clock status can act accordingly. This is extremely useful in some of the DVFS (Dynamic Voltage Frequency Scaling) design. CLK_PREPARED CLK_UNPREPARED Signed-off-by: Bill Huang --- drivers/clk/clk.c |3

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-14 Thread Bill Huang
On Thu, 2013-03-14 at 17:21 +0800, Peter De Schrijver wrote: > On Thu, Mar 14, 2013 at 03:15:11AM +0100, Bill Huang wrote: > > > I don't think deferring will work either, considering the usage of DVFS, > > device voltage is tightly coupled with frequency, when clock rate i

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-13 Thread Bill Huang
On Thu, 2013-03-14 at 02:10 +0800, Stephen Warren wrote: > On 03/12/2013 11:40 PM, Bill Huang wrote: > > On Wed, 2013-03-13 at 13:24 +0800, Stephen Warren wrote: > >> On 03/12/2013 11:08 PM, Bill Huang wrote: > >>> On Wed, 2013-03-13 at 12:42 +0800, Stephen Warren wro

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-12 Thread Bill Huang
On Wed, 2013-03-13 at 13:24 +0800, Stephen Warren wrote: > On 03/12/2013 11:08 PM, Bill Huang wrote: > > On Wed, 2013-03-13 at 12:42 +0800, Stephen Warren wrote: > >> On 03/12/2013 07:47 PM, Bill Huang wrote: > >>> On Tue, 2013-03-12 at 21:40 +0800, Russell King -

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-12 Thread Bill Huang
On Wed, 2013-03-13 at 12:42 +0800, Stephen Warren wrote: > On 03/12/2013 07:47 PM, Bill Huang wrote: > > On Tue, 2013-03-12 at 21:40 +0800, Russell King - ARM Linux wrote: > >> On Tue, Mar 12, 2013 at 05:37:41AM -0700, Bill Huang wrote: > >>> Add the below four notifi

Re: [RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-12 Thread Bill Huang
On Tue, 2013-03-12 at 21:40 +0800, Russell King - ARM Linux wrote: > On Tue, Mar 12, 2013 at 05:37:41AM -0700, Bill Huang wrote: > > Add the below four notifier events so drivers which are interested in > > knowing the clock status can act accordingly. This is extremely useful >

[RFC 1/1] clk: Add notifier support in clk_prepare_enable/clk_disable_unprepare

2013-03-12 Thread Bill Huang
Add the below four notifier events so drivers which are interested in knowing the clock status can act accordingly. This is extremely useful in some of the DVFS (Dynamic Voltage Frequency Scaling) design. PRE_CLK_ENABLE POST_CLK_ENABLE PRE_CLK_DISABLE POST_CLK_DISABLE Signed-off-by: Bill Huang

Re: [PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-03-01 Thread Bill Huang
On Sat, 2013-03-02 at 04:49 +0800, Stephen Warren wrote: > On 03/01/2013 02:41 AM, Bill Huang wrote: > > On Thu, 2013-02-28 at 12:49 +0800, Mike Turquette wrote: > >> There are three prerequisites to using this feature: > >> > >> 1) the affected clocks must be u

Re: [PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-03-01 Thread Bill Huang
On Sat, 2013-03-02 at 04:48 +0800, Mike Turquette wrote: > Quoting Mike Turquette (2013-03-01 10:22:34) > > Quoting Bill Huang (2013-03-01 01:41:31) > > > On Thu, 2013-02-28 at 12:49 +0800, Mike Turquette wrote: > > > > Dynamic voltage and frequency scaling (

Re: [PATCH 2/5] clk: notifier handler for dynamic voltage scaling

2013-03-01 Thread Bill Huang
On Thu, 2013-02-28 at 12:49 +0800, Mike Turquette wrote: > Dynamic voltage and frequency scaling (dvfs) is a common power saving > technique in many of today's modern processors. This patch introduces a > common clk rate-change notifier handler which scales voltage > appropriately whenever clk_set

RE: [PATCH v2 0/2] mfd: dt: add power off support for Tegra20/Tegra30

2012-09-11 Thread Bill Huang
> > V1: > * Based on master branch of sameo/mfd-2.6.git > > Bill Huang (2): > mfd: dt: tps6586x: Add power off control > mfd: dt: tps65910: add power off control > > Documentation/devicetree/bindings/mfd/tps65910.txt |4 +++ > ..

RE: [PATCH v2 1/2] mfd: dt: tps6586x: Add power off control

2012-09-04 Thread Bill Huang
> nvpublic > > On 08/24/2012 06:36 PM, Bill Huang wrote: > > >>> On Sun, Aug 19, 2012 at 06:07:55PM -0700, Bill Huang wrote: > > >>>> Add DT property "ti,system-power-controller" telling whether or > > >>>> not this pmic i

RE: Shutdown problem in SMP system happened on Tegra20

2012-08-26 Thread Bill Huang
> On Sat, Aug 25, 2012 at 08:00:56AM +0800, Bill Huang wrote: > > nvpublic > > > So what you're asking for is a feature to do what > > > CONFIG_PM_SLEEP_SMP does, but without CONFIG_PM_SLEEP_SMP enabled? > > > > Yeah pretty much, I'm actually askin

RE: [PATCH v2 1/2] mfd: dt: tps6586x: Add power off control

2012-08-26 Thread Bill Huang
nvpublic > On 08/24/2012 06:36 PM, Bill Huang wrote: > >>> On Sun, Aug 19, 2012 at 06:07:55PM -0700, Bill Huang wrote: > >>>> Add DT property "ti,system-power-controller" telling whether or not > >>>> this pmic is in charge of controlling t

RE: [PATCH v2 1/2] mfd: dt: tps6586x: Add power off control

2012-08-24 Thread Bill Huang
nvpublic > > On Sun, Aug 19, 2012 at 06:07:55PM -0700, Bill Huang wrote: > > > Add DT property "ti,system-power-controller" telling whether or not > > > this pmic is in charge of controlling the system power, so the power > > > off routine ca

RE: Shutdown problem in SMP system happened on Tegra20

2012-08-24 Thread Bill Huang
nvpublic > On Fri, Aug 24, 2012 at 04:23:39PM +0800, Bill Huang wrote: > > When doing shutdown on Tegra20/Tegra30, we need to read/write PMIC > > registers through I2C to perform the power off sequence. > > Unfortunately, sometimes we'll fail to shutdown due to I2C timeo

Shutdown problem in SMP system happened on Tegra20

2012-08-24 Thread Bill Huang
Hi, When doing shutdown on Tegra20/Tegra30, we need to read/write PMIC registers through I2C to perform the power off sequence. Unfortunately, sometimes we'll fail to shutdown due to I2C timeout on Tegra20. And the cause of the timeout is due to the CPU which I2C controller IRQ affined to will

RE: [PATCH v2 1/2] mfd: dt: tps6586x: Add power off control

2012-08-22 Thread Bill Huang
nvpublic > On Sun, Aug 19, 2012 at 06:07:55PM -0700, Bill Huang wrote: > > Add DT property "ti,system-power-controller" telling whether or not > > this pmic is in charge of controlling the system power, so the power > > off routine can be hooked up to system call &

[PATCH v2 2/2] mfd: dt: tps65910: add power off control

2012-08-19 Thread Bill Huang
Add DT property "ti,system-power-controller" telling whether or not this pmic is in charge of controlling the system power, so the power off routine can be hooked up to system call "pm_power_off". Based on the work by: Dan Willemsen Signed-off-by: Bill Huang Teste

[PATCH v2 1/2] mfd: dt: tps6586x: Add power off control

2012-08-19 Thread Bill Huang
Add DT property "ti,system-power-controller" telling whether or not this pmic is in charge of controlling the system power, so the power off routine can be hooked up to system call "pm_power_off". Based on the work by: Dan Willemsen Signed-off-by: Bill Huang Teste

[PATCH v2 0/2] mfd: dt: add power off support for Tegra20/Tegra30

2012-08-19 Thread Bill Huang
ied on Seaboard (Tegra20) and Cardhu (Tegra30) V2: * Take multiple pmic instances into consideration while assigning global variables as per suggestion from Thierry Reding V1: * Based on master branch of sameo/mfd-2.6.git Bill Huang (2): mfd: dt: tps6586x: Add power off control mfd: dt: tps6

RE: [PATCH 1/2] mfd: dt: tps6586x: Add power off control

2012-08-17 Thread Bill Huang
nvpublic > On Fri, Aug 17, 2012 at 02:16:28AM -0700, Bill Huang wrote: > [...] > > diff --git a/drivers/mfd/tps6586x.c b/drivers/mfd/tps6586x.c > [...] > > @@ -505,6 +519,11 @@ static int __devinit tps6586x_i2c_probe(struct > > i2c_client *client, > &

[PATCH 1/2] mfd: dt: tps6586x: Add power off control

2012-08-17 Thread Bill Huang
Add DT property "ti,system-power-controller" telling whether or not this pmic is in charge of controlling the system power, so the power off routine can be hooked up to system call "pm_power_off". Based on the work by: Dan Willemsen Signed-off-by: Bill Huang --- ...

[PATCH 2/2] mfd: dt: tps65910: add power off control

2012-08-17 Thread Bill Huang
Add DT property "ti,system-power-controller" telling whether or not this pmic is in charge of controlling the system power, so the power off routine can be hooked up to system call "pm_power_off". Based on the work by: Dan Willemsen Signed-off-by: Bill Huang --- Docu

[PATCH 0/2] mfd: dt: add power off support for Tegra20/Tegra30

2012-08-17 Thread Bill Huang
ied on Seaboard (Tegra20) and Cardhu (Tegra30) Bill Huang (2): mfd: dt: tps6586x: Add power off control mfd: dt: tps65910: add power off control Documentation/devicetree/bindings/mfd/tps65910.txt |4 +++ .../devicetree/bindings/regulator/tps6586x.txt |6 + drivers