From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C0CD21094462 for ; Sat, 21 Mar 2026 07:52:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3110F10E29E; Sat, 21 Mar 2026 07:52:41 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; secure) header.d=pm.me header.i=@pm.me header.b="rM5Tj8HX"; dkim-atps=neutral Received: from mail-106118.protonmail.ch (mail-106118.protonmail.ch [79.135.106.118]) by gabe.freedesktop.org (Postfix) with ESMTPS id B136710E2A0 for ; Sat, 21 Mar 2026 07:52:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail3; t=1774079557; x=1774338757; bh=gircwKOW0ywrfXjrpGmIf8114zj09cFmRcezKwqZ3MA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=rM5Tj8HXmcx6/twMmRZ16BVflRRl984vDLQj+4hTRIJlzAFvOxANnCrI6v8wtzBNv BPTqgvU4ieqM7yGcySgF65i8gcIOim9qKgfvJMmSs5e7rLAqOxxfYiyV6W65WRWqgw liF6mM413dB0NxjPlL79maMuxy+A/OTuwp5zImwFrcGWz9dnZfze684p3giuAdvpKJ 8/OiOP06fzD2oNCd0sbFn1CH9H0XqqVylhBEjiaU5wAS+hrqkIjRUyUccgOuC8HFzn wNcOn/Fnb2bK3RPjDyWv77qrDoJIaI+P1GpkeJZnh+6PhJUWPP49yEEv8EX0Ni2gbY gvYExjNlwwg4w== Date: Sat, 21 Mar 2026 07:52:30 +0000 To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Clark , Dmitry Baryshkov , Abhinav Kumar , Jessica Zhang , Sean Paul , Marijn Suijten , Jeffrey Hugo , Neil Armstrong , Martin Blumenstingl From: Alexander Koskovich Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, freedreno@lists.freedesktop.org, linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Alexander Koskovich Subject: [PATCH v4 2/5] drm/meson: handle RGB101010 in format switches Message-ID: <20260321-dsi-rgb101010-support-v4-2-eb28ecebbfe8@pm.me> In-Reply-To: <20260321-dsi-rgb101010-support-v4-0-eb28ecebbfe8@pm.me> References: <20260321-dsi-rgb101010-support-v4-0-eb28ecebbfe8@pm.me> Feedback-ID: 37836894:user:proton X-Pm-Message-ID: 827c3af36e90d8440263c62eaf3d19cb861b9eb9 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add RGB101010 to the unsupported format cases to fix -Wswitch warnings introduced by the addition of the new pixel format. Signed-off-by: Alexander Koskovich --- drivers/gpu/drm/meson/meson_dw_mipi_dsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/meson/meson_dw_mipi_dsi.c b/drivers/gpu/drm/me= son/meson_dw_mipi_dsi.c index 66c73c512b0e..59fc0083d318 100644 --- a/drivers/gpu/drm/meson/meson_dw_mipi_dsi.c +++ b/drivers/gpu/drm/meson/meson_dw_mipi_dsi.c @@ -119,6 +119,7 @@ static int dw_mipi_dsi_phy_init(void *priv_data) =09=09dpi_data_format =3D DPI_COLOR_18BIT_CFG_2; =09=09venc_data_width =3D VENC_IN_COLOR_18B; =09=09break; +=09case MIPI_DSI_FMT_RGB101010: =09case MIPI_DSI_FMT_RGB666_PACKED: =09case MIPI_DSI_FMT_RGB565: =09=09return -EINVAL; @@ -232,6 +233,7 @@ static int meson_dw_mipi_dsi_host_attach(void *priv_dat= a, =09=09break; =09case MIPI_DSI_FMT_RGB666: =09=09break; +=09case MIPI_DSI_FMT_RGB101010: =09case MIPI_DSI_FMT_RGB666_PACKED: =09case MIPI_DSI_FMT_RGB565: =09=09dev_err(mipi_dsi->dev, "invalid pixel format %d\n", device->format); --=20 2.53.0