diff options
author | Dave Airlie <airlied@redhat.com> | 2019-03-15 04:46:21 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2019-03-25 02:25:20 +0300 |
commit | b6a36e5ddf8496ec83a14589f32f58bbaf022046 (patch) | |
tree | b51310074502049f404a286bb8071001ca8783c7 /block/blk-mq-debugfs.c | |
parent | 8c2ffd9174779014c3fe1f96d9dc3641d9175f00 (diff) | |
download | linux-b6a36e5ddf8496ec83a14589f32f58bbaf022046.tar.xz |
drm/fb: avoid setting 0 depth.
If the downscaling fails and we end up with a best_depth of 0,
then ignore it.
This actually works around a cascade of failure, but it the
simplest fix for now.
The scaling patch broke the udl driver, as the udl driver doesn't
expose planes at all, so gets the two default 32-bit formats, but
the udl driver then ask for 16bpp fbdev, and the scaling code falls
over.
This fixes the udl driver since the scaled depth support was added.
Fixes: f4bd542bcaee ("drm/fb-helper: Scale back depth to supported maximum")
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190315014621.21816-2-airlied@gmail.com
Diffstat (limited to 'block/blk-mq-debugfs.c')
0 files changed, 0 insertions, 0 deletions