drm/i915/gen9: extract parse_csr_fw
authorDaniel Vetter <daniel.vetter@intel.com>
Thu, 12 Nov 2015 15:11:29 +0000 (17:11 +0200)
committerJani Nikula <jani.nikula@intel.com>
Thu, 12 Nov 2015 15:28:27 +0000 (17:28 +0200)
commit6a6582bfff39f099d0867e8b97b409efd1d84b9a
tree6b827630375c2562e093648e56335f20a8b0ecc8
parentf4448375467d9443a1e74e0552212121b6394332
drm/i915/gen9: extract parse_csr_fw

The loader function will get a bit more complicated soon, extract the
parsing code to make the control flow clearer. While doing that just
use dev_priv->csr.dmc_payload as the indicator for whether it all
suceeded or not.

v2-v3:
- unchanged
v4:
- rebased on top of latest drm-intel-nightly

Cc: Damien Lespiau <damien.lespiau@intel.com>
Cc: Imre Deak <imre.deak@intel.com>
Cc: Sunil Kamath <sunil.kamath@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Animesh Manna <animesh.manna@intel.com>
[imre: remove note about BE cast from commit message, it's not relevant
 any more]
Signed-off-by: Imre Deak <imre.deak@intel.com>
Tested-by: Daniel Stone <daniels@collabora.com> # SKL
[Jani: fix checkpatch warn on multiple blank lines]
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1447341089-2735-1-git-send-email-imre.deak@intel.com
drivers/gpu/drm/i915/intel_csr.c