lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1259143495-9480-4-git-send-email-ext-juha.1.keski-saari@nokia.com>
Date:	Wed, 25 Nov 2009 12:04:55 +0200
From:	Juha Keski-Saari <ext-juha.1.keski-saari@...ia.com>
To:	lrg@...mlogic.co.uk, broonie@...nsource.wolfsonmicro.com,
	dbrownell@...rs.sourceforge.net, linux-kernel@...r.kernel.org
Cc:	peter.de-schrijver@...ia.com, eduardo.valentin@...ia.com,
	ext-juha.1.keski-saari@...ia.com
Subject: [PATCHv2 3/3] Define critical regulators as always_on

Defines VIO, VDD1, VDD2, VPLL1 and VINT* regulators as always_on by default
since they are critical to TWL and its master's functionality and should
be on in all cases where RegFW is used

Signed-off-by: Juha Keski-Saari <ext-juha.1.keski-saari@...ia.com>
---
 drivers/regulator/twl4030-regulator.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/drivers/regulator/twl4030-regulator.c b/drivers/regulator/twl4030-regulator.c
index 7029fb9..af53f35 100644
--- a/drivers/regulator/twl4030-regulator.c
+++ b/drivers/regulator/twl4030-regulator.c
@@ -456,6 +456,14 @@ static int twl4030reg_probe(struct platform_device *pdev)
 	c->valid_ops_mask &= REGULATOR_CHANGE_VOLTAGE
 				| REGULATOR_CHANGE_MODE
 				| REGULATOR_CHANGE_STATUS;
+	if (pdev->id == TWL4030_REG_VIO ||
+		pdev->id == TWL4030_REG_VDD1 ||
+		pdev->id == TWL4030_REG_VDD2 ||
+		pdev->id == TWL4030_REG_VPLL1 ||
+		pdev->id == TWL4030_REG_VINTANA1 ||
+		pdev->id == TWL4030_REG_VINTANA2 ||
+		pdev->id == TWL4030_REG_VINTDIG)
+		c->always_on = true;
 
 	rdev = regulator_register(&info->desc, &pdev->dev, initdata, info);
 	if (IS_ERR(rdev)) {
-- 
1.6.3.3

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ