drm/rockchip: dw-mipi-dsi: fix generic packet status check
authorJohn Keeping <john@metanate.com>
Fri, 24 Feb 2017 12:54:48 +0000 (12:54 +0000)
committerSean Paul <seanpaul@chromium.org>
Wed, 1 Mar 2017 19:48:50 +0000 (14:48 -0500)
commit480564a033360779dd8494e918c7586ff72c395b
tree535c16ead31564581cc0b6fb6bd7e2b4688f0ea0
parentd3852c212dffdb98fb8e8b8ff876fcaa61b33307
drm/rockchip: dw-mipi-dsi: fix generic packet status check

We want to check that both the GEN_CMD_EMPTY and GEN_PLD_W_EMPTY bits
are set so we can't just check "val & mask" because that will be true if
either bit is set.

Signed-off-by: John Keeping <john@metanate.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-6-john@metanate.com
drivers/gpu/drm/rockchip/dw-mipi-dsi.c