From: Alexandre Mergnat <amergnat@baylibre.com>
To: AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.com>,
chunkuang.hu@kernel.org
Cc: p.zabel@pengutronix.de, linux-kernel@vger.kernel.org,
dri-devel@lists.freedesktop.org,
linux-mediatek@lists.infradead.org, daniel@ffwll.ch,
matthias.bgg@gmail.com, kernel@collabora.com, airlied@gmail.com,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v4 2/9] drm/mediatek: dsi: Fix DSI RGB666 formats and definitions
Date: Tue, 6 Feb 2024 15:51:38 +0100 [thread overview]
Message-ID: <06d0f56f-c27f-4d6a-9a88-e2932de29bf3@baylibre.com> (raw)
In-Reply-To: <20240206120748.136610-3-angelogioacchino.delregno@collabora.com>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
On 06/02/2024 13:07, AngeloGioacchino Del Regno wrote:
> The register bits definitions for RGB666 formats are wrong in multiple
> ways: first, in the DSI_PS_SEL bits region, the Packed 18-bits RGB666
> format is selected with bit 1, while the Loosely Packed one is bit 2,
> and second - the definition name "LOOSELY_PS_18BIT_RGB666" is wrong
> because the loosely packed format is 24 bits instead!
>
> Either way, functions mtk_dsi_ps_control_vact() and mtk_dsi_ps_control()
> do not even agree on the DSI_PS_SEL bit to set in DSI_PSCTRL: one sets
> loosely packed (24) on RGB666, the other sets packed (18), and the other
> way around for RGB666_PACKED.
>
> Fixing this entire stack of issues is done in one go:
> - Use the correct bit for the Loosely Packed RGB666 definition
> - Rename LOOSELY_PS_18BIT_RGB666 to LOOSELY_PS_24BIT_RGB666
> - Change ps_bpp_mode in mtk_dsi_ps_control_vact() to set:
> - Loosely Packed, 24-bits for MIPI_DSI_FMT_RGB666
> - Packed, 18-bits for MIPI_DSI_FMT_RGB666_PACKED
--
Regards,
Alexandre
next prev parent reply other threads:[~2024-02-06 14:51 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-06 12:07 [PATCH v4 0/9] MediaTek DRM - DSI driver cleanups AngeloGioacchino Del Regno
2024-02-06 12:07 ` [PATCH v4 1/9] drm/mediatek: dsi: Use GENMASK() for register mask definitions AngeloGioacchino Del Regno
2024-02-06 14:47 ` Alexandre Mergnat
2024-02-06 15:53 ` AngeloGioacchino Del Regno
2024-02-07 9:55 ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 2/9] drm/mediatek: dsi: Fix DSI RGB666 formats and definitions AngeloGioacchino Del Regno
2024-02-06 14:51 ` Alexandre Mergnat [this message]
2024-02-06 12:07 ` [PATCH v4 3/9] drm/mediatek: dsi: Cleanup functions mtk_dsi_ps_control{_vact}() AngeloGioacchino Del Regno
2024-02-06 14:57 ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 4/9] drm/mediatek: dsi: Use bitfield macros where useful AngeloGioacchino Del Regno
2024-02-06 15:09 ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 5/9] drm/mediatek: dsi: Replace open-coded instance of HZ_PER_MHZ AngeloGioacchino Del Regno
2024-02-06 15:11 ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 6/9] drm/mediatek: dsi: Register DSI host after acquiring clocks and PHY AngeloGioacchino Del Regno
2024-02-06 15:13 ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 7/9] drm/mediatek: dsi: Simplify with dev_err_probe and remove gotos AngeloGioacchino Del Regno
2024-02-06 15:20 ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 8/9] drm/mediatek: dsi: Compress of_device_id entries and add sentinel AngeloGioacchino Del Regno
2024-02-06 15:21 ` Alexandre Mergnat
2024-02-06 12:07 ` [PATCH v4 9/9] drm/mediatek: dsi: Use mipi_dsi_pixel_format_to_bpp() helper function AngeloGioacchino Del Regno
2024-02-06 15:24 ` Alexandre Mergnat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=06d0f56f-c27f-4d6a-9a88-e2932de29bf3@baylibre.com \
--to=amergnat@baylibre.com \
--cc=airlied@gmail.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=chunkuang.hu@kernel.org \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=kernel@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=p.zabel@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox