From patchwork Mon Oct 29 11:46:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 149656 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp4026013ljp; Mon, 29 Oct 2018 04:47:25 -0700 (PDT) X-Google-Smtp-Source: AJdET5frDKqL7LIj+kJxQu2hhRWsGNZ9W3Kij19tPSzPGbheP/0NpwHeaeXgMyNrpcPXUdmZnauO X-Received: by 2002:a63:df03:: with SMTP id u3-v6mr13071145pgg.362.1540813645223; Mon, 29 Oct 2018 04:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540813645; cv=none; d=google.com; s=arc-20160816; b=U0hTDqc94MmgMM1+kDeC0WYjgQkxtZUGKtV/UPzS4pgH5PdbY/iR/kdlpuoDREcWjN +9EPHutDL1DEUszlPhRZxdTeA62JM5Io+9ZcsCL0ntbBc9c5hFzMFDAcrECe+AGL3xVg PSwBTXee3p8apPVbx8lKB9CXOf58fAeQCNVVi00SStz2Ti466gRjeC4EkVPeHo6jDwca oIz9eUr7mlyZ4SEki8JoFFLRxxsaF908M+R7j6QQenHnldKGmZLr0n+ohsX4GRt7upD8 Wrfg2lCWAyOS9OSz3AgR+9X37q8K6wj2IiJVT3KU6EMS0LTjXQP6EUVmGmZ+E3wSGRad 23mQ== 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=RMzCTVTZJKBilxtnNZtI9FzLeuvntUgrINQWj1BoP3E=; b=RfprBiFQi3Xcbz40D5YlBinN18pesfIeuQ0O4Nyvn0bbr1u6LmYiWLQ2gz9swilzn3 v7ACGlWmotQC2lYqI6zIrsRZfODDZiZb9zB1HBiAKhpt4QVF3KRoTb4yNWiZJYiswpMN TWsogjsJUCyBEVFks1qV8os8fcR6qXYp60OiVdMe4ys8egSkHE/6QMPiy0LIPS8vQ+Yu RouzHRO6Wy0D5goo04UWMvSh3+DqCUAWFV+cd0kCKNcp6EB8wanu9NOpirWP8ZDbqKfk vmQoZtIsvSDkSGDiFAmzYctoyPy+WKb66+XwaPNlZbTG0gRDjyeSJngszNoM/NOUcUN0 6eOw== 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 l11-v6si13641704pgm.102.2018.10.29.04.47.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 29 Oct 2018 04:47:25 -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 5265F899A5; Mon, 29 Oct 2018 11:47:20 +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 51BCB8996F for ; Mon, 29 Oct 2018 11:47:18 +0000 (UTC) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id w9TBlBxl091936; Mon, 29 Oct 2018 06:47:11 -0500 Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id w9TBlBKV093162 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Oct 2018 06:47:11 -0500 Received: from DLEE103.ent.ti.com (157.170.170.33) by DLEE102.ent.ti.com (157.170.170.32) 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:10 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE103.ent.ti.com (157.170.170.33) 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:10 -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 w9TBl70E007729; Mon, 29 Oct 2018 06:47:09 -0500 From: Tomi Valkeinen To: Archit Taneja , Andrzej Hajda , , Andrey Gusakov Subject: [PATCH 1/7] drm/bridge: tc358767: add bus flags Date: Mon, 29 Oct 2018 13:46:55 +0200 Message-ID: <20181029114701.26409-2-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 does not set DRM bus_flags, even if it does configures the polarity settings into its registers. This means that the DPI source can't configure the polarities correctly. Add sync flags accordingly. Signed-off-by: Tomi Valkeinen Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/bridge/tc358767.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/gpu/drm/bridge/tc358767.c b/drivers/gpu/drm/bridge/tc358767.c index 8e28e738cb52..29a7e33e8ae0 100644 --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -1195,6 +1195,10 @@ static int tc_bridge_attach(struct drm_bridge *bridge) drm_display_info_set_bus_formats(&tc->connector.display_info, &bus_format, 1); + tc->connector.display_info.bus_flags = + DRM_BUS_FLAG_DE_HIGH | + DRM_BUS_FLAG_PIXDATA_NEGEDGE | + DRM_BUS_FLAG_SYNC_NEGEDGE; drm_connector_attach_encoder(&tc->connector, tc->bridge.encoder); return 0;