Re: [PATCH v2] drm/sun4i: move rgb mode_valid from connector to encoder

2018-03-14 Thread Maxime Ripard
On Tue, Mar 13, 2018 at 12:36:57PM +0100, Giulio Benetti wrote: > mode_valid function must be connected to encoder. > Otherwise it could get not be called by drm in the case there's a > bridge connected to encoder instead of a panel. > > Move mode_valid function pointer to encoder helper

[PATCH v2] drm/sun4i: move rgb mode_valid from connector to encoder

2018-03-13 Thread Giulio Benetti
mode_valid function must be connected to encoder. Otherwise it could get not be called by drm in the case there's a bridge connected to encoder instead of a panel. Move mode_valid function pointer to encoder helper functions, changing its prototype according to encoder helper function pointer.