From patchwork Mon Jan 30 11:05:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 9544861 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 444A1604CC for ; Mon, 30 Jan 2017 11:10:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3462A2837F for ; Mon, 30 Jan 2017 11:10:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2935528389; Mon, 30 Jan 2017 11:10:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_SORBS_SPAM,T_DKIM_INVALID autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id BD8AB28384 for ; Mon, 30 Jan 2017 11:10:21 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cY9qi-0005oS-RW; Mon, 30 Jan 2017 11:10:16 +0000 Received: from mail-wm0-f41.google.com ([74.125.82.41]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cY9nK-0001VG-WB for linux-amlogic@lists.infradead.org; Mon, 30 Jan 2017 11:06:49 +0000 Received: by mail-wm0-f41.google.com with SMTP id r141so27883994wmg.1 for ; Mon, 30 Jan 2017 03:06:26 -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; bh=VylGbsj3TnkV6N87T91qqKquQbtwwbArzs2DAch8c34=; b=ZrkpKedAveL1q3iOgozlDm+/zXxpS8ksgU6IPGd6hYm8YLzJ9eemZIITtgMYIb0cw+ QaB0uZ/qGL1pqkK/MOgYNdzPYd8Fy6l71rsAV2DX/+G2IXy6VUeiu2MrNvjpw3e66697 ef8cDaFgxktcPfrxYOQMi6/OtgbHzP5XOXuF3GwWgu0gFdXVUGCESnl2Xk7H7Dz+1wfj wD8mb5bEAnbCmmfCd7Q279Ipk5dx3rQC8uZFJqNTu0sxA0WH7OJAskN/vnwwQWFm0+RP zJpkHfleLs6N0id3HG3ANGx4B0bNrtrm2v/kFpWCurwJeSH/F74sgQ9h+qhdCA+Fe3NM w7Bg== 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; bh=VylGbsj3TnkV6N87T91qqKquQbtwwbArzs2DAch8c34=; b=YA5ik51t8JRBxbGo16d/qDaq3Ju2jRKMdVwbQy1EFc5NxJolHmswQlgl5u2O4ugKvY z02faR8NX+IIUi17hQfg2GLUOwcdXcyq0ZWM1yI5Ykb2W7qxa6rkO+CXok2btgMztLc2 5tXFVfR2eAI7yvhMqqxyiHw9vf2efHm73InIpb/pSLTCUFvcEDPlOp9K2EIXutd0/Ev8 uBPBIVXmDZsp+DbsPBTTu5EVYevd59cEZd2/zPFsnvLKkTlp8hh4ZOFZQVamLTeFk76e SDGsPy+liow3I+uYQ4wqC137xORcfY+NHEoNUrluzDA3xtqW/Q5QJ4NzzpnZyydERGOx OpWw== X-Gm-Message-State: AIkVDXIiF7DCptp2KRJXpg07hTgZGzJ8PNEA9L9PGHx+2OQOi4p85Ax3BLt64nZoFEDRSouj X-Received: by 10.28.28.143 with SMTP id c137mr12881064wmc.115.1485774325405; Mon, 30 Jan 2017 03:05:25 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id k195sm18165651wmd.7.2017.01.30.03.05.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Jan 2017 03:05:24 -0800 (PST) From: Neil Armstrong To: dri-devel@lists.freedesktop.org, laurent.pinchart+renesas@ideasonboard.com Subject: [PATCH 3/4] drm: bridge: dw-hdmi: Enable CSC even for DVI Date: Mon, 30 Jan 2017 12:05:17 +0100 Message-Id: <1485774318-21916-4-git-send-email-narmstrong@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1485774318-21916-1-git-send-email-narmstrong@baylibre.com> References: <1485774318-21916-1-git-send-email-narmstrong@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170130_030647_277606_6AF4B361 X-CRM114-Status: UNSURE ( 9.85 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jose.Abreu@synopsys.com, linux-amlogic@lists.infradead.org, kieran.bingham@ideasonboard.com, linux-kernel@vger.kernel.org, Neil Armstrong MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP If the input pixel format is not RGB, the CSC must be enabled in order to provide valid pixel to DVI sinks. This patch removes the hdmi only dependency on the CSC enabling. Reviewed-by: Jose Abreu Reviewed-by: Laurent Pinchart Signed-off-by: Neil Armstrong --- drivers/gpu/drm/bridge/dw-hdmi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/bridge/dw-hdmi.c b/drivers/gpu/drm/bridge/dw-hdmi.c index a8083f4..f75e5f9 100644 --- a/drivers/gpu/drm/bridge/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/dw-hdmi.c @@ -1317,8 +1317,8 @@ static void dw_hdmi_enable_video_path(struct dw_hdmi *hdmi) hdmi_writeb(hdmi, clkdis, HDMI_MC_CLKDIS); } - /* Enable color space conversion if needed (for HDMI sinks only). */ - if (hdmi->sink_is_hdmi && is_color_space_conversion(hdmi)) + /* Enable color space conversion if needed */ + if (is_color_space_conversion(hdmi)) hdmi_writeb(hdmi, HDMI_MC_FLOWCTRL_FEED_THROUGH_OFF_CSC_IN_PATH, HDMI_MC_FLOWCTRL); else