msm: mdss: ensure proper state transition during ULPS exit
During stress environment, sometimes DSI ULPS exit sequence does not work properly. Add memory barriers while programing DSI lane register to ensure proper state transition of DSI lane during ULPS exit. Change-Id: Ib50958cf342bf23ab44f5a9d3bdf60adad824145 Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
This commit is contained in:
parent
f39a5999e2
commit
04ee7723d7
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
|
||||
/* Copyright (c) 2012-2017, The Linux Foundation. All rights reserved.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License version 2 and
|
||||
|
@ -1863,8 +1863,10 @@ static int mdss_dsi_ulps_config_default(struct mdss_dsi_ctrl_pdata *ctrl,
|
|||
* to be in stop state.
|
||||
*/
|
||||
MIPI_OUTP(ctrl->ctrl_base + 0x0AC, active_lanes << 16);
|
||||
wmb(); /* ensure lanes are put to stop state */
|
||||
|
||||
MIPI_OUTP(ctrl->ctrl_base + 0x0AC, 0x0);
|
||||
wmb(); /* ensure lanes are in proper state */
|
||||
|
||||
lane_status = MIPI_INP(ctrl->ctrl_base + 0xA8);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue