diff options
author | Arnaud Ebalard <arno@natisbad.org> | 2014-12-10 15:54:02 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-16 06:59:44 -0800 |
commit | c75b302ac93da6224e02cc909f7d63174a66f1f3 (patch) | |
tree | 9e440d32020a66b2f0a32e6f8d51547c0fa9cf59 /fs/ocfs2/aops.c | |
parent | e376bf209a96edd91b4160e9d2ed8d097ffd8341 (diff) | |
download | lwn-c75b302ac93da6224e02cc909f7d63174a66f1f3.tar.gz lwn-c75b302ac93da6224e02cc909f7d63174a66f1f3.zip |
drivers/rtc/rtc-isl12057.c: fix masking of register values
commit 5945b2880363ed7648e62aabba770ec57ff2a316 upstream.
When Intersil ISL12057 support was added by commit 70e123373c05 ("rtc: Add
support for Intersil ISL12057 I2C RTC chip"), two masks for time registers
values imported from the device were either wrong or omitted, leading to
additional bits from those registers to impact read values:
- mask for hour register value when reading it in AM/PM mode. As
AM/PM mode is not the usual mode used by the driver, this error
would only have an impact on an externally configured RTC hour
later read by the driver.
- mask for month value. The lack of masking would provide an
erroneous value if century bit is set.
This patch fixes those two masks.
Fixes: 70e123373c05 ("rtc: Add support for Intersil ISL12057 I2C RTC chip")
Signed-off-by: Arnaud Ebalard <arno@natisbad.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Cc: Peter Huewe <peter.huewe@infineon.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Thierry Reding <treding@nvidia.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Grant Likely <grant.likely@linaro.org>
Acked-by: Uwe Kleine-König <uwe@kleine-koenig.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/ocfs2/aops.c')
0 files changed, 0 insertions, 0 deletions