Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp2107055ybf; Mon, 2 Mar 2020 02:03:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxo8txOuOmp4oGIB/zTvzc+07rzW8PwRfpbAs7LqMNc+tsFXxx4obhRTpt00swhO08YWMFn X-Received: by 2002:a05:6830:1459:: with SMTP id w25mr6418070otp.246.1583143433937; Mon, 02 Mar 2020 02:03:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583143433; cv=none; d=google.com; s=arc-20160816; b=hbpLFXflgh0+TY9XIuzQAaao3d9fpDzUZR6EXNdh3NusmzzQHocqMOHZZUVxx/gkt1 NDJqXSHgA/NNeUZvBYJGxUVDaWz1PRgis+WY95EYZ9VEpbchKgfL6ltGvaTUdD7Yj6nN B+lg+gQb3IBzILSFwuYrnue6Nf0en9+jwYjnnGzQUKJYupTBAWrfY+t4OkvhZyP91yUA Zk/arNN61j74op7O699ODkSX/DLeRcEmBYwCeuipEZx6GtrDxeSmgljHn+whTl7u/UaB KPW/FavZLHBxT6jzWmkD5XIbT9diktlGIfEAH5xLA69l+PgMHRQMwrEQjY1c2h6pva2Y e1RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YkI0k6hkzihLlL414S5m7ki7aSYLR2sY8z6m8/kZ/gs=; b=r960lSWuqiMj1qAeQG5c0vMCjzlrx3BHs5qKGcxav2uX7Bcp+o8ZW8/JS3Re3+1Cmw qPuA8AoH2fcen2qyIT4VneNJylA52YBFksnQ7HT8u5RgMOyFDFb3nnp4tCaeFjXBegZQ lPS5x+lt8Fd192Qw+quimcEOtz37NxLX2LBWb3fZAoYKAzAPsTXkV8avnYhmrwu59gTu ITLRJrW8T5JXxTOswFcdLRXydZ5qG70i7JcrbWxq4LXL1hV84EaPt3w6tiWeRmM/KG6B 6tJ0uL3LN1MuknT58DR+Vz77giMM9btCZwkrgUNqd85xee8CjMfVk+bj1xTjbGXhcswt LWbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=XvfDJypR; 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 s129si6595649oig.177.2020.03.02.02.03.41; Mon, 02 Mar 2020 02:03:53 -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 (test mode) header.i=@ideasonboard.com header.s=mail header.b=XvfDJypR; 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 S1727421AbgCBKDa (ORCPT + 99 others); Mon, 2 Mar 2020 05:03:30 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:51606 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726956AbgCBKDa (ORCPT ); Mon, 2 Mar 2020 05:03:30 -0500 Received: from pendragon.ideasonboard.com (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id ABEA354A; Mon, 2 Mar 2020 11:03:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1583143408; bh=Lc7Yy28cE9d+CVfXGMhAB4DWD8ECf5jY5VejWhcg/q8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XvfDJypRfkoFhsmusgeTbIqW+/Y922eaLqRsN5OtHZksIqOw1UOpcctZ6GITU1asZ NcSDRqkeW1PJ/4k5Lela6uavruWSm9HiorhpZgrNsCp5IbmKzDMXwiqNeowz8laqgm dEfllyMcK81dOu2C8oFhN6qckrShCL+RVNf8aFDM= Date: Mon, 2 Mar 2020 12:03:03 +0200 From: Laurent Pinchart To: Neil Armstrong Cc: a.hajda@samsung.com, jonas@kwiboo.se, jernej.skrabec@siol.net, boris.brezillon@collabora.com, linux-amlogic@lists.infradead.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 05/11] drm/bridge: synopsys: dw-hdmi: allow ycbcr420 modes for >= 0x200a Message-ID: <20200302100303.GI11960@pendragon.ideasonboard.com> References: <20200206191834.6125-1-narmstrong@baylibre.com> <20200206191834.6125-6-narmstrong@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200206191834.6125-6-narmstrong@baylibre.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Neil, Thank you for the patch. On Thu, Feb 06, 2020 at 08:18:28PM +0100, Neil Armstrong wrote: > Now the DW-HDMI Controller supports the HDMI2.0 modes, enable support > for these modes in the connector if the platform supports them. > We limit these modes to DW-HDMI IP version >= 0x200a which > are designed to support HDMI2.0 display modes. > > Signed-off-by: Neil Armstrong > --- > drivers/gpu/drm/bridge/synopsys/dw-hdmi.c | 6 ++++++ > include/drm/bridge/dw_hdmi.h | 1 + > 2 files changed, 7 insertions(+) > > diff --git a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > index 15048ad694bc..4b35ea1427df 100644 > --- a/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > +++ b/drivers/gpu/drm/bridge/synopsys/dw-hdmi.c > @@ -3231,6 +3231,12 @@ __dw_hdmi_probe(struct platform_device *pdev, > hdmi->bridge.of_node = pdev->dev.of_node; > #endif > > + if (hdmi->version >= 0x200a) > + hdmi->connector.ycbcr_420_allowed = > + hdmi->plat_data->ycbcr_420_allowed; > + else > + hdmi->connector.ycbcr_420_allowed = false; > + The hdmi structure being allocated with kzalloc, you don't need the second branch of the if, but I'm fine if you prefer keeping it. Any either case, Reviewed-by: Laurent Pinchart > memset(&pdevinfo, 0, sizeof(pdevinfo)); > pdevinfo.parent = dev; > pdevinfo.id = PLATFORM_DEVID_AUTO; > diff --git a/include/drm/bridge/dw_hdmi.h b/include/drm/bridge/dw_hdmi.h > index 9d4d5cc47969..0b34a12c4a1c 100644 > --- a/include/drm/bridge/dw_hdmi.h > +++ b/include/drm/bridge/dw_hdmi.h > @@ -129,6 +129,7 @@ struct dw_hdmi_plat_data { > unsigned long input_bus_format; > unsigned long input_bus_encoding; > bool use_drm_infoframe; > + bool ycbcr_420_allowed; > > /* Vendor PHY support */ > const struct dw_hdmi_phy_ops *phy_ops; -- Regards, Laurent Pinchart