Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp926029imj; Sat, 9 Feb 2019 10:58:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IZVzxVjCoQgDYbFr1jHR1L+hzjjdYfOU7RAvXFaGHnzbSbdChksqw7JJQYlh4Qu+oqHwdHj X-Received: by 2002:a63:534c:: with SMTP id t12mr10639042pgl.205.1549738685753; Sat, 09 Feb 2019 10:58:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549738685; cv=none; d=google.com; s=arc-20160816; b=HPJtV71ZgBc6KWoxZLvx1tKFLFL/U0+H2VwwwgdEr/muj8qK293jn3SWRbM4zj7Aux 2cC4K0RWHkl+0bEGrmvDOT6wCeNWW/fWdL1yxpQBwvpOirAMax6rFGB0hQeAR/dU+T8G PAqHsLiyj2ASpKOh2VLC7TMAzN4wXfehvZzSmzVM1AXCtBh8CNN0Gla+7zP0tag91tXC BFA1nNxdbt/42p4ygRvv6VXbwwgHYfftv6pzkq3YRvHdj6psBSFyYJno++O4Jup2V0CM mfuFntka0i1H1gUorYEmfcRG/itBmyuUmE5UjEsEz4AT/LGHpkvOqLtAQ+ARCidyfPO3 b2Eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=OuFkV9uQCMB0P9HMofYjCPeu4J59OObC3gqsHH0b4EI=; b=udbtcMhxbrpqBeypb7PltGguPkx9jpGo2NSVgI5XmbIyXcQe3IJwybhNhlx9pZ4TWd suEdAenrrMIhvbPDhZptoDbzm9IWCBQG9nFaAIX5Ygjif92ZCFZl0lueyAz3VjlzPlzB N9mQyXjOT5G/y7jexncYcf80CDk9eBE4aiSD4t0EUYNOitqLuyAeUHKc46jKENXVY1+z qIhrydzyBDkR/AjXG84AgKq12MUCHsdQ+oh9dXaPoaL0CDdeUOwUFCAKr1XK/iLGZ3Xc LAePaZ+MFzj8fL8QskgRKB1Y4f0iQvJ0MD4UvVHQ9DGK3UW1azc9DN4qKvEsiRPBysQB uSeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="KWbWQ/5y"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p1si5209097pgb.192.2019.02.09.10.57.50; Sat, 09 Feb 2019 10:58:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="KWbWQ/5y"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727964AbfBIS46 (ORCPT + 99 others); Sat, 9 Feb 2019 13:56:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:60558 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727424AbfBISrv (ORCPT ); Sat, 9 Feb 2019 13:47:51 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8D76021916; Sat, 9 Feb 2019 18:47:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1549738071; bh=usF7bQ3zN4VSY0Qbhe5+9OumbZ1jw9ho1p+MeIhxWtY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KWbWQ/5yqOzbbne089tKdCyj/en7sz/TWX77M5Ryu9vhRBRU8MpR+Mc27yC20WijY j5YKjq8hkjsOjMLxnBrrGZwmlHMGaSKetcrHVy0UpBQ+eihlOBkIvhQBdWyHYDnzy5 OgqHdtnMnEiTzgPlRRmRn5CG185Ix7tzjN6N4W9M= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Tomi Valkeinen , Andrzej Hajda , Sasha Levin , dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.20 15/42] drm/bridge: tc358767: add bus flags Date: Sat, 9 Feb 2019 13:47:07 -0500 Message-Id: <20190209184734.125935-15-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190209184734.125935-1-sashal@kernel.org> References: <20190209184734.125935-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tomi Valkeinen [ Upstream commit 4842379cbe6e851de914a7132f76f4e200b9a98b ] 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 Signed-off-by: Andrzej Hajda Link: https://patchwork.freedesktop.org/patch/msgid/20190103115954.12785-2-tomi.valkeinen@ti.com Signed-off-by: Sasha Levin --- 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; -- 2.19.1