]> git.baikalelectronics.ru Git - kernel.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)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 29 Oct 2020 23:34:13 +0000 (09:34 +1000)
commitaeb080b7cd270824ef43921c61d839056450d527
tree9b591dc02286192366c6f66cd02d5de82a177054
parent85744453158f9bc1a973829bb68ed719be970ef0
drm/nouveau/kms/nv50-: Get rid of bogus nouveau_conn_mode_valid()

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: fc262644b783 ("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>
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_dp.c