drm/sun4i: Fix dclk_set_phase
authorGiulio Benetti <giulio.benetti@micronovasrl.com>
Wed, 28 Feb 2018 16:46:53 +0000 (17:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:08 +0000 (07:52 +0200)
commitacb162b9cdb6bc71618d9a9e745bd498c7462b0a
tree880190a8ec6a8b7b74d758e4423a2f53e0b0c2c0
parentcd2dee1ea6d553a044a03585b5c1ec7c4657b854
drm/sun4i: Fix dclk_set_phase

[ Upstream commit e64b6afa98f3629d0c0c46233bbdbe8acdb56f06 ]

Phase value is not shifted before writing.

Shift left of 28 bits to fit right bits

Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1519836413-35023-1-git-send-email-giulio.benetti@micronovasrl.com
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/sun4i/sun4i_dotclock.c