<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/git/stable/linux.git/drivers/watchdog, branch linux-2.6.38.y</title>
<subtitle>Linux kernel stable tree</subtitle>
<id>https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-2.6.38.y</id>
<link rel='self' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/atom?h=linux-2.6.38.y'/>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/'/>
<updated>2011-04-14T20:02:04+00:00</updated>
<entry>
<title>watchdog: sp5100_tco.c: Check if firmware has set correct value in tcobase.</title>
<updated>2011-04-14T20:02:04+00:00</updated>
<author>
<name>Yinghai Lu</name>
<email>yinghai@kernel.org</email>
</author>
<published>2011-03-17T03:01:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=7910591c1c2663dd3f421f5a80fbd5c439af3aef'/>
<id>urn:sha1:7910591c1c2663dd3f421f5a80fbd5c439af3aef</id>
<content type='text'>
commit 90d241edd13bdeef70f264b569f7e150bf23621e upstream.

Stefano found SP5100 TCO watchdog driver using wrong address.

[    9.148536] SP5100 TCO timer: SP5100 TCO WatchDog Timer Driver v0.01
[    9.148628] DEBUG __ioremap_caller WARNING address=b8fe00 size=8 valid=1 reserved=1

and e820 said that range is RAM.

We should check if we can use that reading out. BIOS could just program wrong address there.

Reported-by: Stefano Stabellini &lt;stefano.stabellini@eu.citrix.com&gt;
Signed-off-by:Yinghai Lu &lt;yinghai@kernel.org&gt;
Acked-by: Mike Waychison &lt;mikew@google.com&gt;
Tested-by: Konrad Rzeszutek Wilk &lt;konrad.wilk@oracle.com&gt;
Signed-off-by: Wim Van Sebroeck &lt;wim@iguana.be&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>watchdog: Convert release_resource to release_region/release_mem_region</title>
<updated>2011-04-14T20:02:04+00:00</updated>
<author>
<name>Julia Lawall</name>
<email>julia@diku.dk</email>
</author>
<published>2011-02-26T16:34:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=984814d5a002305f9f53ec8e8d3bbefc30a13583'/>
<id>urn:sha1:984814d5a002305f9f53ec8e8d3bbefc30a13583</id>
<content type='text'>
commit f712eacf02ecfbf4f1686addb8c569841549b0b7 upstream.

Request_mem_region should be used with release_mem_region, not
release_resource.

In pnx4008_wdt.c, a missing clk_put is added as well.

The semantic match that finds the first problem is as follows:
(http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@@
expression x,E;
@@
*x = request_mem_region(...)
... when != release_mem_region(x)
    when != x = E
* release_resource(x);
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
Signed-off-by: Wim Van Sebroeck &lt;wim@iguana.be&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>watchdog: s3c2410_wdt.c: Convert release_resource to release_region/release_mem_region</title>
<updated>2011-04-14T20:02:03+00:00</updated>
<author>
<name>Julia Lawall</name>
<email>julia@diku.dk</email>
</author>
<published>2011-02-26T16:34:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=665c7153a7d73d524ed6b4783c3bd8a521285a9b'/>
<id>urn:sha1:665c7153a7d73d524ed6b4783c3bd8a521285a9b</id>
<content type='text'>
commit f72401e94d159bc4b2beab51d74e956da2c32e0a upstream.

Request_mem_region should be used with release_mem_region, not
release_resource.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// &lt;smpl&gt;
@@
expression x,E;
@@
*x = request_mem_region(...)
... when != release_mem_region(x)
    when != x = E
* release_resource(x);
// &lt;/smpl&gt;

Signed-off-by: Julia Lawall &lt;julia@diku.dk&gt;
Signed-off-by: Wim Van Sebroeck &lt;wim@iguana.be&gt;
Signed-off-by: Greg Kroah-Hartman &lt;gregkh@suse.de&gt;

</content>
</entry>
<entry>
<title>watchdog: hpwdt: eliminate section mismatch warning</title>
<updated>2011-03-14T10:44:31+00:00</updated>
<author>
<name>Axel Lin</name>
<email>axel.lin@gmail.com</email>
</author>
<published>2011-03-02T03:49:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b77b708868c23737a4d25a474736cc924deb44f1'/>
<id>urn:sha1:b77b708868c23737a4d25a474736cc924deb44f1</id>
<content type='text'>
hpwdt_init_nmi_decoding() is called in hpwdt_init_one error handling,
thus remove the  __devexit annotation of hpwdt_exit_nmi_decoding().

This patch fixes below warning:

WARNING: drivers/watchdog/hpwdt.o(.devinit.text+0x36f): Section mismatch in reference from the function hpwdt_init_one() to the function .devexit.text:hpwdt_exit_nmi_decoding()
The function __devinit hpwdt_init_one() references
a function __devexit hpwdt_exit_nmi_decoding().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
hpwdt_exit_nmi_decoding() so it may be used outside an exit section.

Signed-off-by: Axel Lin &lt;axel.lin@gmail.com&gt;
Acked-by: Thomas Mingarelli &lt;Thomas.Mingarelli@hp.com&gt;
Signed-off-by: Wim Van Sebroeck &lt;wim@iguana.be&gt;

</content>
</entry>
<entry>
<title>watchdog: w83697ug_wdt: Fix set bit 0 to activate GPIO2</title>
<updated>2011-03-14T10:40:30+00:00</updated>
<author>
<name>Wim Van Sebroeck</name>
<email>wim@iguana.be</email>
</author>
<published>2011-02-21T19:28:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=943413c5b6e117a7eca029e3b07704d3b230d938'/>
<id>urn:sha1:943413c5b6e117a7eca029e3b07704d3b230d938</id>
<content type='text'>
outb_p(c || 0x01, WDT_EFDR); -&gt; || should be |

Reported-By: Toralf Förster &lt;toralf.foerster@gmx.de&gt;
Signed-off-by: Wim Van Sebroeck &lt;wim@iguana.be&gt;

</content>
</entry>
<entry>
<title>watchdog: sch311x_wdt: fix printk condition</title>
<updated>2011-03-14T10:40:21+00:00</updated>
<author>
<name>Dan Carpenter</name>
<email>error27@gmail.com</email>
</author>
<published>2011-02-23T20:26:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6899a8e13f76f37029084c891312e2cfad1305c8'/>
<id>urn:sha1:6899a8e13f76f37029084c891312e2cfad1305c8</id>
<content type='text'>
"==" has higher precedence than "&amp;".  Since
if (sch311x_sio_inb(sio_config_port, 0x30) &amp; (0x01 == 0)) is always
false the message is never printed.

Signed-off-by: Dan Carpenter &lt;error27@gmail.com&gt;
Signed-off-by: Wim Van Sebroeck &lt;wim@iguana.be&gt;

</content>
</entry>
<entry>
<title>watchdog: sch311x_wdt: Fix LDN active check</title>
<updated>2011-03-14T10:39:53+00:00</updated>
<author>
<name>Wim Van Sebroeck</name>
<email>wim@iguana.be</email>
</author>
<published>2011-02-21T19:09:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=a450c786a5769745cc8fa873a66ed3c377875ead'/>
<id>urn:sha1:a450c786a5769745cc8fa873a66ed3c377875ead</id>
<content type='text'>
if (sch311x_sio_inb(sio_config_port, 0x30) &amp;&amp; 0x01 == 0) -&gt; &amp;&amp; should be &amp;

Reported-By: Toralf Förster &lt;toralf.foerster@gmx.de&gt;
Signed-off-by: Wim Van Sebroeck &lt;wim@iguana.be&gt;

</content>
</entry>
<entry>
<title>watchdog: cpwd: Fix buffer-overflow</title>
<updated>2011-03-14T10:39:27+00:00</updated>
<author>
<name>Wim Van Sebroeck</name>
<email>wim@iguana.be</email>
</author>
<published>2011-02-21T10:52:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=bbd562d717a84c6464211e8bd5efa0d9e25edc6d'/>
<id>urn:sha1:bbd562d717a84c6464211e8bd5efa0d9e25edc6d</id>
<content type='text'>
cppcheck-1.47 reports:
[drivers/watchdog/cpwd.c:650]: (error) Buffer access out-of-bounds: p.devs

The source code is
	for (i = 0; i &lt; 4; i++) {
		misc_deregister(&amp;p-&gt;devs[i].misc);

where devs is defined as WD_NUMDEVS big and WD_NUMDEVS is equal to 3.
So the 4 should be a 3 or WD_NUMDEVS.

Reported-By: David Binderman
Signed-off-by: Wim Van Sebroeck &lt;wim@iguana.be&gt;

</content>
</entry>
<entry>
<title>watchdog: sbc_fitpc2_wdt, fix crash on systems without DMI_BOARD_NAME</title>
<updated>2011-03-09T21:33:37+00:00</updated>
<author>
<name>Jiri Slaby</name>
<email>jslaby@suse.cz</email>
</author>
<published>2011-02-28T09:16:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=d406577526a611e6be1f6b1cfeaf094dd95fa439'/>
<id>urn:sha1:d406577526a611e6be1f6b1cfeaf094dd95fa439</id>
<content type='text'>
Some systems don't provide DMI_BOARD_NAME in their DMI tables. Avoid
crash in such situations in fitpc2_wdt_init.

The fix is to check if the dmi_get_system_info return value is NULL.

The oops:
BUG: unable to handle kernel NULL pointer dereference at           (null)
IP: [&lt;ffffffff81253ae6&gt;] strstr+0x26/0xa0
PGD 3966e067 PUD 39605067 PMD 0
Oops: 0000 [#1] SMP
last sysfs file: /sys/devices/system/cpu/cpu1/cache/index2/shared_cpu_map
CPU 1
Modules linked in: ...
Pid: 1748, comm: modprobe Not tainted 2.6.37-22-default #1 /Bochs
RIP: 0010:[&lt;ffffffff81253ae6&gt;]  [&lt;ffffffff81253ae6&gt;] strstr+0x26/0xa0
RSP: 0018:ffff88003ad73f18  EFLAGS: 00010206
RAX: 0000000000000000 RBX: 00000000ffffffed RCX: 00000000ffffffff
RDX: ffffffffa003f4cc RSI: ffffffffa003f4c2 RDI: 0000000000000000
...
CR2: 0000000000000000 CR3: 000000003b7ac000 CR4: 00000000000006e0
...
Process modprobe (pid: 1748, threadinfo ffff88003ad72000, task ffff88002e6365c0)
Stack: ...
Call Trace:
 [&lt;ffffffffa004201f&gt;] fitpc2_wdt_init+0x1f/0x13c [sbc_fitpc2_wdt]
 [&lt;ffffffff810002da&gt;] do_one_initcall+0x3a/0x170
...
Code: f3 c3 0f 1f 00 80 3e 00 53 48 89 f8 74 1b 48 89 f2 0f 1f 40 00 48 83 c2 01 80 3a 00 75 f7 49 89 d0 48 89 f8 49 29 f0 75 02 5b c3 &lt;80&gt; 3f 00 74 0e 0f 1f 44 00 00 48 83 c0 01 80 38 00 75 f7 49 89

Signed-off-by: Jiri Slaby &lt;jslaby@suse.cz&gt;
Signed-off-by: Wim Van Sebroeck &lt;wim@iguana.be&gt;

</content>
</entry>
<entry>
<title>m68knommu: Rename m548x_wdt.c to m54xx_wdt.c</title>
<updated>2011-02-08T05:07:45+00:00</updated>
<author>
<name>Philippe De Muyter</name>
<email>phdm@macqel.be</email>
</author>
<published>2011-01-21T23:21:25+00:00</published>
<link rel='alternate' type='text/html' href='https://git.rulkc.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=4157a04d5d7def8661559cd98eb285a520d50075'/>
<id>urn:sha1:4157a04d5d7def8661559cd98eb285a520d50075</id>
<content type='text'>
All m548x files were renamed to m54xx, except m548x_wdt.c.  Fix that.

Signed-off-by: Philippe De Muyter &lt;phdm@macqel.be&gt;
Signed-off-by: Greg Ungerer &lt;gerg@uclinux.org&gt;
</content>
</entry>
</feed>
