drm/i915/uc: Add init_fw/fini_fw to to intel_uc_ops
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 10 Jan 2020 22:27:21 +0000 (22:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 11 Jan 2020 08:34:28 +0000 (08:34 +0000)
commit39ddb8632035d318c905f41a6c574341504f91f6
treed5c0288859e7ff5cef903e955233c9ee72ce858e
parent6fbeda0bfd210f9bd6fef9b73e5d45b2612fbdcb
drm/i915/uc: Add init_fw/fini_fw to to intel_uc_ops

Firmware fetching and cleanup steps are only meaningful if we are
running with uC enabled. Make these functions part of the uc_ops.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@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/20200110222723.14724-3-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/gt/uc/intel_uc.c
drivers/gpu/drm/i915/gt/uc/intel_uc.h