Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3110184imu; Mon, 19 Nov 2018 10:45:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/X44dy39Wj1bvjr9tO1DdVUANt1xkoTCJdlAhzn+0+2v8i19TfXtO7nS+ap9jj4VYTZAw50 X-Received: by 2002:a17:902:b416:: with SMTP id x22mr8122630plr.276.1542653146702; Mon, 19 Nov 2018 10:45:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542653146; cv=none; d=google.com; s=arc-20160816; b=WplPeOLnvEI9TCIHdnKxBMVYMqU/mPu1Jn3xLvBkpV4v5Jf0TKAQNOnqSjcbxfXTNz zpjbUCuBuy9U7lUy0YVdHRBrjy2TzPYDX8Apquznfo0/x32FfKvAUm66mGCO01ht3SYm Qa2vp0QCyRIKinYubdxzEutTzZ9LRcyqH9g2zC38n8O6jV9SRI18dTjZLM/fGTkreqOC jN8e8fkP1KEapN4LETQQCaRc5xk8kXv+e8q2MUuFtC6ewVQsT19rydocq8V/RKhxssWA EfCkbislWMuZUTk5FKJzFgJfYsZGUeoh3acpVQudE0qotYNqfF6Zpcn6/IhItvI5pasv Myvg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4vk0uDNR7vBbfUST1hcVJnyaqwWiYrfE7olyI4GkBXE=; b=a/IyvduLPB5yVT1T15hir/4rz4U5gux16NwmtcXBgVbuXjtX0aTEsSb2R8+Klhk5VU gK67JFZE7zL3yXU+cm0CR1b8ICe5z55Cmamf3g9G0jWXdZ3MzW7IT4fw2YpW86crlLpm BM5RgQM1DFzqiMW86qVV+16mHWw2/JJgQldYZW+kH7Tz/LuB9SKdqSJo/sdQrqaVozfb y+P4fPohWIEeNqTrVq84kAXBxJf0P1bH4kwINXhgX8kYAP9llALFvtUk+m32/aHaIls5 uUPUDYRfdao0gEfc6zzF6HEVFRDz7E/wR4GgN6lPP4cyZCuVh0z4pfU2RJds4jmgVYID nMgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iJ1wSWr2; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i129si439218pfb.32.2018.11.19.10.45.31; Mon, 19 Nov 2018 10:45:46 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=iJ1wSWr2; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732753AbeKTDDh (ORCPT + 99 others); Mon, 19 Nov 2018 22:03:37 -0500 Received: from mail.kernel.org ([198.145.29.99]:36298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731810AbeKTDDf (ORCPT ); Mon, 19 Nov 2018 22:03:35 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C4B36206BA; Mon, 19 Nov 2018 16:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1542645566; bh=SZSUn6e3uyRQgGhprXeSl2lC5x4TYn9skgYg/AIyty4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iJ1wSWr22ACUZ2LGxQoIWkYf3cCvrK00uwHxRglHPzxfvp91CKQnWuaYK9M/ruHAE xZUsMLujEAtTp7KOOrz33vSzmAVID4zB/jXVvsD5z5w7HToXw5TpjRTXMum1e1Z0r3 KT7Lg7txQrULndnk5pwQ0hnRsNxgOszAg/aLA25Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Animesh Manna , Paulo Zanoni , Jose Roberto de Souza , Manasi Navare , Joonas Lahtinen Subject: [PATCH 4.19 192/205] drm/i915/icl: Fix the macros for DFLEXDPMLE register bits Date: Mon, 19 Nov 2018 17:28:19 +0100 Message-Id: <20181119162642.062073992@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181119162616.586062722@linuxfoundation.org> References: <20181119162616.586062722@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Manasi Navare commit e528c2affcf216b3d02b22004895cb678769629b upstream. This patch fixes the macros used for defining the DFLEXDPMLE register bit fields. This accounts for changes in the spec. Fixes: a2bc69a1a9d6 ("drm/i915/icl: Add register definition for DFLEXDPMLE") Cc: Animesh Manna Cc: Paulo Zanoni Cc: Jose Roberto de Souza Cc: # v4.19+ Signed-off-by: Manasi Navare Reviewed-by: José Roberto de Souza Link: https://patchwork.freedesktop.org/patch/msgid/20181023191248.26418-1-manasi.d.navare@intel.com (cherry picked from commit b4335ec0a3ee6229a570755f8fb95dc8a7c694f2) Signed-off-by: Joonas Lahtinen Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/i915/i915_reg.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/i915/i915_reg.h +++ b/drivers/gpu/drm/i915/i915_reg.h @@ -2097,8 +2097,12 @@ enum i915_power_well_id { /* ICL PHY DFLEX registers */ #define PORT_TX_DFLEXDPMLE1 _MMIO(0x1638C0) -#define DFLEXDPMLE1_DPMLETC_MASK(n) (0xf << (4 * (n))) -#define DFLEXDPMLE1_DPMLETC(n, x) ((x) << (4 * (n))) +#define DFLEXDPMLE1_DPMLETC_MASK(tc_port) (0xf << (4 * (tc_port))) +#define DFLEXDPMLE1_DPMLETC_ML0(tc_port) (1 << (4 * (tc_port))) +#define DFLEXDPMLE1_DPMLETC_ML1_0(tc_port) (3 << (4 * (tc_port))) +#define DFLEXDPMLE1_DPMLETC_ML3(tc_port) (8 << (4 * (tc_port))) +#define DFLEXDPMLE1_DPMLETC_ML3_2(tc_port) (12 << (4 * (tc_port))) +#define DFLEXDPMLE1_DPMLETC_ML3_0(tc_port) (15 << (4 * (tc_port))) /* BXT PHY Ref registers */ #define _PORT_REF_DW3_A 0x16218C