drm/i915/huc: Use helper function while waiting for DMA completion
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 24 Oct 2017 10:50:56 +0000 (10:50 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 26 Oct 2017 20:35:21 +0000 (21:35 +0100)
commitbad7b7e674cf94775cf86a7c4331bab61d79d7ea
tree1e4b83a185fa48ec878407d2275a3afe940ae3af
parentc41937fd994a449b4e862826d7eb9f366f6d33e9
drm/i915/huc: Use helper function while waiting for DMA completion

Waiting for DMA status register can be done with dedicated function.
Lets use it as additional bonus will be smaller driver footprint.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171024105056.43276-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_huc.c