<feed xmlns='http://www.w3.org/2005/Atom'>
<title>user/sven/linux.git/drivers/rtc/rtc-spear.c, branch v3.4.83</title>
<subtitle>Linux Kernel
</subtitle>
<id>https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.4.83</id>
<link rel='self' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/atom?h=v3.4.83'/>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/'/>
<updated>2012-07-16T16:04:44Z</updated>
<entry>
<title>drivers/rtc/rtc-spear.c: fix use-after-free in spear_rtc_remove()</title>
<updated>2012-07-16T16:04:44Z</updated>
<author>
<name>Devendra Naga</name>
<email>devendra.aaru@gmail.com</email>
</author>
<published>2012-07-11T21:01:53Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=0bf51a8f8756511b382aac13a3c1c7abeb8b0bec'/>
<id>urn:sha1:0bf51a8f8756511b382aac13a3c1c7abeb8b0bec</id>
<content type='text'>
commit 2a643893e50fde71d7ba84b5592ec61b467b9ab6 upstream.

`config' is freed and is then used in the rtc_device_unregister() call,
causing a kernel panic.

Signed-off-by: Devendra Naga &lt;devendra.aaru@gmail.com&gt;
Reviewed-by: Viresh Kumar &lt;viresh.linux@gmail.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;

</content>
</entry>
<entry>
<title>rtc/rtc-spear: call platform_set_drvdata() before registering rtc device</title>
<updated>2012-03-23T23:58:39Z</updated>
<author>
<name>Viresh Kumar</name>
<email>viresh.kumar@st.com</email>
</author>
<published>2012-03-23T22:02:30Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=ee6c54ca64416c75aa6f5021e139f270192bae49'/>
<id>urn:sha1:ee6c54ca64416c75aa6f5021e139f270192bae49</id>
<content type='text'>
rtc_device_register() calls rtc-spear routines internally.  These
routines call dev_get_drvdata() to get struct spear_rtc_config.
Currently, platform_set_drvdata is called after rtc device is
registered.  This causes system to crash, as dev_get_drvdata returns
NULL.

For this we need to call platform_set_drvdata() before registering rtc
device.  This requires further cleanup, that leads to removal of
dev_set_drvdata on rtc-&gt;dev, which was just not required at all.

Also, we change the parameter to request_irq and pass pointer to config
instead of pointer to rtc struct.

This patch brings all above changes.

Signed-off-by: Viresh Kumar &lt;viresh.kumar@st.com&gt;
Cc: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Cc: Deepak Sikri &lt;deepak.sikri@st.com&gt;
Acked-by: Rajeev Kumar &lt;rajeev-dlh.kumar@st.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>rtc/spear: fix for RTC_AIE_ON and RTC_AIE_OFF ioctl errors</title>
<updated>2012-03-23T23:58:38Z</updated>
<author>
<name>Shiraz Hashim</name>
<email>shiraz.hashim@st.com</email>
</author>
<published>2012-03-23T22:02:29Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=131f8b75f1c00a5a822ff2103db588466e942490'/>
<id>urn:sha1:131f8b75f1c00a5a822ff2103db588466e942490</id>
<content type='text'>
Define API for '.alarm_irq_enable' to enable and disable alarm irq. This
is required by the framework else RTC_AIE_ON and RTC_AIE_OFF ioctls
return errors.

Signed-off-by: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Signed-off-by: Viresh Kumar &lt;viresh.kumar@st.com&gt;
Cc: Deepak Sikri &lt;deepak.sikri@st.com&gt;
Acked-by: Rajeev Kumar &lt;rajeev-dlh.kumar@st.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>rtc-spear: fix for balancing the enable_irq_wake in Power Mgmt</title>
<updated>2012-03-23T23:58:38Z</updated>
<author>
<name>Deepak Sikri</name>
<email>deepak.sikri@st.com</email>
</author>
<published>2012-03-23T22:02:29Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=cd0e08a8c9fb9c50d182d20e3bc52452c1ce1bfb'/>
<id>urn:sha1:cd0e08a8c9fb9c50d182d20e3bc52452c1ce1bfb</id>
<content type='text'>
Handle the fix for unbalanced irq for the cases when enable_irq_wake
fails, and a warning related to same is displayed on the console.  The
workaround is handled at the driver level.

Signed-off-by: Deepak Sikri &lt;deepak.sikri@st.com&gt;
Signed-off-by: Viresh Kumar &lt;viresh.kumar@st.com&gt;
Acked-by: Rajeev Kumar &lt;rajeev-dlh.kumar@st.com&gt;
Cc: Shiraz Hashim &lt;shiraz.hashim@st.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>rtc: convert drivers/rtc/* to use module_platform_driver()</title>
<updated>2012-01-11T00:30:53Z</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2012-01-10T23:10:48Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=0c4eae66591a292fee70051ea363a8d27aa54102'/>
<id>urn:sha1:0c4eae66591a292fee70051ea363a8d27aa54102</id>
<content type='text'>
This patch converts the drivers in drivers/rtc/* to use the
module_platform_driver() macro which makes the code smaller and a bit
simpler.

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Acked-by: Mark Brown &lt;broonie@opensource.wolfsonmicro.com&gt;
Acked-by: Mike Frysinger &lt;vapier@gentoo.org&gt;
Acked-by: Guan Xuetao &lt;gxt@mprc.pku.edu.cn&gt;
Acked-by: Linus Walleij &lt;linus.walleij@linaro.org&gt;
Acked-by: Haojian Zhuang &lt;haojian.zhuang@gmail.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Cc: Srinidhi Kasagar &lt;srinidhi.kasagar@stericsson.com&gt;
Cc: Lars-Peter Clausen &lt;lars@metafoo.de&gt;
Cc: Ben Dooks &lt;ben@simtec.co.uk&gt;
Cc: John Stultz &lt;john.stultz@linaro.org&gt;
Acked-by: Jean-Christophe PLAGNIOL-VILLARD &lt;plagnioj@jcrosoft.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>rtc: add support for spear rtc</title>
<updated>2011-05-27T00:12:33Z</updated>
<author>
<name>Rajeev Kumar</name>
<email>rajeev-dlh.kumar@st.com</email>
</author>
<published>2011-05-26T23:25:09Z</published>
<link rel='alternate' type='text/html' href='https://git.stealer.net/cgit.cgi/user/sven/linux.git/commit/?id=0942a71e435f5198921e8f072540f208f0176542'/>
<id>urn:sha1:0942a71e435f5198921e8f072540f208f0176542</id>
<content type='text'>
Signed-off-by: Rajeev Kumar &lt;rajeev-dlh.kumar@st.com&gt;
Signed-off-by: Viresh Kumar &lt;viresh.kumar@st.com&gt;
Cc: Alessandro Zummo &lt;a.zummo@towertech.it&gt;
Signed-off-by: Andrew Morton &lt;akpm@linux-foundation.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
</feed>
