]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: sp5100_tco: Write back the original value to reserved bits, instead of...
authorTakahisa Tanaka <mc74hc00@gmail.com>
Mon, 14 Jan 2013 02:01:58 +0000 (11:01 +0900)
committerWim Van Sebroeck <wim@iguana.be>
Fri, 1 Mar 2013 11:19:35 +0000 (12:19 +0100)
commit7bc0a2a7ae308e001fc225c6330029567d4d546c
tree8b38fb0f4b675d359f5e19b5622b89affa00128f
parent5cc87817332ccf2b723f598740b859423d127a53
watchdog: sp5100_tco: Write back the original value to reserved bits, instead of zero

In case of SP5100 or SB7x0 chipsets, the sp5100_tco module writes zero to
reserved bits. The module, however, shouldn't depend on specific default
value, and should perform a read-merge-write operation for the reserved
bits.

This patch makes the sp5100_tco module perform a read-merge-write operation
on all the chipset (sp5100, sb7x0, sb8x0 or later).

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=43176
Signed-off-by: Takahisa Tanaka <mc74hc00@gmail.com>
Tested-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Cc: stable <stable@vger.kernel.org>
drivers/watchdog/sp5100_tco.c