]> git.openfabrics.org - ~emulex/infiniband.git/commit
rtc: pcf8563: fix write of invalid bits to ST2 reg
authorJan Kardell <jan.kardell@telliq.com>
Wed, 10 Dec 2014 23:53:34 +0000 (15:53 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 11 Dec 2014 01:41:15 +0000 (17:41 -0800)
commit45ef0458fb2b931962f8558e1fd145e63ea990ab
tree855096740546378aafbed1b89a7e3eb2964e70f7
parent17a1e5e830723f18eeb4ec00fa5a1032e378f06e
rtc: pcf8563: fix write of invalid bits to ST2 reg

The NXP datasheet says:
 "Bits labeled as N should always be written with logic 0."

At least one of those bits is sometime read as a 1, therfore violating
this rule.  To fix this we mask away those bits.

Signed-off-by: Jan Kardell <jan.kardell@telliq.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Vincent Donnefort <vdonnefort@gmail.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/rtc-pcf8563.c