Message ID | 20190503122949.12266-12-tomi.valkeinen@ti.com |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp546691ill; Fri, 3 May 2019 05:31:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyQeNnSL7jeqmoxTxnp4luXEWPEuez//ihbngZo3ZgzI6iMy7x+Zgu+Ivy79jYXsreuqiqL X-Received: by 2002:a17:902:704c:: with SMTP id h12mr9911065plt.270.1556886673810; Fri, 03 May 2019 05:31:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556886673; cv=none; d=google.com; s=arc-20160816; b=YEpqC+YWE2HrYhbb/BGTjvmtQ/5ukxEv+n3FGwY47Sj1AylLi5dzDdwqITYjWLf71n 6PnYJLk22YCidMfQBRhQOBD6xpIlUbUIFLMtFQ6cneh1ioX+oI3QvyC5IWFT2Ov/WBsy /Eztvn3CQNHoZ4H/cID4N4oUMHvenAQXvdAMalHAlcil3VQuZ4LpiT6yPPMUcnf5Z77M tFAsCIICZTT7+dHONX71h/S/yynUVIr1D3036R6OloEiOzEQTQ5Udcy9C+zUnZrp1w61 OGl1zGyu8bAoq/F8vdeFeNYLtgE5kmV24ImHUfH6O42CK79nk82VuTsJ9U+3mCEbIFB4 1IpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:delivered-to; bh=H8JzlLa7iR2VoxqAHALX5rYoRX7KONFsJWP/8AOlp34=; b=JAruKc4QRrLsr2MF/hefntHwmM2s5fKWPAxHucWdfQBo3oDZ6lunX403kI+uTf1hVt EcYdwc4lI+HtHPRxtheWToepNTYE5Mqf91tsHY5HCKSvERvH62WIkT9e/JvIZ/DYD98O ACY1vwJql8mrBusVESJR3T0I09MRMYdSRPIM9DYCJ3JcinHUGb1MtCBCvex1ytVerXi1 9EgjJr01AbDu2X3b/yNxcypP9YbggjDKV5uIwWncjp/Yj97y1Q/TyHjMJAwGhoiuU4gl j99FM522dZ7ux08sbz1gpAnxR76iDLcSEOPdNWFhi1RzSbQ89qZr3PKcxONGBgHDFKuL nZ+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id e6si1889491pgc.62.2019.05.03.05.31.13 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 May 2019 05:31:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1376289EA6; Fri, 3 May 2019 12:31:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2DA7A89EB1 for <dri-devel@lists.freedesktop.org>; Fri, 3 May 2019 12:31:10 +0000 (UTC) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x43CV7Z5095212; Fri, 3 May 2019 07:31:07 -0500 Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x43CV711110545 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 3 May 2019 07:31:07 -0500 Received: from DFLE104.ent.ti.com (10.64.6.25) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Fri, 3 May 2019 07:31:05 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Fri, 3 May 2019 07:31:05 -0500 Received: from deskari.lan (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x43CUYtt002029; Fri, 3 May 2019 07:31:03 -0500 From: Tomi Valkeinen <tomi.valkeinen@ti.com> To: Andrzej Hajda <a.hajda@samsung.com>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Lucas Stach <l.stach@pengutronix.de>, Andrey Gusakov <andrey.gusakov@cogentembedded.com>, Philipp Zabel <p.zabel@pengutronix.de>, Andrey Smirnov <andrew.smirnov@gmail.com>, Peter Ujfalusi <peter.ujfalusi@ti.com>, Jyri Sarha <jsarha@ti.com>, Benoit Parrot <bparrot@ti.com>, <dri-devel@lists.freedesktop.org> Subject: [PATCHv3 11/23] drm/bridge: tc358767: disable only video stream in tc_stream_disable Date: Fri, 3 May 2019 15:29:37 +0300 Message-ID: <20190503122949.12266-12-tomi.valkeinen@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190503122949.12266-1-tomi.valkeinen@ti.com> References: <20190503122949.12266-1-tomi.valkeinen@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1556886667; bh=U0s88hjpMcp+CwUIIMCeaqA+v8qLPzl6hAenrqDaA9A=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Z06CrQXV7CdCZWDMIOHEzxXysiWnvqS+y4gKSpqGIbnHRz89X6GhncnnzSrE3tpPa jBn9wzJ1zfmkdb+EZVS+OkkgUM/VxtHLy4h7n0q+mEdX+8Sfy3YntDSnIHthLmWSEf 6jprAOD/+eXrg2ajg8ch99CoLxguIEU0LSIaX3Uo= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: Tomi Valkeinen <tomi.valkeinen@ti.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
drm/bridge: tc358767: DP support
|
expand
|
On 03.05.2019 14:29, Tomi Valkeinen wrote: > Currently the code writes 0 to DP0CTL in tc_stream_disable(), which > disables the whole DP link instead of just the video stream. We always > disable the link and the stream together from tc_bridge_disable(), so > this doesn't cause any issues. > > Nevertheless, fix this by only clearing VID_EN in tc_stream_disable to > stop the video stream while keeping the link enabled. > > Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Andrzej Hajda <a.hajda@samsung.com> -- Regards Andrzej
diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index b22f5fe7ccfd..86e2e16c5a90 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -1076,10 +1076,13 @@ static int tc_stream_enable(struct tc_data *tc) static int tc_stream_disable(struct tc_data *tc) { int ret; + u32 val; dev_dbg(tc->dev, "disable video stream\n"); - tc_write(DP0CTL, 0); + tc_read(DP0CTL, &val); + val &= ~VID_EN; + tc_write(DP0CTL, val); tc_pxl_pll_dis(tc);
Currently the code writes 0 to DP0CTL in tc_stream_disable(), which disables the whole DP link instead of just the video stream. We always disable the link and the stream together from tc_bridge_disable(), so this doesn't cause any issues. Nevertheless, fix this by only clearing VID_EN in tc_stream_disable to stop the video stream while keeping the link enabled. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> --- drivers/gpu/drm/bridge/tc358767.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)