]> git.baikalelectronics.ru Git - kernel.git/commit
drm/rockchip: dw-mipi-dsi: fix command header writes
authorJohn Keeping <john@metanate.com>
Fri, 24 Feb 2017 12:54:47 +0000 (12:54 +0000)
committerSean Paul <seanpaul@chromium.org>
Wed, 1 Mar 2017 19:48:49 +0000 (14:48 -0500)
commit3373cb9d4ed8ce72bb35a8e9df15487c750c2bf9
tree7abd6a9eb310a5bacb1c9e464b1c305f354428d8
parentcbf69c082047ee2ef100b9854e10eac0b473933d
drm/rockchip: dw-mipi-dsi: fix command header writes

In a couple of places here we use "val" for the value that is about to
be written to a register but then reuse the same variable for the value
of a status register before we get around to writing it.  Rename the
value to be written to so that we write the value we intend to and not
what we have just read from the status register.

Signed-off-by: John Keeping <john@metanate.com>
Tested-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Chris Zhong <zyw@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20170224125506.21533-5-john@metanate.com
drivers/gpu/drm/rockchip/dw-mipi-dsi.c