Received: by 10.223.176.5 with SMTP id f5csp1021427wra; Fri, 2 Feb 2018 09:51:00 -0800 (PST) X-Google-Smtp-Source: AH8x227Dvw8Pz5vy2NMub2AN1RlBHqBJ3bfYIEAN73pXxPFyTEqwWFgb1hevhHWUm0NOh8FSSwuO X-Received: by 2002:a17:902:1703:: with SMTP id i3-v6mr26320105pli.145.1517593860695; Fri, 02 Feb 2018 09:51:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517593860; cv=none; d=google.com; s=arc-20160816; b=kvhqCYfSAercApuuauRJTKIC5wRj8B4MgnzftmZlGCPz3ZJ/q8VAdq2sEgE+G8nlZA ymDYEiGYpaFKwT5IQ6xDwktVAeoodKvEpToQ+fjOqRoy8ve8zZ3iHOBW7A4CNHAv0vKu vl/+Da9BafQb7t+inbwkBZO7+64gMVHnuJRdOij5Yyr7IIxOeql86QzyPxl61O5E+4Av KLswySjHul7nRx+SwfvY3ewZsWxOkyOIJW7idAfhTDTcaZUr+5kNsw5sgNqC2yW223lM rbMZjRkHT7pqm/ubGksuaV9InkdAtD6OOV9mbdJzan6SgQ5h8XC+LsLpguPFvnB6a/3g lKag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=YVLELla9xfzOF+vwxqy5QcqIc2SYegi14EePlJ22eqY=; b=Le2OTPQzadNhcmxDxzqmxwHayPLomYWnKbvIQFi1heip+fiV5Uq075R+U56kvX4F3m ie/dgF+E6Ju2aIFE2flbDUpkB3eluYQ4sSGK6cr5UInM/+wdfrATWouo0zCQ7tc5/+It tMf5cGRty6uso2jnaWP35UjLR0NhmHpkYiLGj70dqLHVeVyCZQ7YSw14PqDCqyv7Obaf 7CwJM+iQfLL5VxNFhYUBVYAuk0sPccC0qiY8EYNYFGB1cUaA1VFQklljx+aQ4i2GoyHS 4zzwS3qnt6KhmhffxpYT+0pJ+pjm86eXrxXxB4vr4C1PjtgtC7NUoNEbl33amDYcAdyW 1csA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c6-v6si227884plr.681.2018.02.02.09.50.45; Fri, 02 Feb 2018 09:51:00 -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; 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 S1753606AbeBBRtr (ORCPT + 99 others); Fri, 2 Feb 2018 12:49:47 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39318 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753341AbeBBRNZ (ORCPT ); Fri, 2 Feb 2018 12:13:25 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id BFE04EF7; Fri, 2 Feb 2018 17:13:24 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Philipp Zabel , Andrey Gusakov , Andrzej Hajda , Sasha Levin Subject: [PATCH 4.14 108/156] drm/bridge: tc358767: fix DP0_MISC register set Date: Fri, 2 Feb 2018 17:58:09 +0100 Message-Id: <20180202140845.072909468@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140840.242829545@linuxfoundation.org> References: <20180202140840.242829545@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andrey Gusakov [ Upstream commit f3b8adbe1911f66fd3cab1aaa74f0f66b7ceda25 ] Remove shift from TU_SIZE_RECOMMENDED define as it used to calculate max_tu_symbols. Acked-by: Philipp Zabel Signed-off-by: Andrey Gusakov Signed-off-by: Andrzej Hajda Link: https://patchwork.freedesktop.org/patch/msgid/1510073785-16108-4-git-send-email-andrey.gusakov@cogentembedded.com Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/bridge/tc358767.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -97,7 +97,7 @@ #define DP0_ACTIVEVAL 0x0650 #define DP0_SYNCVAL 0x0654 #define DP0_MISC 0x0658 -#define TU_SIZE_RECOMMENDED (0x3f << 16) /* LSCLK cycles per TU */ +#define TU_SIZE_RECOMMENDED (63) /* LSCLK cycles per TU */ #define BPC_6 (0 << 5) #define BPC_8 (1 << 5) @@ -716,7 +716,8 @@ static int tc_set_video_mode(struct tc_d * Must be less than tu_size. */ max_tu_symbol = TU_SIZE_RECOMMENDED - 1; - tc_write(DP0_MISC, (max_tu_symbol << 23) | TU_SIZE_RECOMMENDED | BPC_8); + tc_write(DP0_MISC, (max_tu_symbol << 23) | (TU_SIZE_RECOMMENDED << 16) | + BPC_8); return 0; err: