Re: [PATCH v1 05/11] drm/vblank: drop use of DRM_WAIT_ON()

2019-07-18 Thread Sean Paul
On Thu, Jul 18, 2019 at 06:15:01PM +0200, Sam Ravnborg wrote: > DRM_WAIT_ON() is from the deprecated drm_os_linux header and > the modern replacement is the wait_event_*. > > The return values differ, so a conversion is needed to > keep the original interface towards userspace. > Introduced a

[PATCH v1 05/11] drm/vblank: drop use of DRM_WAIT_ON()

2019-07-18 Thread Sam Ravnborg
DRM_WAIT_ON() is from the deprecated drm_os_linux header and the modern replacement is the wait_event_*. The return values differ, so a conversion is needed to keep the original interface towards userspace. Introduced a switch/case to make code obvious and to allow different debug prints