Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sm8250-mainline
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jianhua Lu
sm8250-mainline
Commits
416dce5f
Commit
416dce5f
authored
2 years ago
by
Jianhua Lu
Browse files
Options
Downloads
Patches
Plain Diff
drm: dsi: emit panel turn on/off signal to touchscreen
parent
1e8d18f0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/gpu/drm/msm/dsi/dsi_manager.c
+9
-0
9 additions, 0 deletions
drivers/gpu/drm/msm/dsi/dsi_manager.c
with
9 additions
and
0 deletions
drivers/gpu/drm/msm/dsi/dsi_manager.c
+
9
−
0
View file @
416dce5f
...
...
@@ -7,6 +7,7 @@
#include
"msm_kms.h"
#include
"dsi.h"
#include
"drm/drm_notifier.h"
#define DSI_CLOCK_MASTER DSI_0
#define DSI_CLOCK_SLAVE DSI_1
...
...
@@ -273,6 +274,7 @@ static void dsi_mgr_bridge_pre_enable(struct drm_bridge *bridge)
struct
mipi_dsi_host
*
host
=
msm_dsi
->
host
;
bool
is_bonded_dsi
=
IS_BONDED_DSI
();
int
ret
;
enum
drm_notifier_data
notifier_data
;
DBG
(
"id=%d"
,
id
);
...
...
@@ -286,6 +288,9 @@ static void dsi_mgr_bridge_pre_enable(struct drm_bridge *bridge)
return
;
}
notifier_data
=
MI_DRM_BLANK_UNBLANK
;
mi_drm_notifier_call_chain
(
MI_DRM_EVENT_BLANK
,
&
notifier_data
);
ret
=
msm_dsi_host_enable
(
host
);
if
(
ret
)
{
pr_err
(
"%s: enable host %d failed, %d
\n
"
,
__func__
,
id
,
ret
);
...
...
@@ -329,9 +334,13 @@ static void dsi_mgr_bridge_post_disable(struct drm_bridge *bridge)
struct
mipi_dsi_host
*
host
=
msm_dsi
->
host
;
bool
is_bonded_dsi
=
IS_BONDED_DSI
();
int
ret
;
enum
drm_notifier_data
notifier_data
;
DBG
(
"id=%d"
,
id
);
notifier_data
=
MI_DRM_BLANK_POWERDOWN
;
mi_drm_notifier_call_chain
(
MI_DRM_EARLY_EVENT_BLANK
,
&
notifier_data
);
/*
* Do nothing with the host if it is slave-DSI in case of bonded DSI.
* It is safe to call dsi_mgr_phy_disable() here because a single PHY
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment