Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2822974rwb; Mon, 15 Aug 2022 12:03:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR5mWmHtZ/bOOl/esHgeIa3Xmf7qcV6tN5Fh4McrsIfF/iT2yxTjXy99+qdDxkUNv1843QAx X-Received: by 2002:a17:907:2d92:b0:731:3310:418d with SMTP id gt18-20020a1709072d9200b007313310418dmr11179625ejc.379.1660590221986; Mon, 15 Aug 2022 12:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660590221; cv=none; d=google.com; s=arc-20160816; b=A0F5H4qMnIACAkupmHNogmIAoI0E2oOFi8+Zxol0C+YzJU/Exg5TEMJq3HtZ0wtCsL rQOtq/C24z+MlFaatMM1L0+9UooFTehMppppINptURQzsoXmmgP8Qd8jJM9m4XwU5OoP YAj/wcEUbj/FqwtMWEb9ZV/X2uvzsHCVJ13rtWFfCFDOh5VjbmQaMCGVfy15V1UwN4VP Tnf57Msx1Zj/PmaG6kCMe/XkoxaF2SlCTGtoSEWMvdYLB1tdizAC0K19231hXHm9EKja rirqeH8OyZh318QYSiBfDtEvHlr4TtJ5iLXfiQuR7WT5nZM7L0Url7EAZQCgVnEVluAW zYmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=d2zisPkD4S/kAkl6HRnw/q83Yopqwzg+ncL2D/k8Ur8=; b=ID8KgNaTbJ37TciiSZnQSrEuIif/u44k+sEiK8m5B8t1RTgYS15TM6UC1Vb44613Q1 2r+l8X9DAIW5rjYCet4VxUNThk+lCoCzc464FFvWEcGQXiuLIc27whhDlpHAOC/qFPtK iextPsHAS6XX5YtMJMLUMClITCaJnZ1r7LIETUyz/AHMredtJ2IGobgyJM4qD9F++Xcn QVrCiS5kt+74X4YNJaYqV8foz3F//Z/tUbUgDvHreMHpwHrM9Qc8DWtDe+Ne69f38972 5jwXksxhbR970JLLvnPZCODOfj4JZmarjhy5u8DxyFCvjxFGzkUjlGlTZFT8Vdw1ZuRi uNxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hDe3y8Vg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o11-20020aa7c50b000000b0043da70a82f8si8230564edq.117.2022.08.15.12.03.16; Mon, 15 Aug 2022 12:03:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=hDe3y8Vg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244540AbiHOSyb (ORCPT + 99 others); Mon, 15 Aug 2022 14:54:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244637AbiHOSvh (ORCPT ); Mon, 15 Aug 2022 14:51:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CD2A46DA2; Mon, 15 Aug 2022 11:29:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 598EAB81082; Mon, 15 Aug 2022 18:29:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A1609C433C1; Mon, 15 Aug 2022 18:29:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660588162; bh=NDaqN0HN4Lw9xKA+GYcUn8lKUCBj57SDn6sS5RzJY98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hDe3y8Vg3MbK1WW/9mgzV/cIMa2YFoGxRMZRXPPX2tsBXwgI0s871/BxUmIFeu7Gb karNeV8fbk3ZtQHKF+lMBPRNPcF+GgFkl18wkyHLtNd4RYUmKLDjYVrjwN0MotwjwY vCOPrReXxTe/aCtWVhviokk8xbSp2LoihcsJs5LU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bo-Chen Chen , Chun-Kuang Hu , Sasha Levin Subject: [PATCH 5.15 314/779] drm/mediatek: dpi: Remove output format of YUV Date: Mon, 15 Aug 2022 19:59:18 +0200 Message-Id: <20220815180350.701746314@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bo-Chen Chen [ Upstream commit c9ed0713b3c35fc45677707ba47f432cad95da56 ] DPI is not support output format as YUV, but there is the setting of configuring output YUV. Therefore, remove them in this patch. Fixes: 9e629c17aa8d ("drm/mediatek: Add DPI sub driver") Signed-off-by: Bo-Chen Chen Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220701035845.16458-5-rex-bc.chen@mediatek.com/ Signed-off-by: Chun-Kuang Hu Signed-off-by: Sasha Levin --- drivers/gpu/drm/mediatek/mtk_dpi.c | 31 ++++++------------------------ 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index e61cd67b978f..675e2e4072df 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -54,13 +54,7 @@ enum mtk_dpi_out_channel_swap { }; enum mtk_dpi_out_color_format { - MTK_DPI_COLOR_FORMAT_RGB, - MTK_DPI_COLOR_FORMAT_RGB_FULL, - MTK_DPI_COLOR_FORMAT_YCBCR_444, - MTK_DPI_COLOR_FORMAT_YCBCR_422, - MTK_DPI_COLOR_FORMAT_XV_YCC, - MTK_DPI_COLOR_FORMAT_YCBCR_444_FULL, - MTK_DPI_COLOR_FORMAT_YCBCR_422_FULL + MTK_DPI_COLOR_FORMAT_RGB }; struct mtk_dpi { @@ -364,24 +358,11 @@ static void mtk_dpi_config_disable_edge(struct mtk_dpi *dpi) static void mtk_dpi_config_color_format(struct mtk_dpi *dpi, enum mtk_dpi_out_color_format format) { - if ((format == MTK_DPI_COLOR_FORMAT_YCBCR_444) || - (format == MTK_DPI_COLOR_FORMAT_YCBCR_444_FULL)) { - mtk_dpi_config_yuv422_enable(dpi, false); - mtk_dpi_config_csc_enable(dpi, true); - mtk_dpi_config_swap_input(dpi, false); - mtk_dpi_config_channel_swap(dpi, MTK_DPI_OUT_CHANNEL_SWAP_BGR); - } else if ((format == MTK_DPI_COLOR_FORMAT_YCBCR_422) || - (format == MTK_DPI_COLOR_FORMAT_YCBCR_422_FULL)) { - mtk_dpi_config_yuv422_enable(dpi, true); - mtk_dpi_config_csc_enable(dpi, true); - mtk_dpi_config_swap_input(dpi, true); - mtk_dpi_config_channel_swap(dpi, MTK_DPI_OUT_CHANNEL_SWAP_RGB); - } else { - mtk_dpi_config_yuv422_enable(dpi, false); - mtk_dpi_config_csc_enable(dpi, false); - mtk_dpi_config_swap_input(dpi, false); - mtk_dpi_config_channel_swap(dpi, MTK_DPI_OUT_CHANNEL_SWAP_RGB); - } + /* only support RGB888 */ + mtk_dpi_config_yuv422_enable(dpi, false); + mtk_dpi_config_csc_enable(dpi, false); + mtk_dpi_config_swap_input(dpi, false); + mtk_dpi_config_channel_swap(dpi, MTK_DPI_OUT_CHANNEL_SWAP_RGB); } static void mtk_dpi_dual_edge(struct mtk_dpi *dpi) -- 2.35.1