msm: mdss: dp: fix handling of link training mutex
Remove the additional unbalanced unlock being called for the link training mutex. This fixes random crashes seen while running Display Port connection/disconnection tests. Change-Id: I2fce80cec72e3bd8b1561fd46fa1a1520cddd294 Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
This commit is contained in:
parent
c23be78397
commit
5f41a670d1
1 changed files with 6 additions and 3 deletions
|
@ -1211,16 +1211,20 @@ static int mdss_dp_on_irq(struct mdss_dp_drv_pdata *dp_drv)
|
|||
|
||||
ret = mdss_dp_get_lane_mapping(dp_drv, dp_drv->orientation,
|
||||
&ln_map);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
mutex_unlock(&dp_drv->train_mutex);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
mdss_dp_phy_share_lane_config(&dp_drv->phy_io,
|
||||
dp_drv->orientation,
|
||||
dp_drv->dpcd.max_lane_count);
|
||||
|
||||
ret = mdss_dp_enable_mainlink_clocks(dp_drv);
|
||||
if (ret)
|
||||
if (ret) {
|
||||
mutex_unlock(&dp_drv->train_mutex);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
mdss_dp_mainlink_reset(&dp_drv->ctrl_io);
|
||||
|
||||
|
@ -1238,7 +1242,6 @@ static int mdss_dp_on_irq(struct mdss_dp_drv_pdata *dp_drv)
|
|||
pr_debug("end\n");
|
||||
|
||||
exit:
|
||||
mutex_unlock(&dp_drv->train_mutex);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue