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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 29 Jan 2015 14:45:03 +0000 (15:45 +0100)
commit121be0f4cf47b5bc4caa654de233ae83fdd6dd8d
tree1f1575f0f32a1d223d3823389dad6c37937329e6
parentb9c03b60cf6631b21ce28b7a1ade8b9ca2f7f1f8
clocksource: exynos_mct: Fix bitmask regression for exynos4_mct_write

commit 8c38d28ba8da98f7102c31d35359b4dbe9d1f329 upstream.

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.

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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/clocksource/exynos_mct.c