mbox series

[CI,v4,0/4] Add ops to intel_uc

Message ID 20200110222723.14724-1-michal.wajdeczko@intel.com (mailing list archive)
Headers show
Series Add ops to intel_uc | expand

Message

Michal Wajdeczko Jan. 10, 2020, 10:27 p.m. UTC
Instead of spreading multiple conditionals across the uC code
to find out current mode of uC operation, start using predefined
set of function pointers that reflect that mode.

v2: rebased, using macro to generate ops helpers 
v3: reuse __uc_check_hw to avoid redundant comment
v4: forward declare ops struct vs functions

Michal Wajdeczko (4):
  drm/i915/uc: Add ops to intel_uc
  drm/i915/uc: Add init_fw/fini_fw to to intel_uc_ops
  drm/i915/uc: Add init/fini to to intel_uc_ops
  drm/i915/uc: Add sanitize to to intel_uc_ops

 drivers/gpu/drm/i915/gt/uc/intel_uc.c | 75 +++++++++++++++++----------
 drivers/gpu/drm/i915/gt/uc/intel_uc.h | 36 ++++++++++---
 2 files changed, 78 insertions(+), 33 deletions(-)