projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
db444e1
)
drm/bridge: analogix: Don't return -EINVAL when panel doesn't support PSR
author
zain wang
<
[email protected]
>
Wed, 7 Dec 2016 00:57:33 +0000
(08:57 +0800)
committer
Archit Taneja
<
[email protected]
>
Wed, 7 Dec 2016 02:57:36 +0000
(08:27 +0530)
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 <
[email protected]
>
Signed-off-by: Archit Taneja <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
index 6e0447f329a24f085f5c21ace4f593fe250f7a90..eb9bf8786c249744418b601bae38bb78ae04f2a7 100644
(file)
--- a/
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
+++ b/
drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
@@
-112,7
+112,7
@@
int analogix_dp_enable_psr(struct device *dev)
struct edp_vsc_psr psr_vsc;
if (!dp->psr_support)
- return
-EINVAL
;
+ return
0
;
/* Prepare VSC packet as per EDP 1.4 spec, Table 6.9 */
memset(&psr_vsc, 0, sizeof(psr_vsc));
@@
-135,7
+135,7
@@
int analogix_dp_disable_psr(struct device *dev)
struct edp_vsc_psr psr_vsc;
if (!dp->psr_support)
- return
-EINVAL
;
+ return
0
;
/* Prepare VSC packet as per EDP 1.4 spec, Table 6.9 */
memset(&psr_vsc, 0, sizeof(psr_vsc));