From patchwork Mon Oct 29 11:47:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 149661 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4026646ljp; Mon, 29 Oct 2018 04:48:02 -0700 (PDT) X-Google-Smtp-Source: AJdET5drgAcMnkQ7lWDLW/YPr6c5BZ2CTcq6on1y/In6XKIoCaYa/YBJ5Z4BkZQc7d86Rb/f4Yc8 X-Received: by 2002:a62:22c3:: with SMTP id p64-v6mr15147154pfj.9.1540813682360; Mon, 29 Oct 2018 04:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540813682; cv=none; d=google.com; s=arc-20160816; b=GfmOMYnOGt5Q2a/0NmGSsTyH3jf/tuCrn4/nzlisSZ1OnufAz+Z4rUxxX874LjAsMS pDvrzjEMtzWmhE7lpcYN6W7Aa3xueVuov2u4CwqrHvuynTQ3Q8RMFHSyyxmsnszCVXSM EhUgUsNJYLXjBnbbua6dltvtr54D9XaP59U6P7qe1zSzlnESqMJldkJNXzIjraa8wdvI 5ExauUZciDdeJgwQelSSClvRG99P0vTMXcLoIvH5ClybQC7tPIRDSCxWM6OueSM/BLCS PBkesumWu/8nYoSjyTkx7fWU03JvgFkBDtf7xjHtavJ/+XQ5SMv/qvyFItKkEanlCraI rfYA== 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=6jYBacxxtzrd19La9gJmeXT0nwDHexksnZCTusIsXvo=; b=otaHY49sYHIwHevFmTDWbWICZJ8UE6DOcPC0ZIH7qAAt1VmAb+2Et0tfSvpYIJPbBf N4xZOBAS31KMkjTK70fSiKKvIFaN2MQNAaXT/5/G1yCCdg7Bmld3qGsKmYJKmYoIX9di 5romdtyWwOeLxaKkTlXQjBcQ3TSHKjdaH4js6h+5muVns+0rZrD6BGBYigUuAE4Q6nnw +WswQJqUQtF3haAZuo/reU8IOg/op5zIz744X5h+KLdPgetW92uQ2uZxMRLzWo8A42wA RVw9sdOYRE1ciA+QH8VzXdHMqh9bsIUEpw7cPi/NRBWx8VH7BBoLU4ehmONqcsnPmzxJ Efiw== 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: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id r22-v6si23865922pfr.18.2018.10.29.04.48.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Oct 2018 04:48:02 -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 AECE989E05; Mon, 29 Oct 2018 11:47:25 +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 B2F0589E06 for ; Mon, 29 Oct 2018 11:47:24 +0000 (UTC) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id w9TBlLf3095245; Mon, 29 Oct 2018 06:47:21 -0500 Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id w9TBlLQ0057596 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Oct 2018 06:47:21 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 29 Oct 2018 06:47:21 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1466.3 via Frontend Transport; Mon, 29 Oct 2018 06:47:20 -0500 Received: from deskari.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id w9TBl70K007729; Mon, 29 Oct 2018 06:47:19 -0500 From: Tomi Valkeinen To: Archit Taneja , Andrzej Hajda , , Andrey Gusakov Subject: [PATCH 7/7] drm/bridge: tc358767: use DP connector if no panel set Date: Mon, 29 Oct 2018 13:47:01 +0200 Message-ID: <20181029114701.26409-8-tomi.valkeinen@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181029114701.26409-1-tomi.valkeinen@ti.com> References: <20181029114701.26409-1-tomi.valkeinen@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomi Valkeinen , Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" tc358767 driver sets the connector type always to eDP. This patch sets the type to DP if there is no panel defined, which implies that there's a DP connector on the board. Signed-off-by: Tomi Valkeinen Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/bridge/tc358767.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index be013bd7b30b..db93d927cb9a 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -1207,7 +1207,8 @@ static int tc_bridge_attach(struct drm_bridge *bridge) /* Create eDP connector */ drm_connector_helper_add(&tc->connector, &tc_connector_helper_funcs); ret = drm_connector_init(drm, &tc->connector, &tc_connector_funcs, - DRM_MODE_CONNECTOR_eDP); + tc->panel ? DRM_MODE_CONNECTOR_eDP : + DRM_MODE_CONNECTOR_DisplayPort); if (ret) return ret;