disp: msm: dsi: add check for DSI resources during display probe

The change adds a check for DSI controller and PHY resources during the
DSI display probe. The validation now only checks for the availabilty
of the resources without increasing the refcount of the controller or
PHY till an exact match is found after the device tree is parsed.

Change-Id: I96a5022a8ab5f55271e0df36675037b597e1ec85
Signed-off-by: Satya Rama Aditya Pinapala <psraditya30@codeaurora.org>
这个提交包含在:
Satya Rama Aditya Pinapala
2021-04-14 17:44:01 -07:00
父节点 28e834679a
当前提交 3f8ac6983f
修改 5 个文件,包含 99 行新增37 行删除

查看文件

@@ -319,6 +319,16 @@ struct dsi_ctrl {
u32 cmd_success_frame;
};
/**
* dsi_ctrl_check_resource() - check if DSI controller is probed
* @of_node: of_node of the DSI controller.
*
* Checks if the DSI controller has been probed and is available.
*
* Return: status of DSI controller
*/
bool dsi_ctrl_check_resource(struct device_node *of_node);
/**
* dsi_ctrl_get() - get a dsi_ctrl handle from an of_node
* @of_node: of_node of the DSI controller.