]> git.baikalelectronics.ru Git - kernel.git/commit
drm: don't override possible_crtcs for primary/cursor planes
authorRob Clark <robdclark@gmail.com>
Sat, 5 Nov 2016 14:52:01 +0000 (10:52 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 8 Nov 2016 10:18:39 +0000 (11:18 +0100)
commit5ba7ceacacf832047e7541453e2b3819b9d11092
treece3b38a961ca8b8a3d39c54299957bb6864f7bf4
parentd99bd8cd54ba71999400db0aa2642b33edc550e2
drm: don't override possible_crtcs for primary/cursor planes

It is kind of a pointless restriction.  If userspace does silly things
like using crtcA's cursor plane on crtcB, and then setcursor on crtcA,
it will end up with the overlay disabled on crtcB.  But userspace is
allowed to shoot itself like this.

v2: don't WARN_ON() if caller did not set ->possible_crtcs.  This keeps
    the existing behavior by default, if caller does not set the
    ->possible_crtcs.

Signed-off-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1478357521-26542-1-git-send-email-robdclark@gmail.com
drivers/gpu/drm/drm_crtc.c