msm: mdss: always request for dsi gpios when cont splash is enabled
When continuous splash screen feature is enabled, the panel is left turned on by the bootloader. In such cases, we need to request all the GPIOs used by the DSI driver at probe time. In the current implementation, the GPIOs are not requested if certain panel specific flags are set. This results in a bug when an attempt is made to free these GPIOs when the device is suspended. Fix this by ensuring that the GPIOs are requested unconditionally. Change-Id: If0bea80aab819aeafdaaedf81451d5fa64d4e76d CRs-Fixed: 684253 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
This commit is contained in:
parent
fcedb98b47
commit
1df1a1a1fd
1 changed files with 9 additions and 1 deletions
|
@ -112,7 +112,15 @@ static int mdss_dsi_panel_power_on(struct mdss_panel_data *pdata, int enable)
|
|||
udelay(2000);
|
||||
}
|
||||
|
||||
if (!pdata->panel_info.mipi.lp11_init) {
|
||||
/*
|
||||
* If the panel is already on (as part of the cont splash
|
||||
* screen feature), then we need to request all the GPIOs that
|
||||
* have already been configured in the bootloader. This needs
|
||||
* to be done irresepective of whether the lp11_init flag is
|
||||
* set or not.
|
||||
*/
|
||||
if (pdata->panel_info.panel_power_on ||
|
||||
!pdata->panel_info.mipi.lp11_init) {
|
||||
if (mdss_dsi_pinctrl_set_state(ctrl_pdata, true))
|
||||
pr_debug("reset enable: pinctrl not enabled\n");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue