]> git.karo-electronics.de Git - karo-tx-linux.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)
commit41adafbd7b84c66c2cdad857b75d5d45032310a6
tree8b38fb0f4b675d359f5e19b5622b89affa00128f
parent10ab329b5db7e592a3a60b4594e4e5f40b60c45c
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