Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4373198ybf; Wed, 4 Mar 2020 02:42:29 -0800 (PST) X-Google-Smtp-Source: ADFU+vtiIIsD92FLS9jYNDXWhGF2Un1M1n+bm9jfOGCvXGpFlqA7XTw263XJI+ond/Yd9yB7x9a3 X-Received: by 2002:a05:6830:18ee:: with SMTP id d14mr1696641otf.298.1583318549472; Wed, 04 Mar 2020 02:42:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583318549; cv=none; d=google.com; s=arc-20160816; b=by9xnQn7C0fujdXVA4S1Yr1iiric4xVjBQ8Jgo433MjYDH9/5Y42YcYkFVj3OeR28K LGeidc0CcK+HMEOT24BpPHCSX8pUf3duy99pxuqyxhmCTdjYy0Kg3E1Hl08HkyVHC6AJ ZJf3cRyZt+Pu9Aal1JVdzsxzGzrjhHRnhTAnIHC8K+B64XDatja2Gj9qfPfmyS5C4mhY LopXgGZdv5uSkkrdi9yslgr9SFIyEeIaJc1mrOOHgcrk1tk7xQAu35w6oHk2okvsWdik 9H8lUTpdC9ksn1j41tw5MaWypvDENyyyNpZmCZY3VlIvn9WVKs4vHFpuSqjvuiSA36Dc ZJTg== 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=ajIJB0wcFTIisjxYEYMgxm+dr9nVY4WUtZ38KJr42sk=; b=uFwuhxJsxBZu+Wz6St3VVSb22Oujz4Vs40oSU36X+lK0VMXCbJj4XnxI9KGRye9Fo2 dqAfyZRH6oeckdIT4epZGtcOroIBknABfs3yFaC4KVs9TQIVtV4Nwc/aerZ7DztI3cSG Azu56dteHe1EXs6VS/EO2f0QCJIZ1T1CUk6ymsz3ay/XwwX4efOi/QQGb2C+sdGlapvp qoZ8d9Nzw3BISNNAKVj2QnUEX9C6C0Vw+7uC+H6hZbzZkPXakIM8oy6ikTfOWOKOTTTA aCFV0PTBKgANk4cfFms3gTkwE92KYwhtAbuBtg+RqUnHQ0is6GcJ+1AdItYguv1w9cko iOGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=wg0RvIDC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e6si806980otq.217.2020.03.04.02.42.17; Wed, 04 Mar 2020 02:42:29 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=wg0RvIDC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387820AbgCDKlC (ORCPT + 99 others); Wed, 4 Mar 2020 05:41:02 -0500 Received: from mail-wr1-f68.google.com ([209.85.221.68]:42630 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387805AbgCDKlC (ORCPT ); Wed, 4 Mar 2020 05:41:02 -0500 Received: by mail-wr1-f68.google.com with SMTP id z11so1744326wro.9 for ; Wed, 04 Mar 2020 02:41:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ajIJB0wcFTIisjxYEYMgxm+dr9nVY4WUtZ38KJr42sk=; b=wg0RvIDCGd3OKaS+UQvVbeeMEYBWJF8GOY/PfMOKdQVJ+TjqChEm4pHTM69HwAbcCX Ex/7xSAM1S2h4CuGEj33aykuH0PKks9E44VM31QfhpCHDz63upJK9OFMlqxsgAtBq2Nz aN1DBI3qRWbUl0moYu2dCezZbRxsydcMItxVLT3946v2JgZpCBKkwEclmbG9OteF4vci 32xslYPrUrGOKImGpSpFBKB4SuS0OGuno5LIq8urHrqEzvL5aNSSgbmYr1oUm1FP6/Ln y0yoUQauN9eyXCMnuoly6kqtiuuwxtgKyUKLEJcJn8Qw2Qn4nLN1ZflEdpIB3NwBwMOC lJdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ajIJB0wcFTIisjxYEYMgxm+dr9nVY4WUtZ38KJr42sk=; b=TIDZ2RWzkUf2lRE+bWVldcUU4zw9NwmCMeMnyWMWWwNOYXSnnMkL2F9CaHYILR2lZp jaim17ptrQIcKJ4+oLWlDHWen65r2nME9uj57P81LyjMVK/GmyJp6wuIrTwDvAW7FZQi N0Ar/54MdhnfnP8+cmOdgKFvCt/XvQ7etuVgVdC7HOFBDFgTeoMI640EcsJI8SOvXQRq rzBWS33Nsfs2HgmCOLg0zXuqUAd0ovG3bMd+YL1Its+4SWA9cWwvdKP6nrkZZJehUpUU hoGXrxkQmQPhfPZ/67XuwpVjNMCR4NOLnH5E6Jmm0+zUQOaTZ3OZ1jXrOM1uDgjmDYX+ 2Gww== X-Gm-Message-State: ANhLgQ3jilSfU2WiG30zvMolIVH+9sf6VggJM4nVV9qlwNBrt1Bgj1HT +9IQMVP/vLGEOLT1i6hzGnNZDQ== X-Received: by 2002:adf:9282:: with SMTP id 2mr3674245wrn.124.1583318460121; Wed, 04 Mar 2020 02:41:00 -0800 (PST) Received: from bender.baylibre.local (laubervilliers-658-1-213-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id c14sm24006398wro.36.2020.03.04.02.40.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2020 02:40:59 -0800 (PST) From: Neil Armstrong To: p.zabel@pengutronix.de, heiko@sntech.de, a.hajda@samsung.com, Laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@siol.net, boris.brezillon@collabora.com Cc: linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Neil Armstrong , Laurent Pinchart Subject: [PATCH v5 02/11] drm/bridge: dw-hdmi: add max bpc connector property Date: Wed, 4 Mar 2020 11:40:43 +0100 Message-Id: <20200304104052.17196-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20200304104052.17196-1-narmstrong@baylibre.com> References: <20200304104052.17196-1-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jonas Karlman Add the max_bpc property to the dw-hdmi connector to prepare support for 10, 12 & 16bit output support. Signed-off-by: Jonas Karlman Signed-off-by: Neil Armstrong Reviewed-by: Laurent Pinchart Reviewed-by: Jernej Škrabec --- drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c index 10f98c9ee77e..e097f60e6431 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c @@ -2414,6 +2414,14 @@ static int dw_hdmi_bridge_attach(struct drm_bridge *bridge, DRM_MODE_CONNECTOR_HDMIA, hdmi->ddc); + /* + * drm_connector_attach_max_bpc_property() requires the + * connector to have a state. + */ + drm_atomic_helper_connector_reset(connector); + + drm_connector_attach_max_bpc_property(connector, 8, 16); + if (hdmi->version >= 0x200a && hdmi->plat_data->use_drm_infoframe) drm_object_attach_property(&connector->base, connector->dev->mode_config.hdr_output_metadata_property, 0); -- 2.22.0