Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1820730imm; Mon, 3 Sep 2018 10:16:54 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZTrB5vY3KvJ91bQvUFSFPEYLLn/7wynjbbqIT+nReU24nsEcoIKu0wkM0kdN4GB096W9fo X-Received: by 2002:a17:902:24e1:: with SMTP id l30-v6mr29639557plg.315.1535995014143; Mon, 03 Sep 2018 10:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535995014; cv=none; d=google.com; s=arc-20160816; b=I3riCAyJlQaiIP6Y5EQqgaLMHsnSkfWksxyQI/G5o2Xd672B5e37EFct13aFznlox/ pzjTeoMqKNT/Xivl/MpQ55woDodRxYSE8Rfgk730cwn88PbT33FD8ogLkKK5oyukkX3w +ru3lwys3RN+Ruw7650qMzpJE/hD+qFpXsJsMbbjVQZApMRiueRZXPvciMIAtbHwNQ9M fh/+FUuMZ4mTiEaPaDW8+FDMVzYwHC/+wsfNjjBAT5w15dNMFoV5c6j90ATcNbMpghC9 0DIYq5TwpiA1bcfceijayZRsUYIaoNglxm+vXKlC1yp3kV88FaTk0QbsdSmeVOe7Dv7z Xk0w== 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=27dqS+1xooSQbiw0TIvpG1ugntk6w/BzMNhIKNRJV4I=; b=FaeYcO6GlTXFJhD4LtVLv9zsVq4+bCNUtAmS07FKHxGYuqUKVrq5JhlYJQcILrNz1F /Ow26lYGFRO/xYYtxiD8SZ83avPn4PZCl8f4pduu+qTRlShHYdpAidyxHJhg87cS5AyC DsHE+QJk0YmSscv1RHgqS31bzcmP8mycH9nFtUZgyQoLmoTSUQrPyYb5B6UqzTq6Aokc 0mE/bkudq+WUcXZ6tx0MulIVi36TeLi35SgWSwkgSVWBQ4v8A91k+X7Hp8ew2fnZKn6n hCuMJJqqY3k/fWXB8MKzTUKRBRunk2Skb9nvAJIyLqLQH1WoeqbNOA8+AH2iBEptn0c0 t2pA== 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 190-v6si20711428pfu.343.2018.09.03.10.16.39; Mon, 03 Sep 2018 10:16:54 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729675AbeICVgi (ORCPT + 99 others); Mon, 3 Sep 2018 17:36:38 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:42410 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728676AbeICVgh (ORCPT ); Mon, 3 Sep 2018 17:36:37 -0400 Received: from localhost (ip-213-127-74-90.ip.prioritytelecom.net [213.127.74.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 596F4D02; Mon, 3 Sep 2018 17:15:33 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas Stach , Philipp Zabel , Sasha Levin Subject: [PATCH 4.14 012/165] drm/imx: imx-ldb: disable LDB on driver bind Date: Mon, 3 Sep 2018 18:54:58 +0200 Message-Id: <20180903165655.622866839@linuxfoundation.org> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180903165655.003605184@linuxfoundation.org> References: <20180903165655.003605184@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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: Lucas Stach [ Upstream commit b58262396fabd43dc869b576e3defdd23b32fe94 ] The LVDS signal integrity is only guaranteed when the correct enable sequence (first IPU DI, then LDB) is used. If the LDB display output was active before the imx-drm driver is loaded (like when a bootsplash was active) the DI will be disabled by the full IPU reset we do when loading the driver. The LDB control registers are not part of the IPU range and thus will remain unchanged. This leads to the LDB still being active when the DI is getting enabled, effectively reversing the required enable sequence. Fix this by also disabling the LDB on driver bind. Signed-off-by: Lucas Stach Signed-off-by: Philipp Zabel Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/imx/imx-ldb.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/gpu/drm/imx/imx-ldb.c +++ b/drivers/gpu/drm/imx/imx-ldb.c @@ -612,6 +612,9 @@ static int imx_ldb_bind(struct device *d return PTR_ERR(imx_ldb->regmap); } + /* disable LDB by resetting the control register to POR default */ + regmap_write(imx_ldb->regmap, IOMUXC_GPR2, 0); + imx_ldb->dev = dev; if (of_id)