diff options
author | Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> | 2019-06-25 22:36:18 -0300 |
---|---|---|
committer | Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com> | 2019-07-12 00:45:49 -0300 |
commit | e9d85f731de06a35d2ae6cdcf7d0e037c98ef41a (patch) | |
tree | 5d86403750e3113ee8a76c204090c84aa536b2f5 /drivers/spi/spi-ppc4xx.c | |
parent | 4f5368b5541a902f6596558b05f5c21a9770dd32 (diff) |
drm/vkms: Avoid assigning 0 for possible_crtc
When vkms invoke drm_universal_plane_init(), it sets 0 for
possible_crtcs parameter which means that planes can't be attached to
any CRTC. It currently works due to some safeguard in the drm_crtc file;
however, it is possible to identify the problem by trying to append a
second connector. This patch fixes this issue by modifying
vkms_plane_init() to accept an index parameter which makes the code a
little bit more flexible and avoid set zero to possible_crtcs.
Signed-off-by: Rodrigo Siqueira <rodrigosiqueiramelo@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/d67849c62a8d8ace1a0af455998b588798a4c45f.1561491964.git.rodrigosiqueiramelo@gmail.com
Diffstat (limited to 'drivers/spi/spi-ppc4xx.c')
0 files changed, 0 insertions, 0 deletions