Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/bridge: analogix: Don't return -EINVAL when panel doesn't support PSR

We will ignored PSR setting if panel not support it. So, in this case,
we should return from analogix_dp_enable/disable_psr() without any
error code. Let's retrun 0 instead of -EINVAL when panel not support PSR
in analogix_dp_enable/disable_psr().

Signed-off-by: zain wang <wzz@rock-chips.com>
Signed-off-by: Archit Taneja <architt@codeaurora.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1481072253-8917-1-git-send-email-wzz@rock-chips.com

authored by

zain wang and committed by
Archit Taneja
8f34a548 db444e13

+2 -2
+2 -2
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
··· 112 112 struct edp_vsc_psr psr_vsc; 113 113 114 114 if (!dp->psr_support) 115 - return -EINVAL; 115 + return 0; 116 116 117 117 /* Prepare VSC packet as per EDP 1.4 spec, Table 6.9 */ 118 118 memset(&psr_vsc, 0, sizeof(psr_vsc)); ··· 135 135 struct edp_vsc_psr psr_vsc; 136 136 137 137 if (!dp->psr_support) 138 - return -EINVAL; 138 + return 0; 139 139 140 140 /* Prepare VSC packet as per EDP 1.4 spec, Table 6.9 */ 141 141 memset(&psr_vsc, 0, sizeof(psr_vsc));