Received: by 10.223.176.5 with SMTP id f5csp1123541wra; Fri, 2 Feb 2018 11:35:36 -0800 (PST) X-Google-Smtp-Source: AH8x225VNXgaFoIeIme8mug70EQfz7wIuZNwWVTITmQe5PpXD0DeO8xfZ3LBozFk7RMpra4UpCfm X-Received: by 10.101.77.208 with SMTP id q16mr9774161pgt.395.1517600136429; Fri, 02 Feb 2018 11:35:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517600136; cv=none; d=google.com; s=arc-20160816; b=1EbOgD+9P3KsmUTFoehSvz76Kb84AcKo2kOKTZNwOEyXVXSsHxi3GseSuSo2mDpq8G wAOP6WzR7sSNFjeL2xuSP5b4Tf4If4hBnFnxURO2w8ITOUaXJYv7Ead/7JFjH371t2ft uZWh4BJh1+sQqgejUR1eyJdRNXwfGzbDXOYDLL/0uf2ESkC15W3vrtQBjvEejswd73LR h3kx9QOukW6wvHqYMkBF7D3NZlYELsr6E/Rr3AydjjiNUUk8wgAxqgTWjcX5BSYsI4Pm FFcTOougERPaVTrLd/7j7YA9l5XcgpkoN7bw8OLbjekC3nnzFrWLtmeCxSjQaFfTg1/S X2Tw== 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=ev2uTCBs+bNEU/rV6Y1Rtlr6wEM1wRmEuXgDeeYoFvA=; b=HYsZgFtt1QySl0gX9u1VK+qxP3O1tHGp79VUJwQ5FPfRmaJGFdORBYZ01YEHR49VNG hFWgB/2EtBqEx6IRfcf48yH5MSJlPLCGVXnSF2RZkbLgY8ZwZlybpQfMXt21fkFUt6tY j6kUNYO9hB0t13O5MPQw/5zU0ZbG9G4vIrNfXhJuyDx3/5WRz19UsZXMwmzl00PUStiI k1murwu33xUJtHFyHfED9RaWOQcGoTsSqWRybTw73DNQAUBEr4t7xeo6ky1gpalloh06 QJhhcnf9juBKB5qJ5dqjf5afvPsHoZ/Ia5Dt0nH+xIswIsPsyb0x9zDj1Xhx0Y60+mvs uJLQ== 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 x11-v6si2331517pln.665.2018.02.02.11.35.21; Fri, 02 Feb 2018 11:35:36 -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 S1753595AbeBBSMS (ORCPT + 99 others); Fri, 2 Feb 2018 13:12:18 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36874 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752476AbeBBRGu (ORCPT ); Fri, 2 Feb 2018 12:06:50 -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 3A341E8D; Fri, 2 Feb 2018 17:06:49 +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.9 56/86] drm/bridge: tc358767: fix DP0_MISC register set Date: Fri, 2 Feb 2018 17:58:16 +0100 Message-Id: <20180202140827.543409660@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140822.679101338@linuxfoundation.org> References: <20180202140822.679101338@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.9-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: