]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/nouveau/kms/nv50-: Get rid of bogus nouveau_conn_mode_valid()
authorLyude Paul <lyude@redhat.com>
Tue, 29 Sep 2020 22:31:31 +0000 (18:31 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 11:38:59 +0000 (12:38 +0100)
commita7ea105620623023b6608c5dc50b0c8b9915dddb
treef3a245f644d5ee3128ac51623026dd0c508f8b71
parent72802c8f5fa1978e64936231226360dd51029512
drm/nouveau/kms/nv50-: Get rid of bogus nouveau_conn_mode_valid()

commit 2d831155cf0607566e43d8465da33774b2dc7221 upstream.

Ville also pointed out that I got a lot of the logic here wrong as well, whoops.
While I don't think anyone's likely using 3D output with nouveau, the next patch
will make nouveau_conn_mode_valid() make a lot less sense. So, let's just get
rid of it and open-code it like before, while taking care to move the 3D frame
packing calculations on the dot clock into the right place.

Signed-off-by: Lyude Paul <lyude@redhat.com>
Fixes: d6a9efece724 ("drm/nouveau/kms/nv50-: Share DP SST mode_valid() handling with MST")
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: <stable@vger.kernel.org> # v5.8+
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_dp.c