drm/rockchip: dsi: Fix VOP selection on SoCs that support it
authorOndrej Jirman <megi@xff.cz>
Sun, 23 Oct 2022 16:07:47 +0000 (18:07 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 29 Oct 2022 12:41:06 +0000 (14:41 +0200)
commit553c5a429aee26c9cfaf37ae158a8915540270fe
treeefbe28ba1a9c29bc03b9c2d07973467be70625e6
parentab78c74cfc5a3caa2bbb7627cb8f3bca40bb5fb0
drm/rockchip: dsi: Fix VOP selection on SoCs that support it

lcdsel_grf_reg is defined as u32, so "< 0" comaprison is always false,
which breaks VOP selection on eg. RK3399. Compare against 0.

Fixes: f3aaa6125b6f ("drm/rockchip: dsi: add rk3568 support")
Signed-off-by: Ondrej Jirman <megi@xff.cz>
Tested-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20221023160747.607943-1-megi@xff.cz
drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c