Message ID | 20190528082747.3631-8-tomi.valkeinen@ti.com |
---|---|
State | Accepted |
Commit | 5761a259aa9efc61b3253675643a87b3092e90b5 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp8168852ili; Tue, 28 May 2019 01:28:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqyacT/q5v/fJ4k8kvTJ981j5comxFd6KZL4X0FOaRCDu6TY2lvzyrhB/pU5oJZSO9pAXyND X-Received: by 2002:a17:902:ab8c:: with SMTP id f12mr29766487plr.216.1559032110538; Tue, 28 May 2019 01:28:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559032110; cv=none; d=google.com; s=arc-20160816; b=L/qdFTxJpnt/JTykOCjZ7J/FEhQACSSE69edOSWtBbF9x5+bmg7p/s/MIefEzEbLqA YxO9OEjHj8cnoHS6zd29Gdyp5s5eBLOtZab/lMUxHXrUAhC8BtAFZLGL8Y2UHhjGRoaJ Y6RqoMxglZWEnCusAe1FIoETWzSPllMSm2NhvvOj9H9vEWgegCcX6vaGHQs5dWXTDh0F 1/QswDRBzIX6bOSExw0HyKPJUbsnt8cZ5Z0WZU4v7R5pYENcqrJHw2uQPss34UhLeWdY 60pbyqLpMkrsVXPYpGYq3MXE/k3elvt1g0g+t3pE55viUX87TyLXVIHDqP3MBktSVF5e ok8g== 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=OFups87YcGb1Xkdbw/kuX4W72Tu2+zvybrhRhTZsMJY=; b=I2y7wFqFQIddBQeD8Pm4i7SsVttNwkorGQT21JKvBDNiLK4a8q69RSBISEvNB5MBl5 y8Uk25rOhzgqCPoX5ZaM1/F8UfToZ6XlPI9fKQ4bBud59JS81pdkD+PUZIj3WGg+pBJW ZkyM4wLuShmNOCIdohnFMl1Y2YUBHFXVw7TMuj4vSv7FnmDII6ywZoUbF39niE6cS8VJ SLF6TvXm93qaxez/dopoSgJWZ2kkhb02olHhTRIKpYIXEGP9IwGiUdwL3F9Y6dPVOlZz bkd6VHN7VGHV8hSsHOq2iCcY2q3hELxRHnOs82ORvyNrM10H8By3zPtw1kGFNxF0I1QY TSKA== 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 31si22500230plb.30.2019.05.28.01.28.30 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 01:28:30 -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 6F1EC89C99; Tue, 28 May 2019 08:28:28 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9821189C96 for <dri-devel@lists.freedesktop.org>; Tue, 28 May 2019 08:28:23 +0000 (UTC) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x4S8SKqr125154; Tue, 28 May 2019 03:28:20 -0500 Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x4S8SKwn008473 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 May 2019 03:28:20 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 28 May 2019 03:28:19 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE102.ent.ti.com (10.64.6.23) 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; Tue, 28 May 2019 03:28:19 -0500 Received: from deskari.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x4S8Rxub125039; Tue, 28 May 2019 03:28:17 -0500 From: Tomi Valkeinen <tomi.valkeinen@ti.com> To: <dri-devel@lists.freedesktop.org>, 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> Subject: [PATCHv4 07/24] drm/bridge: tc358767: move video stream setup to tc_main_link_stream Date: Tue, 28 May 2019 11:27:30 +0300 Message-ID: <20190528082747.3631-8-tomi.valkeinen@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190528082747.3631-1-tomi.valkeinen@ti.com> References: <20190528082747.3631-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=1559032100; bh=ubQKBchvHb1DbHv0IZwtMtXBvY0Jz1i/ykl/EdWvH34=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Nn3qXxuCDJTFfWL1w+GK3UqddweV95T9nqZmgpXvicg/qBky4mPHXMbEaYXh8Xv3n vG9eetTtXBvzplZijFl5O8x5LOymG2eNMvtyCdwNhzIHNPkQmHe56UYqCR8GIAYJ2u anUuZPrS0SZZY1WmjYNdc3kXaA5UQ+7BfMMt8WAE= 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
|
diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index 39a9de880e5a..4de21c3883d8 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -1004,15 +1004,6 @@ static int tc_main_link_setup(struct tc_data *tc) return -EAGAIN; } - ret = tc_set_video_mode(tc, tc->mode); - if (ret) - goto err; - - /* Set M/N */ - ret = tc_stream_clock_calc(tc); - if (ret) - goto err; - return 0; err_dpcd_read: dev_err(tc->dev, "Failed to read DPCD: %d\n", ret); @@ -1031,6 +1022,15 @@ static int tc_main_link_stream(struct tc_data *tc, int state) dev_dbg(tc->dev, "stream: %d\n", state); if (state) { + ret = tc_set_video_mode(tc, tc->mode); + if (ret) + goto err; + + /* Set M/N */ + ret = tc_stream_clock_calc(tc); + if (ret) + goto err; + value = VID_MN_GEN | DP_EN; if (tc->link.base.capabilities & DP_LINK_CAP_ENHANCED_FRAMING) value |= EF_EN;