public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] regulator: palmas: fix typo in enable_reg calculation
@ 2014-06-23 20:53 Stephen Warren
  2014-06-23 22:28 ` Nishanth Menon
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Stephen Warren @ 2014-06-23 20:53 UTC (permalink / raw)
  To: Liam Girdwood, Mark Brown
  Cc: linux-kernel, Stephen Warren, Alex Courbot, Keerthy,
	Nishanth Menon, linux-omap, linux-tegra

From: Stephen Warren <swarren@nvidia.com>

When setting up .enable_reg for an SMPS regulator, presumably we should
call PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, ...) rather than using
LDO_BASE. This change makes the LCD panel and HDMI work again on the
NVIDIA Dalmore board anyway.

Cc: Alex Courbot <gnurou@gmail.com>
Cc: Keerthy <j-keerthy@ti.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: linux-omap@vger.kernel.org
Cc: linux-tegra@vger.kernel.org
Fixes: 318dbb02b50c ("regulator: palmas: Fix SMPS enable/disable/is_enabled")
Fixes: dbabd624d4eec50b6 ("regulator: palmas: Reemove open coded functions with helper functions")
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 drivers/regulator/palmas-regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c
index 3c861d5f9245..93b4ad842901 100644
--- a/drivers/regulator/palmas-regulator.c
+++ b/drivers/regulator/palmas-regulator.c
@@ -970,7 +970,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
 					PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK;
 
 			pmic->desc[id].enable_reg =
-					PALMAS_BASE_TO_REG(PALMAS_LDO_BASE,
+					PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE,
 						palmas_regs_info[id].ctrl_addr);
 			pmic->desc[id].enable_mask =
 					PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK;
-- 
1.8.1.5


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] regulator: palmas: fix typo in enable_reg calculation
  2014-06-23 20:53 [PATCH] regulator: palmas: fix typo in enable_reg calculation Stephen Warren
@ 2014-06-23 22:28 ` Nishanth Menon
  2014-06-24  0:11 ` Alexandre Courbot
  2014-06-24 11:01 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Nishanth Menon @ 2014-06-23 22:28 UTC (permalink / raw)
  To: Stephen Warren, Liam Girdwood, Mark Brown
  Cc: linux-kernel, Stephen Warren, Alex Courbot, Keerthy, linux-omap,
	linux-tegra

On 06/23/2014 03:53 PM, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> When setting up .enable_reg for an SMPS regulator, presumably we should
> call PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, ...) rather than using
> LDO_BASE. This change makes the LCD panel and HDMI work again on the
> NVIDIA Dalmore board anyway.
>
> Cc: Alex Courbot <gnurou@gmail.com>
> Cc: Keerthy <j-keerthy@ti.com>
> Cc: Nishanth Menon <nm@ti.com>
> Cc: linux-omap@vger.kernel.org
> Cc: linux-tegra@vger.kernel.org
> Fixes: 318dbb02b50c ("regulator: palmas: Fix SMPS enable/disable/is_enabled")
> Fixes: dbabd624d4eec50b6 ("regulator: palmas: Reemove open coded functions with helper functions")
> Signed-off-by: Stephen Warren <swarren@nvidia.com>
> ---
>   drivers/regulator/palmas-regulator.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/regulator/palmas-regulator.c b/drivers/regulator/palmas-regulator.c
> index 3c861d5f9245..93b4ad842901 100644
> --- a/drivers/regulator/palmas-regulator.c
> +++ b/drivers/regulator/palmas-regulator.c
> @@ -970,7 +970,7 @@ static int palmas_regulators_probe(struct platform_device *pdev)
>   					PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK;
>
>   			pmic->desc[id].enable_reg =
> -					PALMAS_BASE_TO_REG(PALMAS_LDO_BASE,
> +					PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE,
>   						palmas_regs_info[id].ctrl_addr);
>   			pmic->desc[id].enable_mask =
>   					PALMAS_SMPS12_CTRL_MODE_ACTIVE_MASK;
>


Uggh... my bad..

Thanks for catching this.

Acked-by: Nishanth Menon <nm@ti.com>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] regulator: palmas: fix typo in enable_reg calculation
  2014-06-23 20:53 [PATCH] regulator: palmas: fix typo in enable_reg calculation Stephen Warren
  2014-06-23 22:28 ` Nishanth Menon
@ 2014-06-24  0:11 ` Alexandre Courbot
  2014-06-24 11:01 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Alexandre Courbot @ 2014-06-24  0:11 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Liam Girdwood, Mark Brown, Linux Kernel Mailing List,
	Stephen Warren, Keerthy, Nishanth Menon, linux-omap,
	linux-tegra@vger.kernel.org

On Tue, Jun 24, 2014 at 5:53 AM, Stephen Warren <swarren@wwwdotorg.org> wrote:
> From: Stephen Warren <swarren@nvidia.com>
>
> When setting up .enable_reg for an SMPS regulator, presumably we should
> call PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, ...) rather than using
> LDO_BASE. This change makes the LCD panel and HDMI work again on the
> NVIDIA Dalmore board anyway.

Tested-by: Alexandre Courbot <acourbot@nvidia.com>

Interestingly the first fix was enough for Tegra Note 7's panel -
probably due to the fact the panel was already on when the kernel took
over.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] regulator: palmas: fix typo in enable_reg calculation
  2014-06-23 20:53 [PATCH] regulator: palmas: fix typo in enable_reg calculation Stephen Warren
  2014-06-23 22:28 ` Nishanth Menon
  2014-06-24  0:11 ` Alexandre Courbot
@ 2014-06-24 11:01 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2014-06-24 11:01 UTC (permalink / raw)
  To: Stephen Warren
  Cc: Liam Girdwood, linux-kernel, Stephen Warren, Alex Courbot,
	Keerthy, Nishanth Menon, linux-omap, linux-tegra

[-- Attachment #1: Type: text/plain, Size: 381 bytes --]

On Mon, Jun 23, 2014 at 02:53:25PM -0600, Stephen Warren wrote:
> From: Stephen Warren <swarren@nvidia.com>
> 
> When setting up .enable_reg for an SMPS regulator, presumably we should
> call PALMAS_BASE_TO_REG(PALMAS_SMPS_BASE, ...) rather than using
> LDO_BASE. This change makes the LCD panel and HDMI work again on the
> NVIDIA Dalmore board anyway.

Applied, thanks.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-24 11:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-23 20:53 [PATCH] regulator: palmas: fix typo in enable_reg calculation Stephen Warren
2014-06-23 22:28 ` Nishanth Menon
2014-06-24  0:11 ` Alexandre Courbot
2014-06-24 11:01 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox