drm/i915: Stash hpd status bits under dev_priv
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 7 May 2020 11:48:08 +0000 (14:48 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 11 May 2020 13:29:10 +0000 (16:29 +0300)
commit0398993b82f40ad02d88da7c894e3faae2da3b0a
treebc141106081dfa559e263ddbec84d27aa9945a76
parentedc0e09c6ba81fc7a06cc68deec430519b7d18d8
drm/i915: Stash hpd status bits under dev_priv

Instead of constnantly having to figure out which hpd status bit
array to use let's store them under dev_priv.

Should perhaps take this further and stash even more stuff to
make the hpd handling more abstract yet.

v2: Remeber cnp (Imre)
    Add MISSING_CASE() for unknown PCHs (Imre)

Cc: Imre Deak <imre.deak@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200507114808.6150-1-ville.syrjala@linux.intel.com
Reviewed-by: Imre Deak <imre.deak@intel.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_irq.c