Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3115296rwb; Mon, 15 Aug 2022 18:29:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR4houVSbZelndVTie+MYW5JOLhEF0yMaHp0BND8Vx0xo0T8DanJnIr7/FV17BF/TD5Rzh+u X-Received: by 2002:a17:902:d4d2:b0:16f:8311:54ba with SMTP id o18-20020a170902d4d200b0016f831154bamr19453856plg.15.1660613360578; Mon, 15 Aug 2022 18:29:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660613360; cv=none; d=google.com; s=arc-20160816; b=rwPHapWzG3lkFJ1A6ceMAZe4xRvJkcAZTO4ogMfB1aF14wVMIW6TJNK3rZ2G0sfyE1 28agqGtm+0U3qH0GDtnrdU7xP6QaLOuBt+1mthAwlUPHt3RSrTjK1z0hl/m2McOSTcwN NG8XnpyDhfH0hHlOzNA9Ay0K6g/vZJW7kQrkKG6rcTKDN8O1oxyfR13Ihn2I5+1UJQNl /bqdp2FIYgUvNSK2M10+bdSeNot1xz5T/j1Ptly0kpooIg6N4xoPTNqbnfF14Ep9i0PO Fh9oQvag7AC/Cq/OZ/GolsxfpNjbyCKhlt1frEOx5lNOw/6wChTg7K99XOL4RNoVrrWV d8GQ== 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=zgSoGFypcwSOwO5wt7N/MWT7oIXaVlHkKChsB3QA7UaXxVXntn62GUXrre3iB4Yg/M WEbcunpktSGiC182mCliQzut2foC2LR+NQ6tTzWJumekhMYQB5ytUfpKo6OAvpxTuxrr NlLcV9mXgWJIPwSA0x3kkpKgn2LpxmKlZqIJ+bxTAMu9MTTljx2AJMFinpNg+C1q9KzG +pEdHEMZ3S2A0EPIa4LZ9MqD/1bPyLRF+RdKHhtgGSKb5LuRCac9Fb2x/WMebPR4gDoy TKUzZqmVL7B9HmZ4VzgjmRzphcigtzvv0Wsx3WFNUoYVhtQarS3K6hidTNJfFT4NsdOl klHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ixlHPoFM; 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 b3-20020a170903228300b001708e1bb3b8si13234874plh.335.2022.08.15.18.29.09; Mon, 15 Aug 2022 18:29:20 -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=ixlHPoFM; 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 S1354364AbiHOXr7 (ORCPT + 99 others); Mon, 15 Aug 2022 19:47:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354416AbiHOXmI (ORCPT ); Mon, 15 Aug 2022 19:42:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F32BA32D81; Mon, 15 Aug 2022 13:13:25 -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 74B27B81154; Mon, 15 Aug 2022 20:13:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D63F6C433C1; Mon, 15 Aug 2022 20:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594403; bh=NDaqN0HN4Lw9xKA+GYcUn8lKUCBj57SDn6sS5RzJY98=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ixlHPoFMHxpuRkyfz0g/spNvYQQ6pLdZUoxpHweVbEpXg4rhXdhsg2GGPLcV9+J+X rbBM4HAaOMC2RfxppnHmuPqrsgPRnDXge1BYBKdIoAgbGl3UqdQex9uJPslzBibOzu y6j5SDG61DdIJLOFCcEZk6UZNzW9tS1JmubowKqk= 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.19 0434/1157] drm/mediatek: dpi: Remove output format of YUV Date: Mon, 15 Aug 2022 19:56:30 +0200 Message-Id: <20220815180457.012405557@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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