From: Xiubo Li
Date: Wed, 23 Apr 2014 02:12:00 +0000 (+0800)
Subject: clocksource: Fix clocksource_mmio_readX_down
X-Git-Tag: omap-for-v3.16/fixes-against-rc1~56^2~18^2^2~9
X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95c19a06ec1cf9530ebb8f2c7eeda1d7398b43f1;p=pandora-kernel.git
clocksource: Fix clocksource_mmio_readX_down
For some clocksource devices, for example, the registers are 32-bit, while
the lower 16-bit is used for timer counting(And reading the upper 16-bit
will return 0).
For example, when the counter value is 0x00001111, and then the
~readl_relaxed(to_mmio_clksrc(c)->reg) will return the value of 0xFFFFEEEE,
but it should be 0x0000EEEE.
So just using the c->mask to mask the unused bits.
Signed-off-by: Xiubo Li
Signed-off-by: Daniel Lezcano
---
Reading git-diff-tree failed