drm: arcpgu: Use crtc->mode_valid() callback
authorJose Abreu <Jose.Abreu@synopsys.com>
Thu, 25 May 2017 14:19:17 +0000 (15:19 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 22 Jun 2017 08:45:10 +0000 (10:45 +0200)
commit2b3d860efa3461af109469e6de2eea48f6ef5cdd
tree2147a48fc5c511538ac81a90e550829ac12cc642
parent33b6b7b12d144de7e892a64cb75d086110c87da1
drm: arcpgu: Use crtc->mode_valid() callback

Now that we have a callback to check if crtc supports a given mode
we can use it in arcpgu so that we restrict the number of probbed
modes to the ones we can actually display.

This is specially useful because arcpgu crtc is responsible to set
a clock value in the commit() stage but unfortunatelly this clock
does not support all the needed ranges.

Also, remove the atomic_check() callback as mode_valid() callback
will be called before.

Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Reviewed-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Carlos Palminha <palminha@synopsys.com>
Cc: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dave Airlie <airlied@linux.ie>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Changes v4->v5:
- Change commit message to "arcpgu" (Alexey)
Changes v3->v4:
- Do not use aux function (Laurent)
Reviewed-by: Neil Armstrong <narmstrong@baylibre.com>
Acked-by: Dave Airlie <airlied@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/c3bcd69016c77f68a03ff3cb6b22ca6f90e930b0.1495720737.git.joabreu@synopsys.com
drivers/gpu/drm/arc/arcpgu_crtc.c