]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
drm: xlnx: fb: Prefer the current format depth over depth from fb helper
authorHyun Kwon <hyun.kwon@xilinx.com>
Wed, 11 Apr 2018 16:36:33 +0000 (09:36 -0700)
committerMichal Simek <michal.simek@xilinx.com>
Wed, 2 May 2018 06:29:56 +0000 (08:29 +0200)
commita0f05a9535d0afecad360b328649028acf373082
treeb65d750b118a6387713c3c86ca02c7390abb1402
parent76c8491853d1b94cb4024ca4df64814c14a8b8a3
drm: xlnx: fb: Prefer the current format depth over depth from fb helper

The drm fb helper has specific preference of bpp and depth. For example,
for 32bit bpp, the depth is hard-coded to be 24. If it's not aligned
with the supported format of a drm device, it fails to initialize fbdev.
So override the depth value from fb helper with the current format
of the drm device. This will allow to initialize the fbdev with
preferred format that matches with actual format.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Reviewed-by: Saurabh Sengar <saurabhs@xilinx.com>
Tested-by: Anil Kumar Mamidala <amamidal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/gpu/drm/xlnx/xlnx_fb.c