<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/drivers/regulator, branch v3.2.38</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/drivers/regulator?h=v3.2.38</id>
<link rel='self' href='https://git.amat.us/linux/atom/drivers/regulator?h=v3.2.38'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2013-02-06T04:33:28Z</updated>
<entry>
<title>regulator: max8998: Ensure enough delay time for max8998_set_voltage_buck_time_sel</title>
<updated>2013-02-06T04:33:28Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2013-01-09T11:34:57Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e8d9897ff064b1683c11c15ea1296a67a45d77b0'/>
<id>urn:sha1:e8d9897ff064b1683c11c15ea1296a67a45d77b0</id>
<content type='text'>
commit 81d0a6ae7befb24c06f4aa4856af7f8d1f612171 upstream.

Use DIV_ROUND_UP to prevent truncation by integer division issue.
This ensures we return enough delay time.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
[bwh: Backported to 3.2: delay is done by driver, not returned to the caller]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>regulator: max8997: Use uV in voltage_map_desc</title>
<updated>2013-02-06T04:33:26Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@ingics.com</email>
</author>
<published>2012-12-28T09:09:03Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=31980f8fa9e57f23b301e91dfa79f7f5c517233d'/>
<id>urn:sha1:31980f8fa9e57f23b301e91dfa79f7f5c517233d</id>
<content type='text'>
commit bc3b7756b5ff66828acf7bc24f148d28b8d61108 upstream.

Current code does integer division (min_vol = min_uV / 1000) before pass
min_vol to max8997_get_voltage_proper_val().
So it is possible min_vol is truncated to a smaller value.

For example, if the request min_uV is 800900 for ldo.
min_vol = 800900 / 1000 = 800 (mV)
Then max8997_get_voltage_proper_val returns 800 mV for this case which is lower
than the requested voltage.

Use uV rather than mV in voltage_map_desc to prevent truncation by integer
division.

Signed-off-by: Axel Lin &lt;axel.lin@ingics.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
[bwh: Backported to 3.2:
 - Adjust context
 - voltage_map_desc also has an n_bits field]
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>regulator: wm831x: Set the new rather than old value for DVS VSEL</title>
<updated>2013-01-03T03:33:12Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-11-20T01:02:06Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=a651d51200ef80b1d65de782ff73f57cf9a65ff3'/>
<id>urn:sha1:a651d51200ef80b1d65de782ff73f57cf9a65ff3</id>
<content type='text'>
commit 13ae633cf729b0ecb677b75b04886ff8fada8fad upstream.

Reported-by: Guennadi Liakhovetski &lt;g.liakhovetski@gmx.de&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>regulator: core: Release regulator-regulator supplies on error</title>
<updated>2012-05-30T23:43:26Z</updated>
<author>
<name>Mark Brown</name>
<email>broonie@opensource.wolfsonmicro.com</email>
</author>
<published>2012-05-13T17:35:56Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e669d42fc1dd792d21d2d5d97c124dc0f6d147ea'/>
<id>urn:sha1:e669d42fc1dd792d21d2d5d97c124dc0f6d147ea</id>
<content type='text'>
commit e81dba85c6388dfabcb76cbc2b8bd02836a53ae5 upstream.

If we fail while registering a regulator make sure we release the supply
for the regulator if there is one.

Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Liam Girdwood &lt;lrg@ti.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>regulator: Fix the logic to ensure new voltage setting in valid range</title>
<updated>2012-05-20T21:56:29Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2012-04-11T12:53:58Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=42d66f95429ec18ea8d505fc1b90a32aa7d894e4'/>
<id>urn:sha1:42d66f95429ec18ea8d505fc1b90a32aa7d894e4</id>
<content type='text'>
commit f55205f4d4a8823a11bb8b37ef2ecbd78fb09463 upstream.

I think this is a typo.
To ensure new voltage setting won't greater than desc-&gt;max,
the equation should be desc-&gt;min + desc-&gt;step * new_val &lt;= desc-&gt;max.

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Ben Hutchings &lt;ben@decadent.org.uk&gt;
</content>
</entry>
<entry>
<title>regulator: Fix setting selector in tps6524x set_voltage function</title>
<updated>2012-03-19T16:02:34Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2012-03-08T02:02:17Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=f05bd11d184637bd83991277641bee78b8d1f732'/>
<id>urn:sha1:f05bd11d184637bd83991277641bee78b8d1f732</id>
<content type='text'>
commit f03570cf1709397ebe656608266b44ec772960c2 upstream.

Don't assign the voltage to selector.

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>regulator: fix the ldo configure according to 88pm860x spec</title>
<updated>2012-03-12T19:31:23Z</updated>
<author>
<name>Jett.Zhou</name>
<email>jtzhou@marvell.com</email>
</author>
<published>2012-02-23T11:52:08Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=8916bd55247c6f75c44c63a97cfa6e7bb2a5e63a'/>
<id>urn:sha1:8916bd55247c6f75c44c63a97cfa6e7bb2a5e63a</id>
<content type='text'>
commit 3380643b0eaa7ecf99c4f095bdfcb6e5df471616 upstream.

Signed-off-by: Jett.Zhou &lt;jtzhou@marvell.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>regulator: twl: fix twl4030 support for smps regulators</title>
<updated>2011-11-28T18:58:31Z</updated>
<author>
<name>Tero Kristo</name>
<email>t-kristo@ti.com</email>
</author>
<published>2011-11-28T14:53:19Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ba305e31e88ea5c2f598ff9fbc5424711a429e30'/>
<id>urn:sha1:ba305e31e88ea5c2f598ff9fbc5424711a429e30</id>
<content type='text'>
SMPS regulator voltage control differs from the one of the LDO ones.
Current TWL code was using LDO regulator ops for controlling the SMPS
regulators, which fails. This was fixed fixed by adding separate
regulator type which uses correct logic and calculations for the
voltage levels.

Signed-off-by: Tero Kristo &lt;t-kristo@ti.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Cc: stable@kernel.org
</content>
</entry>
<entry>
<title>regulator: fix use after free bug</title>
<updated>2011-11-28T14:44:38Z</updated>
<author>
<name>Lothar Waßmann</name>
<email>LW@KARO-electronics.de</email>
</author>
<published>2011-11-28T14:38:37Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=58fb5cf5d1edb7e306574833ee55d732918c89e3'/>
<id>urn:sha1:58fb5cf5d1edb7e306574833ee55d732918c89e3</id>
<content type='text'>
This is caused by dereferencing 'rdev' after device_unregister() in
the regulator_unregister() function.  'rdev' is freed by
device_unregister(), so it must not be dereferenced after this call.

[Edited commit message for legibility -- broonie]

Signed-off-by: Lothar Waßmann &lt;LW@KARO-electronics.de&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
</content>
</entry>
<entry>
<title>regulator: aat2870: Fix the logic of checking if no id is matched in aat2870_get_regulator</title>
<updated>2011-11-28T11:48:15Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2011-11-28T06:06:31Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=d4d6373c1109b11c8118340be97ae31b8f94d66a'/>
<id>urn:sha1:d4d6373c1109b11c8118340be97ae31b8f94d66a</id>
<content type='text'>
In current implementation, the pointer ri is not NULL if no id is matched.
Fix it by checking i == ARRAY_SIZE(aat2870_regulators) if no id is matched.

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Signed-off-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Cc: stable@kernel.org
</content>
</entry>
</feed>
