[PATCH] drm/mediatek: dsi: return tx_len for write transfers in mtk_dsi_host_transfer()

Chun-Kuang Hu chunkuang.hu at kernel.org
Wed Dec 2 16:04:27 PST 2026


Ilia Snezhkov via B4 Relay <devnull+iasnezhkov.gmail.com at kernel.org> 於
2026年11月26日週四 上午12:33寫道:
>
> From: Ilia Snezhkov <iasnezhkov at gmail.com>
>
> Per struct mipi_dsi_host_ops .transfer() documentation in
> include/drm/drm_mipi_dsi.h, on success .transfer() must return the
> number of bytes transmitted for write packets or the number of bytes
> received for read packets.
>
> mtk_dsi_host_transfer() currently sets recv_cnt = 0 for non-read
> messages, returning 0 instead of msg->tx_len. Callers checking for short
> writes against msg->tx_len observe a spurious 0-byte transfer.
>
> Return msg->tx_len on successful write transfers.
>
> Found and drafted with an AI coding assistant.

Applied to mediatek-drm-fixes [1], thanks.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-fixes

Regards,
Chun-Kuang.

>
> Fixes: 21898816831f ("drm/mediatek: add dsi transfer function")
> Signed-off-by: Ilia Snezhkov <iasnezhkov at gmail.com>
> ---



More information about the linux-arm-kernel mailing list