MLK-21407 gpu: imx: dpu: tcon: Assign tcon id
authorLiu Ying <victor.liu@nxp.com>
Mon, 8 Apr 2019 09:08:16 +0000 (17:08 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
We should assign dedicated id for every tcon instance.
This makes us be able to figure out bewteen master and
slave tcon.  Only side-by-side display mode is likely
impacted.  Based on tests, no functional change is
observed before or after this patch is applied.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
(cherry picked from commit e181d9e56b096bbdc919f65b223d1bde413df1bb)

drivers/gpu/imx/dpu/dpu-tcon.c

index 546a77d..42dfc7a 100644 (file)
@@ -324,6 +324,7 @@ int dpu_tcon_init(struct dpu_soc *dpu, unsigned int id,
                return -ENOMEM;
 
        tcon->dpu = dpu;
+       tcon->id = id;
        mutex_init(&tcon->mutex);
 
        return 0;