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:50:33 +0000 (07:50 +0200)
commit6d8ce377c6180a75ca44c62eca9fc400989296d4
tree529cca0bcf2f4bc1fb7b46da2a7af3e9b1ab4aca
parent058c84a37f60493015dd523a8931a7a3919d72ff
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