]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/i915/skl: Don't try to store the wrong central frequency
authorDamien Lespiau <damien.lespiau@intel.com>
Thu, 7 May 2015 17:38:47 +0000 (18:38 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 29 May 2015 08:15:26 +0000 (10:15 +0200)
The orignal code started by storing the actual central frequency (in Hz,
using a uint64_t) in a uint32_t which codes for the register value. That
can't be right.

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ddi.c

index 8bb5291ca4da3401ebf271011e96beb6da19d18d..832e4e141b3d65ee808848285756159cd165c1e5 100644 (file)
@@ -1121,8 +1121,6 @@ static void skl_wrpll_params_populate(struct skl_wrpll_params *params,
 {
        uint64_t dco_freq;
 
-       params->central_freq = central_freq;
-
        switch (central_freq) {
        case 9600000000ULL:
                params->central_freq = 0;