[openchrome-devel] [PATCH v1 1/6] drm/via: drop use of DRM(READ|WRITE) macros

2019-07-18 Thread Sam Ravnborg
The DRM_READ, DRM_WRITE macros comes from the deprecated drm_os_linux.h header file. Remove their use to remove this dependency. Replace the use of the macros with open coded variants. Signed-off-by: Sam Ravnborg Cc: Kevin Brace Cc: Thomas Hellstrom Cc: "Gustavo A. R. Silva" Cc: Mike Marshall

[openchrome-devel] [PATCH/RFT v1 0/6] drm/via: drop use of deprecated headers drmP.h and drm_os_linux.h

2019-07-18 Thread Sam Ravnborg
This is some janitorial updates to the via driver that is required to get rid of deprecated headers in the drm subsystem. The first three patches are trivial, where the dependencies on drmP.h and drm_os_linux are dropped. The remaining three patches drop use of DRM_WAIT_ON(). They are replaced by

[openchrome-devel] [PATCH v1 5/6] drm/via: drop DRM_WAIT_ON() in via_irq

2019-07-18 Thread Sam Ravnborg
Replace DRM_WAIT_ON() with wait_event_interruptible(). While replacing be careful to keep same return value semantics. Signed-off-by: Sam Ravnborg Cc: Kevin Brace Cc: Thomas Hellstrom Cc: "Gustavo A. R. Silva" Cc: Mike Marshall Cc: Ira Weiny Cc: Daniel Vetter Cc: Emil Velikov --- drivers/

[openchrome-devel] [PATCH v1 3/6] drm/via: drop use of drmP.h

2019-07-18 Thread Sam Ravnborg
Drop use of the deprecated drmP.h header. While touching the files divide include files in blocks and sort the files alphabetically. Signed-off-by: Sam Ravnborg Cc: Kevin Brace Cc: Thomas Hellstrom Cc: "Gustavo A. R. Silva" Cc: Mike Marshall Cc: Ira Weiny Cc: Daniel Vetter Cc: Emil Velikov

[openchrome-devel] [PATCH v1 2/6] drm/via: make via_drv.h self-contained

2019-07-18 Thread Sam Ravnborg
Added the necessary header files to make this header file self-contained. Signed-off-by: Sam Ravnborg Cc: Kevin Brace Cc: Thomas Hellstrom Cc: "Gustavo A. R. Silva" Cc: Mike Marshall Cc: Ira Weiny Cc: Daniel Vetter Cc: Emil Velikov --- drivers/gpu/drm/via/via_drv.h | 6 +- 1 file chan

[openchrome-devel] [PATCH v1 4/6] drm/via: drop DRM_WAIT_ON() in via_dmablit.c

2019-07-18 Thread Sam Ravnborg
DRM_WAIT_ON() is a reliec from the past and is discouraged. Use the standard wait_event_*() as replacement. Be carefull to keep the same return values. via_dma_blit_sync() changed -EINTR to -EAGAIN. Moved this to via_dmablit_sync() so return value is adjusted only once. Signed-off-by: Sam Ravnbo

[openchrome-devel] [PATCH v1 6/6] drm/via: drop DRM_WAIT_ON() in via_video

2019-07-18 Thread Sam Ravnborg
Replace DRM_WAIT_ON() with wait_event_interruptible(). Be careful to keep same return value semantics Signed-off-by: Sam Ravnborg Cc: Kevin Brace Cc: Thomas Hellstrom Cc: "Gustavo A. R. Silva" Cc: Mike Marshall Cc: Ira Weiny Cc: Daniel Vetter Cc: Emil Velikov --- drivers/gpu/drm/via/via_v