Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1865063rwb; Fri, 19 Aug 2022 10:40:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR53sQcW+C25XRR16h20r8xoboPv7ZkdVZKxTCG8UteIGUwH0ddNJ9QZmK4BvmSu8ePPTebt X-Received: by 2002:a63:310e:0:b0:429:bf9c:99ed with SMTP id x14-20020a63310e000000b00429bf9c99edmr7013736pgx.524.1660930807075; Fri, 19 Aug 2022 10:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660930807; cv=none; d=google.com; s=arc-20160816; b=Mh3LWkoTEx3EZrUiwKvK36qM/GTQgRI95vN8ZYo56JtzEK4aiujhhSA6hvu5bM35t9 GqL9in+ch2gZFsMdHE4zFUePvx6RSsgYNaiUgab08r5WWsJYFK0UN2GsQWcFZfk/l5p3 x0Gt4IZKurBeD7A7gTjj/zyO0ZnpUXxgdsNLa9UfBmF9d7dsgclM11ARgOxQnUNhjVr/ 7hZ/hUwm+m9a/oLZ4ttSHQ6iG9dO3gg6FM9rU+cGM6IFuRkAwfk22kiAAB19ZEpsh5xz oURvwj6AHBaYpgNdR8IaUhJjSsr+LOjSvDZ+b7fDDoWXo7GXV7/ydPddaYHVxs+Kuevp y1cw== 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=ARDyAs47AR/lTkrUdSBIKtI2ixXnFooSRqtGtmGK8T4=; b=fvt/um2pfOEoC967is00zIuRF2flDPLxXZGbcshdY+7rsegd/zk2dR4vcMeSJa3rLK IhJZIQM+ii04z1PDozbi8UvmT/PVJ62NN9Ulg0GX0EBmS7GIi5FjfkQ3i9EXDgwZQLm3 j8g7JyNIaQna7QaZEgaFYjaSo5EATj3wybUlFFyPJ6cslAxHvjmnBldgtFDIb+szD7yH rvgiCMr7+cEEQL16u0eAwKkHX4vKOplFAy2Hm/rK9Fv9mCQW5zI6605DUpUBcja8VaGj r95cbTWBZiFcAeNZK4jFbwe2ykCZx9qYSdaBa/VjLVSBvWH5x0lwMGrHmqDEOcUawDZr FgIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NEqeKtng; 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 v14-20020a17090a898e00b001f51ade030csi4529395pjn.162.2022.08.19.10.39.56; Fri, 19 Aug 2022 10:40:07 -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=NEqeKtng; 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 S1351714AbiHSQKC (ORCPT + 99 others); Fri, 19 Aug 2022 12:10:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351816AbiHSQGh (ORCPT ); Fri, 19 Aug 2022 12:06: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 8794110E78F; Fri, 19 Aug 2022 08:56:00 -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 EECCAB827F8; Fri, 19 Aug 2022 15:55:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 405FFC433C1; Fri, 19 Aug 2022 15:55:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660924556; bh=trQnr5ZakF/YKPwkG69HhIwdy3VsaxAgovN1ZJBb76c=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NEqeKtngsOLdjvJyxngrxT2mHauTBvUykUfRSYHmi2RT0qPkYOB/z301i/yYAUNkm P8QUvu4XZt+w79J77w4lEo/GFemduEp+K6//kyxyiDeRkjoB1DGLDMBqeMsD4sWBnb xUB/kmMYlwwYS7IWcveZL6buRBRe7e94/8VCzgoE= 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.10 209/545] drm/mediatek: dpi: Remove output format of YUV Date: Fri, 19 Aug 2022 17:39:39 +0200 Message-Id: <20220819153838.731537765@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220819153829.135562864@linuxfoundation.org> References: <20220819153829.135562864@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 52f11a63a330..554ad60af4e9 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -52,13 +52,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 { @@ -358,24 +352,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_power_off(struct mtk_dpi *dpi) -- 2.35.1