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

Manasi Navare manasi.d.navare at intel.com
Thu Sep 28 00:48:58 UTC 2017


On Wed, Sep 27, 2017 at 05:31:56PM -0700, Keith Packard wrote:
> 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?
>

Thanks Keith. Yes thats correct, I got confused by the macro name.
But its correct I should use the list_is_singular instead.

Manasi
 
> -- 
> -keith




More information about the dri-devel mailing list