]> 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>
Wed, 30 Jan 2013 19:11:44 +0000 (20:11 +0100)
commitadbdcc030be5f7bb54d229c04efdd0c6b7ed3ab7
tree3ed53508473adf107f9f72771e3e29072ef0691e
parenta6e26b1369b34760ca5e1f16039c9018bf68ce7e
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>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/sp5100_tco.c