• Robin Murphy's avatar
    drm/arm/hdlcd: Actually validate CRTC modes · b96151ed
    Robin Murphy authored
    Rather than allowing any old mode through, then subsequently refusing
    unmatchable clock rates in atomic_check when it's too late to back out
    and pick a different mode, let's do that validation up-front where it
    will cause unsupported modes to be correctly pruned in the first place.
    
    This also eliminates an issue whereby a perceived clock rate of 0 would
    cause atomic disable to fail and prevent the module from being unloaded.
    Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
    Signed-off-by: default avatarLiviu Dudau <liviu.dudau@arm.com>
    b96151ed
hdlcd_crtc.c 9.93 KB