drm/i915/guc: Enable send function only after successful init
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 2 May 2017 10:32:42 +0000 (10:32 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 May 2017 12:04:00 +0000 (13:04 +0100)
commit789a625158b0c0c2bc94a5dc404e7608d6100e5e
tree0cbca36ddcff0cf6fa571bff36ae0fafb1d861ed
parentcefcff8f93c3306bfd331a2eaa363263196fdf73
drm/i915/guc: Enable send function only after successful init

It is safer to setup valid send function after successful GuC
hardware initialization. In addition we prepare placeholder
where we can setup any alternate GuC communication mechanism.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170502103243.54940-1-michal.wajdeczko@intel.com
[ickle: Fixup ENODEV for an impossible error path]
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/intel_uc.c
drivers/gpu/drm/i915/intel_uc.h