[PATCH 0/3] Add CRTC helper drm_crtc_from_index()

2017-01-09 Thread Shawn Guo
On Fri, Dec 30, 2016 at 12:16:43PM +0100, Daniel Vetter wrote: > Entire series applied. I suspect that there's more drivers open-coding > something like this in their vblank code, might be worth it to grep for > them all and do a quick audit. I did a round of audit on all drivers vblank code, and

[PATCH 0/3] Add CRTC helper drm_crtc_from_index()

2017-01-09 Thread Daniel Vetter
On Mon, Jan 09, 2017 at 05:03:35PM +0800, Shawn Guo wrote: > On Fri, Dec 30, 2016 at 12:16:43PM +0100, Daniel Vetter wrote: > > Entire series applied. I suspect that there's more drivers open-coding > > something like this in their vblank code, might be worth it to grep for > > them all and do a

[PATCH 0/3] Add CRTC helper drm_crtc_from_index()

2016-12-30 Thread Daniel Vetter
On Thu, Dec 29, 2016 at 08:41:27PM +0800, Shawn Guo wrote: > From: Shawn Guo > > This is a suggestion from Sean Paul. ZTE and Rockchip DRM drivers have > the similar code to find registered CRTC by given index. The series > create a CRTC helper drm_crtc_from_index() to do the job, just like >

[PATCH 0/3] Add CRTC helper drm_crtc_from_index()

2016-12-29 Thread Shawn Guo
From: Shawn Guo This is a suggestion from Sean Paul. ZTE and Rockchip DRM drivers have the similar code to find registered CRTC by given index. The series create a CRTC helper drm_crtc_from_index() to do the job, just like drm_plane_from_index() to search plane, and