From: hyesoo.yu Date: Mon, 25 Sep 2017 01:35:59 +0000 (+0900) Subject: [COMMON] g2d: fix to read the job state X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=226905d42b558e73472f820432a82017e4c0f902;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [COMMON] g2d: fix to read the job state The register of JOB_IDn_STATE should be masked to read the job state. Change-Id: I964c2a22073d64a3c9150fa06e2060192c5d149d Signed-off-by: hyesoo.yu --- diff --git a/drivers/gpu/exynos/g2d/g2d_regs.h b/drivers/gpu/exynos/g2d/g2d_regs.h index 523c193f20fe..f0d87d074ad9 100644 --- a/drivers/gpu/exynos/g2d/g2d_regs.h +++ b/drivers/gpu/exynos/g2d/g2d_regs.h @@ -108,7 +108,8 @@ static inline void g2d_hw_clear_job_ids(struct g2d_device *g2d_dev, u32 val) static inline u32 g2d_hw_get_job_state(struct g2d_device *g2d_dev, unsigned int job_id) { - return readl(g2d_dev->reg + G2D_JOB_IDn_STATE_REG(job_id)); + return readl(g2d_dev->reg + G2D_JOB_IDn_STATE_REG(job_id)) & + G2D_JOB_STATE_MASK; } u32 g2d_hw_errint_status(struct g2d_device *g2d_dev);