disp: msm: snapshot change for mdp driver to support multiple SIs
This change adds support in mdp and dsi driver to support multiple SIS. Change-Id: I432068cea17e1784d7570a472fbadaa86695df07 Signed-off-by: Narendra Muppalla <NarendraM@codeaurora.org> Signed-off-by: Amine Najahi <anajahi@codeaurora.org>
This commit is contained in:

committed by
Bruce Hoo

vanhempi
88c7d83030
commit
7c5d715673
@@ -48,6 +48,7 @@ struct gh_acl_desc *sde_vm_populate_acl(enum gh_vm_names vm_name)
|
||||
return acl_desc;
|
||||
}
|
||||
|
||||
#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 15, 0))
|
||||
int __mem_sort_cmp(void *priv, const struct list_head *a, const struct list_head *b)
|
||||
{
|
||||
const struct msm_io_mem_entry *left =
|
||||
@@ -57,6 +58,17 @@ int __mem_sort_cmp(void *priv, const struct list_head *a, const struct list_head
|
||||
|
||||
return (left->base - right->base);
|
||||
}
|
||||
#else
|
||||
int __mem_sort_cmp(void *priv, struct list_head *a, struct list_head *b)
|
||||
{
|
||||
struct msm_io_mem_entry *left =
|
||||
container_of(a, struct msm_io_mem_entry, list);
|
||||
struct msm_io_mem_entry *right =
|
||||
container_of(b, struct msm_io_mem_entry, list);
|
||||
|
||||
return (left->base - right->base);
|
||||
}
|
||||
#endif
|
||||
|
||||
bool __merge_on_overlap(struct msm_io_mem_entry *res,
|
||||
const struct msm_io_mem_entry *left,
|
||||
|
Viittaa uudesa ongelmassa
Block a user