]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
clocksource: exynos_mct: Fix bitmask regression for exynos4_mct_write
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Wed, 22 Oct 2014 01:37:08 +0000 (03:37 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 5 Jan 2015 13:43:35 +0000 (14:43 +0100)
commit8c38d28ba8da98f7102c31d35359b4dbe9d1f329
treede16aa7600fca8459412fea0e7d4b1bbb0756074
parenta5fd9733a30d18d7ac23f17080e7e07bb3205b69
clocksource: exynos_mct: Fix bitmask regression for exynos4_mct_write

EXYNOS4_MCT_L_MASK is defined as 0xffffff00, so applying this bitmask
produces a number outside the range 0x00 to 0xff, which always results
in execution of the default switch statement.

Obviously this is wrong and git history shows that the bitmask inversion
was incorrectly set during a refactoring of the MCT code.

Fix this by putting the inversion at the correct position again.

Cc: stable@vger.kernel.org
Acked-by: Kukjin Kim <kgene.kim@samsung.com>
Reported-by: GP Orcullo <kinsamanka@gmail.com>
Reviewed-by: Doug Anderson <dianders@chromium.org>
Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/exynos_mct.c