MLK-18163-2: drm: imx: dcss: Fix bit depth checking for YUV420
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Wed, 2 May 2018 10:29:20 +0000 (13:29 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitd87bb46d6275440396f00849bf8a21af9e06f24a
treea9322803991002e6893a0a614bdbd4c42b026a3c
parent0de64ef60cc79c20ed637f810b36c3b60f3a1b00
MLK-18163-2: drm: imx: dcss: Fix bit depth checking for YUV420

When YUV420 is used, we need to check that the deep color mode actually
supports the bit depth required. Currently, the code checks the RGB bit
depth.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
(cherry picked from commit 5ac33861906cb7be660cc5c0a0f494194a81275a)
drivers/gpu/drm/imx/dcss/dcss-crtc.c