drm/i915: Make intel_uc_sanitize_options() more robust
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 15 Mar 2017 13:37:41 +0000 (13:37 +0000)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 16 Mar 2017 08:57:46 +0000 (08:57 +0000)
commitd4a70a10f56f9a598d9bed0b492bc1221311c4bf
tree516097d543ca9fa461c49e6e60e063aa050b8920
parent6833b82e98af18954fa4d13dc9975e97afc8338f
drm/i915: Make intel_uc_sanitize_options() more robust

After negative guc fw selection we could leave guc
submission flag still turned on. Reorder some checks
to cover this case. While here, fix info message and
return early if there is no Guc.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
[tursulin: fixup bad alignment]
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170315133741.150420-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_uc.c