Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1473575

Re: Applied "regulator: tps65218: do not disable DCDC3 during poweroff on broken PMICs" to the regulator tree

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Lee Jones <lee.jones@linaro.org>
Newsgroups linux.kernel
Subject Re: Applied "regulator: tps65218: do not disable DCDC3 during poweroff on broken PMICs" to the regulator tree
Date Wed, 31 Aug 2016 17:00:01 +0200
Message-ID <scf9D-3I8-1@gated-at.bofh.it> (permalink)
References <rM3dL-5ZG-7@gated-at.bofh.it> <s4HZ8-1pa-29@gated-at.bofh.it>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=nV/N5+m82/0qnjuLyZ60L/rLDehnc+7rFSpsAzC7iMI=; b=H6J+S3QYSZ3f9ckrEJL6CcGb/TPPYkDC0XfYcZBEdVY1Cy073AE6SXTRrBrZZ1s2sp 4202IaANnl2l0rbCckmXVLwMY2+HDIH6HxxANJTw6qmA5wsRwE4HMW+FY7GLPAcPq4Kq wB423KnakYF15L4vQ5ITPKP4zR5SGzn6ITPVQ=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=nV/N5+m82/0qnjuLyZ60L/rLDehnc+7rFSpsAzC7iMI=; b=EOQMwnL57XZ85bo+q1adUUiiUN9JUvm5BLiLl2Ql4Z3ROF7BEi2LoOIaXD8yNs2qd2 +dfPWXJJaEpJDGz+u/zwF7laCkBkbWctYxJ+EcGCsUPqep2CsN0WUjhxlfwcBjK9NlD6 fT/XTcq22GjbiwnoiSfjxw7yX1OCW/JhET/kXXjIt8N7TKc6kFZFSZUS9Z4UY7xA3YgW RzYBlkEC3h9e2Z9vUs8W6TVxEdYBQS1uROxN21QtXOXfu05+t8hmHdWYXDorvd0YxffJ 6jRyEP00AehO2+BD6Ddu/DcevHPBjwSNjjlnRypo/jIHeDPDklIdZ/lOrF9CgcD0x+6y ZPqw==
X-Gm-Message-State AE9vXwNZcUboP/6j5sdQWj0g1sHjepk70R7y60g2mAdWY8QHy2LLdoKrPZWyCtDkraa3DNn5
X-Received by 10.28.154.208 with SMTP id c199mr22451691wme.102.1472655568075; Wed, 31 Aug 2016 07:59:28 -0700 (PDT)
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent Mutt/1.6.2 (2016-07-01)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 94
Organization linux.* mail to news gateway
X-Original-Cc Tero Kristo <t-kristo@ti.com>, Dave Gerlach <d-gerlach@ti.com>, Keerthy <j-keerthy@ti.com>, tony@atomide.com, devicetree@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, russ.dill@ti.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk
X-Original-Date Wed, 31 Aug 2016 16:01:15 +0100
X-Original-Message-ID <20160831150115.GP9415@dell>
X-Original-References <1466412218-5906-9-git-send-email-j-keerthy@ti.com> <E1bXZja-0000XE-A6@debutante>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1473575

Show key headers only | View raw


On Wed, 10 Aug 2016, Mark Brown wrote:

> The patch
> 
>    regulator: tps65218: do not disable DCDC3 during poweroff on broken PMICs

Looks like I also need this patch.

Would you be kind enough to shoot me a pull-request please?

> has been applied to the regulator tree at
> 
>    git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git 
> 
> All being well this means that it will be integrated into the linux-next
> tree (usually sometime in the next 24 hours) and sent to Linus during
> the next merge window (or sooner if it is a bug fix), however if
> problems are discovered then the patch may be dropped or reverted.  
> 
> You may get further e-mails resulting from automated or manual testing
> and review of the tree, please engage with people reporting problems and
> send followup patches addressing any issues that are reported if needed.
> 
> If any updates are required or you are submitting further changes they
> should be sent as incremental updates against current git, existing
> patches will not be replaced.
> 
> Please add any relevant lists and maintainers to the CCs when replying
> to this mail.
> 
> Thanks,
> Mark
> 
> From 23a34f9d03a5d40a6234855bc069da370708cc9e Mon Sep 17 00:00:00 2001
> From: Tero Kristo <t-kristo@ti.com>
> Date: Wed, 10 Aug 2016 17:53:55 +0530
> Subject: [PATCH] regulator: tps65218: do not disable DCDC3 during poweroff on
>  broken PMICs
> 
> Some versions of tps65218 do not seem to support poweroff modes properly
> if DCDC3 regulator is shut-down. Thus, keep it enabled even during
> poweroff if the version info matches the broken silicon revision.
> 
> Signed-off-by: Tero Kristo <t-kristo@ti.com>
> Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
> Signed-off-by: Keerthy <j-keerthy@ti.com>
> Acked-by: Lee Jones <lee.jones@linaro.org>
> Signed-off-by: Mark Brown <broonie@kernel.org>
> ---
>  drivers/regulator/tps65218-regulator.c | 8 ++++++++
>  include/linux/mfd/tps65218.h           | 5 +++++
>  2 files changed, 13 insertions(+)
> 
> diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-regulator.c
> index d1e631d64a20..eb0f5b13841a 100644
> --- a/drivers/regulator/tps65218-regulator.c
> +++ b/drivers/regulator/tps65218-regulator.c
> @@ -180,6 +180,14 @@ static int tps65218_pmic_set_suspend_disable(struct regulator_dev *dev)
>  	if (rid < TPS65218_DCDC_1 || rid > TPS65218_LDO_1)
>  		return -EINVAL;
>  
> +	/*
> +	 * Certain revisions of TPS65218 will need to have DCDC3 regulator
> +	 * enabled always, otherwise an immediate system reboot will occur
> +	 * during poweroff.
> +	 */
> +	if (rid == TPS65218_DCDC_3 && tps->rev == TPS65218_REV_2_1)
> +		return 0;
> +
>  	if (!tps->info[rid]->strobe) {
>  		if (rid == TPS65218_DCDC_3)
>  			tps->info[rid]->strobe = 3;
> diff --git a/include/linux/mfd/tps65218.h b/include/linux/mfd/tps65218.h
> index 85e464e32c43..d1db9527fab5 100644
> --- a/include/linux/mfd/tps65218.h
> +++ b/include/linux/mfd/tps65218.h
> @@ -63,6 +63,11 @@
>  #define TPS65218_CHIPID_CHIP_MASK	0xF8
>  #define TPS65218_CHIPID_REV_MASK	0x07
>  
> +#define TPS65218_REV_1_0		0x0
> +#define TPS65218_REV_1_1		0x1
> +#define TPS65218_REV_2_0		0x2
> +#define TPS65218_REV_2_1		0x3
> +
>  #define TPS65218_INT1_VPRG		BIT(5)
>  #define TPS65218_INT1_AC		BIT(4)
>  #define TPS65218_INT1_PB		BIT(3)

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: Applied "regulator: tps65218: do not disable DCDC3 during  poweroff on broken PMICs" to the regulator tree Lee Jones <lee.jones@linaro.org> - 2016-08-31 17:00 +0200
  Re: Applied "regulator: tps65218: do not disable DCDC3 during  poweroff on broken PMICs" to the regulator tree Mark Brown <broonie@kernel.org> - 2016-09-01 12:10 +0200

csiph-web