Ilia Snezhkov via B4 Relay <[email protected]> 於 2026年11月26日週四 上午12:33寫道: > > From: Ilia Snezhkov <[email protected]> > > 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 <[email protected]> > ---
