Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp774679imm; Wed, 20 Jun 2018 06:27:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK3x1t44qRuXKxBahQDYuQL5sYfIW0A163eEFT3TXeZMLmhfOizTPqeEgGDxOwlfp+0zOeM X-Received: by 2002:a63:2a45:: with SMTP id q66-v6mr2287459pgq.210.1529501273729; Wed, 20 Jun 2018 06:27:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529501273; cv=none; d=google.com; s=arc-20160816; b=u5sr4yX75XRIX8jJV3t1GmKzLA/efkiNv1Lu0VRWOVJzTO6GWJrE5Xf0otkZwbx93W 3n3l2+nrF1plfnEiid19wnTTitYMmHNT071kucoRfsggwc+O4W9a24UKnrNgdp7MynBA HNbYEhQHlArglErwX0MtS8tCfVoyczEqP9n6b/i/JtAAPMz2eMFl529mPZEARswsczWh ZGa2xRZXW9XAU4HWcjWxssqPd8AouFCfkhC8wYXpl1XT0oJ0wWqiABDiGBMJVkaHroi4 QEs97N5i8PkxvXj8qO1uFPZKCgLmwYwyIZoLdfTOuxvpLl3lBnZudBTHuoHgIF+YWfgS eV+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=vBShzZiOpzeAB23S/fXczoS4k9i1yPaiFHSNi8fzxZE=; b=cPvMVS4hzMSI5TQlJT66Ru+jJyYb1TiICmNHmpGpCHyQURSQcy4/tiA46/h5U+irN+ Gbp2VFyUiAOU7LSAtO+EC6r4uUxy4/hsvCdLthUvQYV2FyyNAwMVqYv49UoOpMm9QiJh mS9utzpYSuIJ2wrt91X1251/vi8GkjZBT7N0VBRrzoUlPyztwwMpZphnJHEXUm+HnmdD gJjY/n+haZPcbf4aL7sEwsi4uNMPcmk2By5+GpCvdKh/Dv1MZnQdgbPJ1LOiAvlhjycC gZ+m5/QpuZgWE0GOmJ3szOFEnVai2y1W6qQ6iDkLs0XXYLrDgmwOnpFWwvvKJMgTg7SI Fgug== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a12-v6si2326231plp.225.2018.06.20.06.27.39; Wed, 20 Jun 2018 06:27:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754173AbeFTNZ5 (ORCPT + 99 others); Wed, 20 Jun 2018 09:25:57 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:47550 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754168AbeFTNZu (ORCPT ); Wed, 20 Jun 2018 09:25:50 -0400 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1fVd7H-0000za-KW; Wed, 20 Jun 2018 13:25:43 +0000 From: Colin King To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] drm/i915/psr: fix copy-paste error with setting of tp2_wakeup_time_us Date: Wed, 20 Jun 2018 14:25:43 +0100 Message-Id: <20180620132543.28092-1-colin.king@canonical.com> X-Mailer: git-send-email 2.17.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Colin Ian King Currently for the psr_table->tp2_tp3_wakeup_time case 3 there appears to be a copy-paste error from the previous switch statement where dev_priv->vbt.psr.tp1_wakeup_time_us is being assigned and I believe it should be dev_priv->vbt.psr.tp2_tp3_wakeup_time_us that should be assigned instead. Detected by CoverityScan, CID#1470105 ("Copy-paste error") Fixes: 77312ae8f071 ("drm/i915/psr: vbt change for psr") Signed-off-by: Colin Ian King --- drivers/gpu/drm/i915/intel_bios.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/intel_bios.c b/drivers/gpu/drm/i915/intel_bios.c index 03f04b472394..e0a14be1080a 100644 --- a/drivers/gpu/drm/i915/intel_bios.c +++ b/drivers/gpu/drm/i915/intel_bios.c @@ -740,7 +740,7 @@ parse_psr(struct drm_i915_private *dev_priv, const struct bdb_header *bdb) dev_priv->vbt.psr.tp2_tp3_wakeup_time_us = 100; break; case 3: - dev_priv->vbt.psr.tp1_wakeup_time_us = 0; + dev_priv->vbt.psr.tp2_tp3_wakeup_time_us = 0; break; default: DRM_DEBUG_KMS("VBT tp2_tp3 wakeup time value %d is outside range[0-3], defaulting to max value 2500us\n", -- 2.17.0