[Intel-gfx] [PATCH] drm/dp: Do not prune the last mode on the connector

Keith Packard keithp at keithp.com
Thu Sep 28 00:31:56 UTC 2017


Manasi Navare <manasi.d.navare at intel.com> writes:

> This patch fixes this problem by checking if the mode being pruned
> is the last mode on that connector and if so doesnt prune it.

I think you want to stop pruning when you've gotten to a single mode on
the list, not at the last mode in the list (which may well need to be
pruned).

This is entirely untested, but perhaps

+		    !(list_is_singular(mode_list))) {
        
is what you want?

-- 
-keith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gfx/attachments/20170927/9bfdc90f/attachment.sig>


More information about the Intel-gfx mailing list