Message ID | 20190528082747.3631-3-tomi.valkeinen@ti.com |
---|---|
State | Accepted |
Commit | c28d14849d374c89ae17134a5bc4a3818fe72467 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp8168671ili; Tue, 28 May 2019 01:28:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqw7NSvIlGBmVmgY3zSuyGhb2yliwI5QEKY7uoCunj6hrj5IiHMevrckoAqvjqyGEJsBxJC6 X-Received: by 2002:a63:700b:: with SMTP id l11mr74338552pgc.449.1559032096603; Tue, 28 May 2019 01:28:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559032096; cv=none; d=google.com; s=arc-20160816; b=qeDTGsCoU18RM7VlY6PuA7yO9BItCF/ASlc2ECZFbv2LaAHMzUaDziS3o6WTLoJ+pb 5LhTtHeFKIcshgZdQuG8vUlJ0G4KN91uzTJNErz5eIAcuUTjfudlRmrkywGicqeBzPsK khXSefsihL1ovnKesfw8RitpE7OvfB5H0cLPogkbWLJUpfjvVhEHcVAXKwtcycsWx+Ng Q2E3l0vhe/dwqXQl+khicQktLoTYRbdHqCjF0C6H39jm6fOf7cHyb+hZJ1RUQunHOnLM 1kaON0tS7Ag/6N0ghiuHNWJoYkgWyM1KXBB6UzPJowcy0RBjLVotPiaolItyhDNK6Rlw hEPg== 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=7B1ZDTn6l2RwaMHeG7lk6SexhInEVOAFlzgdGpH+8+c=; b=K2qq6WYfpmioKDDkFMOyxH187ZW2XCh11JCap2ak5DiEuHjJXAgBUOgJkjrdUxDdD7 CNW4H6Zr0mQbMB/mmyiRTeogxD4i4Sl+ngwAyS4v57WBfnSos52aQne0vspdq7a+JUC+ iZUGGKWM7bY1UFzItr3apj/sBrzfsVVwzKcZpyq06BH9cLWUhaqurv8xqM/lsNKRYZgB VccJuDgob1re0l3jHrs4NyHqPSRKK1uQjGhSAU6PdZb2CLKhMbtcnojL1gVifdjdVckd TSuZCZ5uH7E5BUAQYQUk+FEhFSsWJc5C7OyFNQxj2EpgmJ8bqva12u9V6oBmx+hrrMRK ztqg== 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 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id m8si21082702pls.412.2019.05.28.01.28.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 May 2019 01:28:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 972AC89C37; Tue, 28 May 2019 08:28:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by gabe.freedesktop.org (Postfix) with ESMTPS id 58FFA89C21 for <dri-devel@lists.freedesktop.org>; Tue, 28 May 2019 08:28:10 +0000 (UTC) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x4S8S7l0055231; Tue, 28 May 2019 03:28:07 -0500 Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x4S8S79q082400 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 28 May 2019 03:28:07 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) by DLEE104.ent.ti.com (157.170.170.34) 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:06 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE111.ent.ti.com (157.170.170.22) 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:06 -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 x4S8RxuW125039; Tue, 28 May 2019 03:28:04 -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 02/24] drm/bridge: tc358767: reset voltage-swing & pre-emphasis Date: Tue, 28 May 2019 11:27:25 +0300 Message-ID: <20190528082747.3631-3-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=1559032087; bh=YyyGfoBNgg9NBCusJmpiXF4UBG9Bb/du7Yi65Y83ykg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=EKqn7IqwgvKneOy+ZZFaLvslowRpFhfKQLmKuF0bT4Mdu38b2BBgvXvQJZj3VVszh rKI01odeJC5S9BQGF62kqiFkyOnSqXOUq6F/ZYyvtPKb8awUECXZx8inGoLAvdSkY0 WzOyV5InNCJMofjtBitMrG/6Y4kiJbZGd9PVO7Fg= 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 b6c4d1063ccb..c8b04f711db3 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -956,6 +956,13 @@ static int tc_main_link_setup(struct tc_data *tc) if (ret < 0) goto err_dpcd_write; + /* Reset voltage-swing & pre-emphasis */ + tmp[0] = tmp[1] = DP_TRAIN_VOLTAGE_SWING_LEVEL_0 | + DP_TRAIN_PRE_EMPH_LEVEL_0; + ret = drm_dp_dpcd_write(aux, DP_TRAINING_LANE0_SET, tmp, 2); + if (ret < 0) + goto err_dpcd_write; + ret = tc_link_training(tc, DP_TRAINING_PATTERN_1); if (ret) goto err;