Skip to content

Commit

Permalink
drm/i915: Stash hpd status bits under dev_priv
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ville Syrjälä committed May 11, 2020
1 parent edc0e09 commit 0398993
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 89 deletions.
2 changes: 2 additions & 0 deletions drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ enum hpd_pin {
struct i915_hotplug {
struct delayed_work hotplug_work;

const u32 *hpd, *pch_hpd;

struct {
unsigned long last_jiffies;
int count;
Expand Down
Loading

0 comments on commit 0398993

Please sign in to comment.