[PATCH v2 10/19] clk: tegra: pll: Add logic for out-of-table rates for T210

2015-04-29 Thread Rhyland Klein
-by: Rhyland Klein rkl...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 24 ++-- drivers/clk/tegra/clk.h | 10 ++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c index 2a559408cee1..0b9cbe12a3eb

[PATCH v2 11/19] clk: tegra: pll: Add code to handle if resets are supported by PLL

2015-04-29 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com If a PLL has a reset_reg specified, properly handle that in the enable/disable logic paths. Signed-off-by: Bill Huang bilhu...@nvidia.com --- v2: - Moved reset logic to _clk_pll_enable/disable as well drivers/clk/tegra/clk-pll.c | 12

[PATCH v2 15/19] clk: tegra: pll: Add dyn_ramp callback

2015-04-29 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com Add a callback to the pll_params for custom dynamic ramping functions which can be specified per PLL. Signed-off-by: Bill Huang bilhu...@nvidia.com --- drivers/clk/tegra/clk.h |4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/tegra/clk.h

[PATCH v2 14/19] clk: tegra: pll: Adjust vco_min if SDM present

2015-04-29 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com This code makes use of the SDM fractional divider if present to contrain the allowable programming range of the PLL divider register bitfields to take advantage of higher frequency granularity that can be induced by the SDM divider. Based on original work by

[PATCH v2 04/19] clk: tegra: pll: simplify clk_enable_path

2015-04-29 Thread Rhyland Klein
Instead of having multiple similar wrapper functions for _clk_pll_[enable|disable], we can simplify it to single wrappers and use checks to avoid the logic we don't want to use. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: - Moved the iddq settings into _clk_pll_enable/disable

[PATCH v2 16/19] clk: tegra: pll: Add Set_default logic

2015-04-29 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com Add logic which (if specified for a pll) can verify that a PLL is set to the proper default value and if not can set it. This can be specified per PLL as each will have different default values. Signed-off-by: Bill Huang bilhu...@nvidia.com --- v2: - Remove

[PATCH v2 17/19] clk: tegra: pll: Fix _pll_ramp_calc_pll logic and _calc_dynamic_ramp_rate

2015-04-29 Thread Rhyland Klein
the other fields. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: - Added fix for _calc_dynamic_ramp_rate where input_rate wasn't ever populated in the cfg, which could cause problems later if/when accessed. drivers/clk/tegra/clk-pll.c |8 ++-- 1 file changed, 2 insertions(+), 6

[PATCH v2 05/19] clk: tegra: pll: update warning msg

2015-04-29 Thread Rhyland Klein
Swap out the generic WARN_ON with a WARN which gives more information about what is happening. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- 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

[PATCH v2 01/19] clk: tegra: Modify tegra_audio_clk_init to accept more plls

2015-04-29 Thread Rhyland Klein
tegra_audio_clk_init was written expecting a single PLL to be passed in directly. Change this to accept an array which will allow for supporting multiple plls and specifying specific data about them, like their parent, which may change over time. Signed-off-by: Rhyland Klein rkl...@nvidia.com

Re: [PATCH v2 12/19] clk: tegra: pll: Add specialized logic for T210

2015-04-29 Thread Rhyland Klein
On 4/29/2015 2:27 PM, Andrew Bresticker wrote: Hi Rhyland, On Wed, Apr 29, 2015 at 10:21 AM, Rhyland Klein rkl...@nvidia.com wrote: On Tegra210 SoC's, the logic to enable several of the plls is different from previous generations. Therefore, add registeration functions specific to Tegra210

[PATCH 02/19] clk: tegra: periph: add new periph clks and muxes for Tegra210

2015-04-24 Thread Rhyland Klein
Tegra210 has significant differences in muxes for peripheral clocks. One of the most important changes is that pll_m isn't to be used as a source for peripherals. Therefore, we need to define the new muxes and new clocks to use those muxes for Tegra210 support. Signed-off-by: Rhyland Klein

[PATCH 03/19] clk: tegra: pll: add tegra_pll_wait_for_lock to clk header

2015-04-24 Thread Rhyland Klein
Create a wrapper interface to make use of the existing clk_pll_wait_for_lock. This will be useful for implementations of callbacks in Tegra SoC specific clock drivers. Signed-off-by: Rhyland Klein --- drivers/clk/tegra/clk-pll.c |5 + drivers/clk/tegra/clk.h |1 + 2 files

[PATCH 06/19] clk: tegra: pll-params: change misc_reg count from 3 -> 6

2015-04-24 Thread Rhyland Klein
From: Bill Huang New SoC's may have more then 3 MISC registers, so bump up the array size and use a #define to be more informative about the value. Signed-off-by: Bill Huang --- drivers/clk/tegra/clk.h |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH 07/19] clk: tegra: pll: Don't unconditionally set LOCK flags

2015-04-24 Thread Rhyland Klein
. Signed-off-by: Rhyland Klein --- drivers/clk/tegra/clk-pll.c | 11 ++- drivers/clk/tegra/clk-tegra114.c | 23 +-- drivers/clk/tegra/clk-tegra124.c | 24 +++- drivers/clk/tegra/clk-tegra20.c | 18 ++ drivers/clk/tegra

[PATCH 08/19] clk: tegra: pll: Add logic for handling SDM data

2015-04-24 Thread Rhyland Klein
This adds logic for taking SDM_DIN (Sigma Delta Modulator) setting into the equation to calculate the effective N value for PLL which supports fractional divider. The effective N = NDIV + 1/2 + SDM_DIN/2^13, where NDIV is the integer feedback divider. Signed-off-by: Rhyland Klein --- drivers

[PATCH 10/19] clk: tegra: pll: Add logic for out-of-table rates for T210

2015-04-24 Thread Rhyland Klein
For Tegra210, the logic to calculate out-of-table rates is different from previous generations. Add callbacks that can be overridden to allow for different ways of calculating rates. Default to _cal_rate when not specified. Based on original work by Aleksandr Frid Signed-off-by: Rhyland Klein

[PATCH 13/19] clk: tegra: pll: Add support for PLLMB for T210

2015-04-24 Thread Rhyland Klein
Tegra210 SoC's have a backup PLL for memory usage, PLLMB. Add plumbing to register and handle it. Signed-off-by: Rhyland Klein --- drivers/clk/tegra/clk-pll.c | 46 +++ drivers/clk/tegra/clk.h |9 + 2 files changed, 51 insertions(+), 4

[PATCH 11/19] clk: tegra: pll: Add code to handle if resets are supported by PLL

2015-04-24 Thread Rhyland Klein
From: Bill Huang If a PLL has a reset_reg specified, properly handle that in the enable/disable logic paths._ Signed-off-by: Bill Huang --- drivers/clk/tegra/clk-pll.c | 12 drivers/clk/tegra/clk.h |2 ++ 2 files changed, 14 insertions(+) diff --git

[PATCH 16/19] clk: tegra: pll: Add Set_default logic

2015-04-24 Thread Rhyland Klein
From: Bill Huang Add logic which (if specified for a pll) can verify that a PLL is set to the proper default value and if not can set it. This can be specified per PLL as each will have different default values. Signed-off-by: Bill Huang --- drivers/clk/tegra/clk-pll.c | 46

[PATCH 04/19] clk: tegra: pll: simplify clk_enable_path

2015-04-24 Thread Rhyland Klein
Instead of having multiple similar wrapper functions for _clk_pll_[enable|disable], we can simplify it to single wrappers and use checks to avoid the logic we don't want to use. Signed-off-by: Rhyland Klein --- drivers/clk/tegra/clk-pll.c | 79 ++- 1

[PATCH 15/19] clk: tegra: pll: Add dyn_ramp callback

2015-04-24 Thread Rhyland Klein
From: Bill Huang Add a callback to the pll_params for custom dynamic ramping functions which can be specified per PLL. Signed-off-by: Bill Huang --- drivers/clk/tegra/clk.h |4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/tegra/clk.h b/drivers/clk/tegra/clk.h index

[PATCH 14/19] clk: tegra: pll: Adjust vco_min if SDM present

2015-04-24 Thread Rhyland Klein
From: Bill Huang This code makes use of the SDM fractional divider if present to contrain the allowable programming range of the PLL divider register bitfields to take advantage of higher frequency granularity that can be induced by the SDM divider. Based on original work by Aleksandr Frid

[PATCH 12/19] clk: tegra: pll: Add specialized logic for T210

2015-04-24 Thread Rhyland Klein
On Tegra210 SoC's, the logic to enable several of the plls is different from previous generations. Therefore, add registeration functions specific to Tegra210 which will handle them appropriately. Signed-off-by: Rhyland Klein --- drivers/clk/tegra/clk-pll.c | 332

[PATCH 17/19] clk: tegra: pll: Fix _pll_ramp_calc_pll logic

2015-04-24 Thread Rhyland Klein
This removes the conversion from pdiv to hw, which is already taken care of by _get_table_rate before this code is run. This avoids incorrectly converting pdiv to hw twice and getting the wrong hw value. Signed-off-by: Rhyland Klein --- drivers/clk/tegra/clk-pll.c |7 +-- 1 file changed

[PATCH 19/19] clk: tegra210: add support for Tegra210 clocks

2015-04-24 Thread Rhyland Klein
Implement clock support for Tegra210. Signed-off-by: Rhyland Klein --- .../bindings/clock/nvidia,tegra210-car.txt | 56 + drivers/clk/tegra/Makefile |1 + drivers/clk/tegra/clk-id.h |4 + drivers/clk/tegra/clk-tegra210.c

[PATCH 09/19] clk: tegra: pll: Add logic for SS

2015-04-24 Thread Rhyland Klein
From: Bill Huang Add some logic for Spread Spectrum control. It is used in conjuncture with SDM fractional dividers. SSC has to be disabled when we configure the divider settings. Signed-off-by: Bill Huang --- drivers/clk/tegra/clk-pll.c | 25 -

[PATCH 18/19] clk: tegra: Add Super Gen5 Logic

2015-04-24 Thread Rhyland Klein
From: Bill Huang Super clock divider control and clock source mux of Tegra210 has changed a little against prior SoCs, this patch adds Gen5 logic to address those differences. Signed-off-by: Bill Huang --- drivers/clk/tegra/Makefile |1 +

[PATCH 00/19] Tegra210 Clock Support

2015-04-24 Thread Rhyland Klein
ent clk: tegra: pll: Add dyn_ramp callback clk: tegra: pll: Add Set_default logic clk: tegra: Add Super Gen5 Logic Rhyland Klein (12): clk: tegra: Modify tegra_audio_clk_init to accept more plls clk: tegra: periph: add new periph clks and muxes for Tegra210 clk: tegra: pll:

[PATCH 01/19] clk: tegra: Modify tegra_audio_clk_init to accept more plls

2015-04-24 Thread Rhyland Klein
tegra_audio_clk_init was written expecting a single PLL to be passed in directly. Change this to accept an array which will allow for supporting multiple plls and specifying specific data about them, like their parent, which may change over time. Signed-off-by: Rhyland Klein --- drivers/clk

[PATCH 05/19] clk: tegra: pll: update warning msg

2015-04-24 Thread Rhyland Klein
Swap out the generic WARN_ON with a WARN which gives more information about what is happening. Signed-off-by: Rhyland Klein --- 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

[PATCH 04/19] clk: tegra: pll: simplify clk_enable_path

2015-04-24 Thread Rhyland Klein
Instead of having multiple similar wrapper functions for _clk_pll_[enable|disable], we can simplify it to single wrappers and use checks to avoid the logic we don't want to use. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 79

[PATCH 07/19] clk: tegra: pll: Don't unconditionally set LOCK flags

2015-04-24 Thread Rhyland Klein
. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 11 ++- drivers/clk/tegra/clk-tegra114.c | 23 +-- drivers/clk/tegra/clk-tegra124.c | 24 +++- drivers/clk/tegra/clk-tegra20.c | 18

[PATCH 08/19] clk: tegra: pll: Add logic for handling SDM data

2015-04-24 Thread Rhyland Klein
This adds logic for taking SDM_DIN (Sigma Delta Modulator) setting into the equation to calculate the effective N value for PLL which supports fractional divider. The effective N = NDIV + 1/2 + SDM_DIN/2^13, where NDIV is the integer feedback divider. Signed-off-by: Rhyland Klein rkl

[PATCH 10/19] clk: tegra: pll: Add logic for out-of-table rates for T210

2015-04-24 Thread Rhyland Klein
-by: Rhyland Klein rkl...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 24 ++-- drivers/clk/tegra/clk.h | 10 ++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/drivers/clk/tegra/clk-pll.c b/drivers/clk/tegra/clk-pll.c index 806ae48020e5..f612a8b65651

[PATCH 06/19] clk: tegra: pll-params: change misc_reg count from 3 - 6

2015-04-24 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com New SoC's may have more then 3 MISC registers, so bump up the array size and use a #define to be more informative about the value. Signed-off-by: Bill Huang bilhu...@nvidia.com --- drivers/clk/tegra/clk.h |4 +++- 1 file changed, 3 insertions(+), 1

[PATCH 13/19] clk: tegra: pll: Add support for PLLMB for T210

2015-04-24 Thread Rhyland Klein
Tegra210 SoC's have a backup PLL for memory usage, PLLMB. Add plumbing to register and handle it. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 46 +++ drivers/clk/tegra/clk.h |9 + 2 files changed, 51

[PATCH 11/19] clk: tegra: pll: Add code to handle if resets are supported by PLL

2015-04-24 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com If a PLL has a reset_reg specified, properly handle that in the enable/disable logic paths._ Signed-off-by: Bill Huang bilhu...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 12 drivers/clk/tegra/clk.h |2 ++ 2 files changed, 14

[PATCH 16/19] clk: tegra: pll: Add Set_default logic

2015-04-24 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com Add logic which (if specified for a pll) can verify that a PLL is set to the proper default value and if not can set it. This can be specified per PLL as each will have different default values. Signed-off-by: Bill Huang bilhu...@nvidia.com ---

[PATCH 15/19] clk: tegra: pll: Add dyn_ramp callback

2015-04-24 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com Add a callback to the pll_params for custom dynamic ramping functions which can be specified per PLL. Signed-off-by: Bill Huang bilhu...@nvidia.com --- drivers/clk/tegra/clk.h |4 1 file changed, 4 insertions(+) diff --git a/drivers/clk/tegra/clk.h

[PATCH 14/19] clk: tegra: pll: Adjust vco_min if SDM present

2015-04-24 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com This code makes use of the SDM fractional divider if present to contrain the allowable programming range of the PLL divider register bitfields to take advantage of higher frequency granularity that can be induced by the SDM divider. Based on original work by

[PATCH 12/19] clk: tegra: pll: Add specialized logic for T210

2015-04-24 Thread Rhyland Klein
On Tegra210 SoC's, the logic to enable several of the plls is different from previous generations. Therefore, add registeration functions specific to Tegra210 which will handle them appropriately. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 332

[PATCH 19/19] clk: tegra210: add support for Tegra210 clocks

2015-04-24 Thread Rhyland Klein
Implement clock support for Tegra210. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- .../bindings/clock/nvidia,tegra210-car.txt | 56 + drivers/clk/tegra/Makefile |1 + drivers/clk/tegra/clk-id.h |4 + drivers/clk/tegra/clk

[PATCH 09/19] clk: tegra: pll: Add logic for SS

2015-04-24 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com Add some logic for Spread Spectrum control. It is used in conjuncture with SDM fractional dividers. SSC has to be disabled when we configure the divider settings. Signed-off-by: Bill Huang bilhu...@nvidia.com --- drivers/clk/tegra/clk-pll.c | 25

[PATCH 17/19] clk: tegra: pll: Fix _pll_ramp_calc_pll logic

2015-04-24 Thread Rhyland Klein
This removes the conversion from pdiv to hw, which is already taken care of by _get_table_rate before this code is run. This avoids incorrectly converting pdiv to hw twice and getting the wrong hw value. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/clk/tegra/clk-pll.c |7

[PATCH 18/19] clk: tegra: Add Super Gen5 Logic

2015-04-24 Thread Rhyland Klein
From: Bill Huang bilhu...@nvidia.com Super clock divider control and clock source mux of Tegra210 has changed a little against prior SoCs, this patch adds Gen5 logic to address those differences. Signed-off-by: Bill Huang bilhu...@nvidia.com --- drivers/clk/tegra/Makefile |1 +

[PATCH 01/19] clk: tegra: Modify tegra_audio_clk_init to accept more plls

2015-04-24 Thread Rhyland Klein
tegra_audio_clk_init was written expecting a single PLL to be passed in directly. Change this to accept an array which will allow for supporting multiple plls and specifying specific data about them, like their parent, which may change over time. Signed-off-by: Rhyland Klein rkl...@nvidia.com

[PATCH 00/19] Tegra210 Clock Support

2015-04-24 Thread Rhyland Klein
clk: tegra: pll: Add dyn_ramp callback clk: tegra: pll: Add Set_default logic clk: tegra: Add Super Gen5 Logic Rhyland Klein (12): clk: tegra: Modify tegra_audio_clk_init to accept more plls clk: tegra: periph: add new periph clks and muxes for Tegra210 clk: tegra: pll: add

[PATCH 05/19] clk: tegra: pll: update warning msg

2015-04-24 Thread Rhyland Klein
Swap out the generic WARN_ON with a WARN which gives more information about what is happening. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- 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

[PATCH 02/19] clk: tegra: periph: add new periph clks and muxes for Tegra210

2015-04-24 Thread Rhyland Klein
Tegra210 has significant differences in muxes for peripheral clocks. One of the most important changes is that pll_m isn't to be used as a source for peripherals. Therefore, we need to define the new muxes and new clocks to use those muxes for Tegra210 support. Signed-off-by: Rhyland Klein rkl

[PATCH 03/19] clk: tegra: pll: add tegra_pll_wait_for_lock to clk header

2015-04-24 Thread Rhyland Klein
Create a wrapper interface to make use of the existing clk_pll_wait_for_lock. This will be useful for implementations of callbacks in Tegra SoC specific clock drivers. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/clk/tegra/clk-pll.c |5 + drivers/clk/tegra/clk.h |1

[PATCH] clk: tegra: Fix comments for structure definitions

2015-04-13 Thread Rhyland Klein
Some fields moved from the tegra_clk_pll struct to the tegra_pll_params struct. Update the struct comments to reflect where the fields really are. Signed-off-by: Rhyland Klein --- drivers/clk/tegra/clk.h | 74 +++ 1 file changed, 37 insertions

[PATCH] clk: tegra: Fix comments for structure definitions

2015-04-13 Thread Rhyland Klein
Some fields moved from the tegra_clk_pll struct to the tegra_pll_params struct. Update the struct comments to reflect where the fields really are. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/clk/tegra/clk.h | 74 +++ 1 file changed, 37

Re: [PATCH] clk: check for invalid parent index of orphans in __clk_init()

2015-02-17 Thread Rhyland Klein
> Signed-off-by: Mans Rullgard > Cc: Rhyland Klein > --- > drivers/clk/clk.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c > index d48ac71..bc0662b 100644 > --- a/drivers/clk/clk.c > +++ b/drivers/c

Re: [PATCH] clk: check for invalid parent index of orphans in __clk_init()

2015-02-17 Thread Rhyland Klein
: Rhyland Klein rkl...@nvidia.com --- drivers/clk/clk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index d48ac71..bc0662b 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -1950,7 +1950,8 @@ int __clk_init(struct device

clk mux get_parent return type

2015-02-13 Thread Rhyland Klein
I saw a series of patches posted last year by Ambresh which addresses (at least mostly) changing the return type of clk_mux_get_parent. Namely, this series changing it to an int from an u8. http://lists.infradead.org/pipermail/linux-arm-kernel/2013-June/179367.html I am running into this error

clk mux get_parent return type

2015-02-13 Thread Rhyland Klein
I saw a series of patches posted last year by Ambresh which addresses (at least mostly) changing the return type of clk_mux_get_parent. Namely, this series changing it to an int from an u8. http://lists.infradead.org/pipermail/linux-arm-kernel/2013-June/179367.html I am running into this error

Re: [PATCH] mmc: tegra: Optimize write_w path for tegra114 and later

2015-02-12 Thread Rhyland Klein
On 2/11/2015 10:50 PM, Alexandre Courbot wrote: > On Thu, Feb 12, 2015 at 2:55 AM, Rhyland Klein wrote: >> Setup a different set of sdhci_ops for tegra114 and later so that >> the write_w callback is only used on tegra114. This allows us to >> remove the NVQUIRK_SHADOW_XFE

Re: [PATCH] mmc: tegra: Optimize write_w path for tegra114 and later

2015-02-12 Thread Rhyland Klein
On 2/11/2015 10:50 PM, Alexandre Courbot wrote: On Thu, Feb 12, 2015 at 2:55 AM, Rhyland Klein rkl...@nvidia.com wrote: Setup a different set of sdhci_ops for tegra114 and later so that the write_w callback is only used on tegra114. This allows us to remove the NVQUIRK_SHADOW_XFER_MODE_REG

[PATCH] mmc: tegra: Optimize write_w path for tegra114 and later

2015-02-11 Thread Rhyland Klein
Setup a different set of sdhci_ops for tegra114 and later so that the write_w callback is only used on tegra114. This allows us to remove the NVQUIRK_SHADOW_XFER_MODE_REG and simply the logic in tegra_sdhci_writew. This was suggested by Alexandre Courbot. Signed-off-by: Rhyland Klein

[PATCH] mmc: tegra: Optimize write_w path for tegra114 and later

2015-02-11 Thread Rhyland Klein
Setup a different set of sdhci_ops for tegra114 and later so that the write_w callback is only used on tegra114. This allows us to remove the NVQUIRK_SHADOW_XFER_MODE_REG and simply the logic in tegra_sdhci_writew. This was suggested by Alexandre Courbot. Signed-off-by: Rhyland Klein rkl

[PATCH v2] mmc: tegra: Write xfer_mode, CMD regs in together

2015-01-28 Thread Rhyland Klein
as an NVQUIRK as it applies to T114, T124 and T132. Signed-off-by: Pavan Kunapuli Signed-off-by: Rhyland Klein --- v2: - Fixed quirk flag check s/*/& - Removed line clearing xfer_mode_shadow - Added explicit mention of which platforms this applies to in description drivers/mmc/

Re: [PATCH] mmc: tegra: Write xfer_mode, CMD regs in together

2015-01-28 Thread Rhyland Klein
On 1/28/2015 1:06 AM, Alexandre Courbot wrote: > On Wed, Jan 28, 2015 at 2:23 AM, Rhyland Klein wrote: >> From: Pavan Kunapuli >> >> If there is a gap between xfer mode and command register writes, >> tegra SDMMC controller can sometimes issue a spurious command

[PATCH v2] mmc: tegra: Write xfer_mode, CMD regs in together

2015-01-28 Thread Rhyland Klein
. This is implemented as an NVQUIRK as it applies to T114, T124 and T132. Signed-off-by: Pavan Kunapuli pkunap...@nvidia.com Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: - Fixed quirk flag check s/*/ - Removed line clearing xfer_mode_shadow - Added explicit mention of which platforms

Re: [PATCH] mmc: tegra: Write xfer_mode, CMD regs in together

2015-01-28 Thread Rhyland Klein
On 1/28/2015 1:06 AM, Alexandre Courbot wrote: On Wed, Jan 28, 2015 at 2:23 AM, Rhyland Klein rkl...@nvidia.com wrote: From: Pavan Kunapuli pkunap...@nvidia.com If there is a gap between xfer mode and command register writes, tegra SDMMC controller can sometimes issue a spurious command

[PATCH] mmc: tegra: Write xfer_mode, CMD regs in together

2015-01-27 Thread Rhyland Klein
-by: Pavan Kunapuli Signed-off-by: Rhyland Klein --- drivers/mmc/host/sdhci-tegra.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 59797106af93..3d34de47e57e 100644 --- a/drivers

[PATCH] mmc: tegra: Write xfer_mode, CMD regs in together

2015-01-27 Thread Rhyland Klein
. Signed-off-by: Pavan Kunapuli pkunap...@nvidia.com Signed-off-by: Rhyland Klein rkl...@nvidia.com --- drivers/mmc/host/sdhci-tegra.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c

Re: [PATCH 6/6] clk: tegra: Add Tegra132 ccplex clocks

2014-07-15 Thread Rhyland Klein
On 7/15/2014 4:35 PM, Rhyland Klein wrote: > On 7/15/2014 11:24 AM, Peter De Schrijver wrote: >> Add support for the ccplex clocks in Tegra132. >> >> Signed-off-by: Peter De Schrijver >> --- >> drivers/clk/tegra/Makefile |2 ++ >> 1 files changed, 2 i

Re: [PATCH 6/6] clk: tegra: Add Tegra132 ccplex clocks

2014-07-15 Thread Rhyland Klein
On 7/15/2014 11:24 AM, Peter De Schrijver wrote: > Add support for the ccplex clocks in Tegra132. > > Signed-off-by: Peter De Schrijver > --- > drivers/clk/tegra/Makefile |2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/clk/tegra/Makefile

Re: [PATCH 6/6] clk: tegra: Add Tegra132 ccplex clocks

2014-07-15 Thread Rhyland Klein
On 7/15/2014 11:24 AM, Peter De Schrijver wrote: Add support for the ccplex clocks in Tegra132. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- drivers/clk/tegra/Makefile |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/clk/tegra/Makefile

Re: [PATCH 6/6] clk: tegra: Add Tegra132 ccplex clocks

2014-07-15 Thread Rhyland Klein
On 7/15/2014 4:35 PM, Rhyland Klein wrote: On 7/15/2014 11:24 AM, Peter De Schrijver wrote: Add support for the ccplex clocks in Tegra132. Signed-off-by: Peter De Schrijver pdeschrij...@nvidia.com --- drivers/clk/tegra/Makefile |2 ++ 1 files changed, 2 insertions(+), 0 deletions

Re: [PATCH v3 1/6] ARM: tegra: add gpiod_lookup table for paz00

2013-11-27 Thread Rhyland Klein
On 11/26/2013 5:05 AM, Mika Westerberg wrote: > From: Heikki Krogerus > > This makes it possible to request the gpio descriptors in > rfkill_gpio driver regardless of the platform. > > Signed-off-by: Heikki Krogerus > Signed-off-by: Mika Westerberg > Tested-by: Stephen Warren > --- >

Re: [PATCH v3 1/6] ARM: tegra: add gpiod_lookup table for paz00

2013-11-27 Thread Rhyland Klein
On 11/26/2013 5:05 AM, Mika Westerberg wrote: From: Heikki Krogerus heikki.kroge...@linux.intel.com This makes it possible to request the gpio descriptors in rfkill_gpio driver regardless of the platform. Signed-off-by: Heikki Krogerus heikki.kroge...@linux.intel.com Signed-off-by: Mika

Re: [PATCH 1/3] mfd: cros ec: spi: Add delay for raising CS

2013-11-19 Thread Rhyland Klein
On 11/19/2013 3:42 AM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Mon, Nov 18, 2013 at 11:48:10AM +, Mark Rutland wrote: >> On Mon, Nov 18, 2013 at 10:30:47AM +, Thierry Reding wrote: >>> From: Rhyland Klein >>> >>> The EC ha

Re: [PATCH 1/3] mfd: cros ec: spi: Add delay for raising CS

2013-11-19 Thread Rhyland Klein
On 11/19/2013 3:42 AM, Thierry Reding wrote: * PGP Signed by an unknown key On Mon, Nov 18, 2013 at 11:48:10AM +, Mark Rutland wrote: On Mon, Nov 18, 2013 at 10:30:47AM +, Thierry Reding wrote: From: Rhyland Klein rkl...@nvidia.com The EC has specific timing it requires. Add

Re: [Patch V5] drivers: power: Add support for bq24735 charger

2013-10-14 Thread Rhyland Klein
On 10/14/2013 2:21 PM, Stephen Warren wrote: > On 10/11/2013 03:15 PM, Rhyland Klein wrote: >> From: Darbha Sriharsha >> >> Adds support for the bq24735 charger chipset. The bq24735 is a >> high-efficiency, synchronous battery charger. >> >> It allows

Re: [Patch V5] drivers: power: Add support for bq24735 charger

2013-10-14 Thread Rhyland Klein
On 10/14/2013 2:21 PM, Stephen Warren wrote: On 10/11/2013 03:15 PM, Rhyland Klein wrote: From: Darbha Sriharsha dsrihar...@nvidia.com Adds support for the bq24735 charger chipset. The bq24735 is a high-efficiency, synchronous battery charger. It allows control of the charging current

[Patch V5] drivers: power: Add support for bq24735 charger

2013-10-11 Thread Rhyland Klein
From: Darbha Sriharsha Adds support for the bq24735 charger chipset. The bq24735 is a high-efficiency, synchronous battery charger. It allows control of the charging current, input current, and the charger voltage DAC's through SMBus. Signed-off-by: Darbha Sriharsha Signed-off-by: Rhyland

[Patch V5] drivers: power: Add support for bq24735 charger

2013-10-11 Thread Rhyland Klein
dsrihar...@nvidia.com Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v5: - Clarified ti,charge-[current/voltage] and input-current properties in documentation v4: - Added GPIO # to dev_err when gpio_request fails, for verbosity. v3: *Note: I decided to maintain non-DT support, but tried to do

Re: [PATCH] tps65090-charger: Use "IS_ENABLED(CONFIG_OF)" for DT code.

2013-09-30 Thread Rhyland Klein
; -} > -#endif > > static int tps65090_charger_probe(struct platform_device *pdev) > { > @@ -228,7 +219,7 @@ static int tps65090_charger_probe(struct platform_device > *pdev) > > pdata = dev_get_platdata(pdev->dev.parent); > > - if (!pdata &&

Re: [PATCH] tps65090-charger: Use IS_ENABLED(CONFIG_OF) for DT code.

2013-09-30 Thread Rhyland Klein
) pdata = tps65090_parse_dt_charger_data(pdev); if (!pdata) { LGTM Acked-by: Rhyland Klein rkl...@nvidia.com -- nvpublic -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info

[Patch V2] spi/tegra114: Correct support for cs_change

2013-09-26 Thread Rhyland Klein
driver. Signed-off-by: Rhyland Klein --- v2: - Split start_transfer_one into setup & start, now setup it always safe to call, and we can simplify the checks for a transfer with no length. - removed unnecessary whitespace changes - I also cleaned up the parame

[Patch V4] drivers: power: Add support for bq24735 charger

2013-09-26 Thread Rhyland Klein
From: Darbha Sriharsha Adds support for the bq24735 charger chipset. The bq24735 is a high-efficiency, synchronous battery charger. It allows control of the charging current, input current, and the charger voltage DAC's through SMBus. Signed-off-by: Darbha Sriharsha Signed-off-by: Rhyland

[Patch V4] drivers: power: Add support for bq24735 charger

2013-09-26 Thread Rhyland Klein
dsrihar...@nvidia.com Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v4: - Added GPIO # to dev_err when gpio_request fails, for verbosity. v3: *Note: I decided to maintain non-DT support, but tried to do it in the most clean manner using the suggestions from Thierry Reding. - Simplified devicetree

[Patch V2] spi/tegra114: Correct support for cs_change

2013-09-26 Thread Rhyland Klein
driver. Signed-off-by: Rhyland Klein rkl...@nvidia.com --- v2: - Split start_transfer_one into setup start, now setup it always safe to call, and we can simplify the checks for a transfer with no length. - removed unnecessary whitespace changes - I also cleaned up the parameters

[Patch V3] drivers: power: Add support for bq24735 charger

2013-09-24 Thread Rhyland Klein
From: Darbha Sriharsha Adds support for the bq24735 charger chipset. The bq24735 is a high-efficiency, synchronous battery charger. It allows control of the charging current, input current, and the charger voltage DAC's through SMBus. Signed-off-by: Darbha Sriharsha Signed-off-by: Rhyland

Re: [Patch V2] drivers: power: Add support for bq24735 charger

2013-09-24 Thread Rhyland Klein
On 9/20/2013 3:53 AM, Thierry Reding wrote: + name = charger_device->pdata->name; + if (!name) { + name = kasprintf(GFP_KERNEL, "bq24735-%s", + dev_name(>dev)); >>> >>> Won't the device name already include bq24735 because of the

Re: [Patch V2] drivers: power: Add support for bq24735 charger

2013-09-24 Thread Rhyland Klein
On 9/23/2013 6:05 PM, Stephen Warren wrote: > On 09/23/2013 04:01 PM, Rhyland Klein wrote: >> On 9/23/2013 5:53 PM, Stephen Warren wrote: >>> On 09/19/2013 10:18 AM, Rhyland Klein wrote: >>>> Adding driver support for bq24735 charger chipset. >>> >>>

Re: [RESEND] spi/tegra114: Correct support for cs_change

2013-09-24 Thread Rhyland Klein
On 9/23/2013 7:08 PM, Trent Piepho wrote: > On Mon, Sep 23, 2013 at 2:14 PM, Stephen Warren wrote: >> >> That sounds broken. Normally, shouldn't CS assert before a transaction, >> stay asserted during a transaction, then deassert after the transaction? >> It shouldn't rise and fall very quickly

Re: [RESEND] spi/tegra114: Correct support for cs_change

2013-09-24 Thread Rhyland Klein
On 9/23/2013 7:08 PM, Trent Piepho wrote: On Mon, Sep 23, 2013 at 2:14 PM, Stephen Warren swar...@wwwdotorg.org wrote: That sounds broken. Normally, shouldn't CS assert before a transaction, stay asserted during a transaction, then deassert after the transaction? It shouldn't rise and fall

Re: [Patch V2] drivers: power: Add support for bq24735 charger

2013-09-24 Thread Rhyland Klein
On 9/23/2013 6:05 PM, Stephen Warren wrote: On 09/23/2013 04:01 PM, Rhyland Klein wrote: On 9/23/2013 5:53 PM, Stephen Warren wrote: On 09/19/2013 10:18 AM, Rhyland Klein wrote: Adding driver support for bq24735 charger chipset. diff --git a/Documentation/devicetree/bindings/power_supply/ti

Re: [Patch V2] drivers: power: Add support for bq24735 charger

2013-09-24 Thread Rhyland Klein
On 9/20/2013 3:53 AM, Thierry Reding wrote: + name = charger_device-pdata-name; + if (!name) { + name = kasprintf(GFP_KERNEL, bq24735-%s, + dev_name(client-dev)); Won't the device name already include bq24735 because of the driver name? In

[Patch V3] drivers: power: Add support for bq24735 charger

2013-09-24 Thread Rhyland Klein
dsrihar...@nvidia.com Signed-off-by: Rhyland Klein rkl...@nvidia.com --- *Note: I decided to maintain non-DT support, but tried to do it in the most clean manner using the suggestions from Thierry Reding. v3: - Simplified devicetree bindings for charger current/voltage and input current - added

Re: [Patch V2] drivers: power: Add support for bq24735 charger

2013-09-23 Thread Rhyland Klein
On 9/23/2013 5:53 PM, Stephen Warren wrote: > On 09/19/2013 10:18 AM, Rhyland Klein wrote: >> Adding driver support for bq24735 charger chipset. > >> diff --git a/Documentation/devicetree/bindings/power_supply/ti,bq24735.txt >> b/Documentation/devicetree/bindings/pow

Re: [RESEND] spi/tegra114: Correct support for cs_change

2013-09-23 Thread Rhyland Klein
On 9/23/2013 3:58 PM, Stephen Warren wrote: > On 09/23/2013 01:48 PM, Rhyland Klein wrote: >> On 9/23/2013 2:51 PM, Stephen Warren wrote: >>> On 09/18/2013 12:17 PM, Rhyland Klein wrote: >>>> The tegra114 driver wasn't currently handling the cs_change functionali

Re: [RESEND] spi/tegra114: Correct support for cs_change

2013-09-23 Thread Rhyland Klein
On 9/23/2013 2:51 PM, Stephen Warren wrote: > On 09/18/2013 12:17 PM, Rhyland Klein wrote: >> The tegra114 driver wasn't currently handling the cs_change functionality. >> It is meant to invert normal behavior, and we were only using it to possibly >> delay at the end of a t

Re: [RESEND] spi/tegra114: Correct support for cs_change

2013-09-23 Thread Rhyland Klein
On 9/23/2013 2:51 PM, Stephen Warren wrote: On 09/18/2013 12:17 PM, Rhyland Klein wrote: The tegra114 driver wasn't currently handling the cs_change functionality. It is meant to invert normal behavior, and we were only using it to possibly delay at the end of a transfer. I don't really

Re: [RESEND] spi/tegra114: Correct support for cs_change

2013-09-23 Thread Rhyland Klein
On 9/23/2013 3:58 PM, Stephen Warren wrote: On 09/23/2013 01:48 PM, Rhyland Klein wrote: On 9/23/2013 2:51 PM, Stephen Warren wrote: On 09/18/2013 12:17 PM, Rhyland Klein wrote: The tegra114 driver wasn't currently handling the cs_change functionality. It is meant to invert normal behavior

Re: [Patch V2] drivers: power: Add support for bq24735 charger

2013-09-23 Thread Rhyland Klein
On 9/23/2013 5:53 PM, Stephen Warren wrote: On 09/19/2013 10:18 AM, Rhyland Klein wrote: Adding driver support for bq24735 charger chipset. diff --git a/Documentation/devicetree/bindings/power_supply/ti,bq24735.txt b/Documentation/devicetree/bindings/power_supply/ti,bq24735.txt +Optional

Re: [Patch V2] drivers: power: Add support for bq24735 charger

2013-09-20 Thread Rhyland Klein
On 9/20/2013 3:53 AM, Thierry Reding wrote: > * PGP Signed by an unknown key > > On Thu, Sep 19, 2013 at 04:45:11PM -0400, Rhyland Klein wrote: >> On 9/19/2013 4:27 PM, Thierry Reding wrote: >>>> Old Signed by an unknown key >>> >>> On Thu, Sep 19,

Re: [Patch V2] drivers: power: Add support for bq24735 charger

2013-09-20 Thread Rhyland Klein
On 9/20/2013 3:53 AM, Thierry Reding wrote: * PGP Signed by an unknown key On Thu, Sep 19, 2013 at 04:45:11PM -0400, Rhyland Klein wrote: On 9/19/2013 4:27 PM, Thierry Reding wrote: Old Signed by an unknown key On Thu, Sep 19, 2013 at 12:18:33PM -0400, Rhyland Klein wrote: From: Darbha

<    1   2   3   4   5   6   7   8   >