OSDN Git Service

drm/i915: Sprinkle WARN(!pll) into icl/dg1 .clock_enable()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 5 Feb 2021 21:46:29 +0000 (23:46 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 16 Feb 2021 12:35:51 +0000 (14:35 +0200)
commitf67a008e02e5751296300f9e7aa1028afc4a4964
tree6b7737d099c9d00c1e02570d0fe7c65122dd383b
parentbe317ca0a338ab3976d7c74975458638d0cedf90
drm/i915: Sprinkle WARN(!pll) into icl/dg1 .clock_enable()

The other DDI .enable_clock() functions are trying to protect us
against pll==NULL. A bit tempted to throw out all the WARNs as
just unnecessary noise, but I guess they might have some use
when poking around the shared_dpll code (not sure it wouldn't
oops elsewhere though). So let's unify it all and sprinkle in
the missing WARNs for icl/dg1.

Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210205214634.19341-11-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_ddi.c