disp: msm: dsi: register io resource collection VM event hook
Add support to read register ranges and IRQ lines that needs isolation during VM switch in dsi ctrl and dsi phy. Register for VM resource collection event providing the callback function. Change-Id: I5eae4699b0a97ffed438627ccea855c401b3fbeb Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
4b27380f07
commit
962fd4faca
@@ -1998,6 +1998,27 @@ static struct platform_driver dsi_ctrl_driver = {
|
||||
},
|
||||
};
|
||||
|
||||
int dsi_ctrl_get_io_resources(struct msm_io_res *io_res)
|
||||
{
|
||||
int rc = 0;
|
||||
struct dsi_ctrl_list_item *dsi_ctrl;
|
||||
|
||||
mutex_lock(&dsi_ctrl_list_lock);
|
||||
|
||||
list_for_each_entry(dsi_ctrl, &dsi_ctrl_list, list) {
|
||||
rc = msm_dss_get_io_mem(dsi_ctrl->ctrl->pdev, &io_res->mem);
|
||||
if (rc) {
|
||||
DSI_CTRL_ERR(dsi_ctrl->ctrl,
|
||||
"failed to get io mem, rc = %d\n", rc);
|
||||
return rc;
|
||||
}
|
||||
}
|
||||
|
||||
mutex_unlock(&dsi_ctrl_list_lock);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
/**
|
||||
* dsi_ctrl_get() - get a dsi_ctrl handle from an of_node
|
||||
* @of_node: of_node of the DSI controller.
|
||||
|
Reference in New Issue
Block a user