[PATCH v4 1/1] drm/mediatek: Add return value check when reading DPCD

2025-01-02 Thread Liankun Yang
Returns the number of bytes transferred (1) on success. Check the return value to confirm that AUX communication is successful. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") Signed-off-by: Liankun Yang --- Changes in V4: - Fix IF judgement cond

[PATCH v3 1/1] drm/mediatek: Add return value check when reading DPCD

2024-12-18 Thread Liankun Yang
Returns the number of bytes transferred (1) on success. Check the return value to confirm that AUX communication is successful. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") Signed-off-by: Liankun Yang --- Changes in V3: - Using drm_dp_read_sink_count()

[PATCH v2 1/1] drm/mediatek: Add return value check when reading DPCD

2024-11-27 Thread Liankun Yang
Returns the number of bytes transferred (1) on success. Check the return value to confirm that AUX communication is successful. Fixes: d9e6ea02fc3f ("drm/mediatek: dp: Add MT8195 External DisplayPort support") Signed-off-by: Liankun Yang --- Changes in V2: - Modify Fixes in Commit Me

[PATCH v4 1/1] drm/mediatek: dp: Add sdp path reset

2024-11-27 Thread Liankun Yang
. Through experiments, it can be restored by resetting the SDP path when unplugging it. Signed-off-by: Liankun Yang Reviewed-by: AngeloGioacchino Del Regno --- Changes in V4: - Fix align to the right of '('. Per suggestion from the previous thread: https://patchwork.kernel.org/project/linu

[PATCH v2 3/3] drm/mediatek: Adjust bandwidth limit for DP

2024-10-25 Thread Liankun Yang
. Subsequently, DP work can proceed based on the actual maximum bandwidth. It should training in the hpd event thread. Check the mode with lane count and link rate of training. Signed-off-by: Liankun Yang --- - Adjust DP training timing. - Adjust parse capabilities timing. - Add power on/off for

[PATCH v2 1/3] drm/mediatek: Fix YCbCr422 color format issue for DP

2024-10-25 Thread Liankun Yang
DisplayPort driver") Signed-off-by: Liankun Yang --- Change in V2 - Modify the value written to the register Per suggestion from the previous thread: https://patchwork.kernel.org/project/linux-mediatek/patch/20240510021810.19302-1-liankun.y...@mediatek.com/ --- drivers/gpu/drm/mediat

[PATCH v2 0/3] Adjust YCbCr422/bandwidth/training for DP

2024-10-25 Thread Liankun Yang
to use. Fixed YCbCr422 problem and bandwidth calculation from color format are both in the color format category, so they are bound. In summary, YCbCr 422 and mode valid must rely on DP training timing, so they are strongly bound. Liankun Yang (3): drm/mediatek: Fix YCbCr422 color format issue

[PATCH v2 2/3] drm/mediatek: Fix mode valid issue for dp

2024-10-25 Thread Liankun Yang
10. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") Signed-off-by: Liankun Yang --- Change in V2: - Adjust the writing style. - Add instructions. --- drivers/gpu/drm/mediatek/mtk_dp.c | 28 +--- 1 file changed, 17 insertions(+), 11 delet

[PATCH v1 1/1] drm/mediatek: Add return value check when reading DPCD

2024-09-30 Thread Liankun Yang
Returns the number of bytes transferred (1) on success. Check the return value to confirm that AUX communication is successful. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") Signed-off-by: Liankun Yang --- drivers/gpu/drm/mediatek/mtk_dp.c | 8 ++

[PATCH v2 1/1] drm/mediatek: Fix potential KP on 0 bytes nvmem cell read

2024-09-27 Thread Liankun Yang
If the len is 0, kernel crash will occur when performing operations. Add the len check conditions to prevent kernel crash. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") Signed-off-by: Liankun Yang --- Changes in V2: - Fix the commit title. - Remove

[PATCH v1 1/1] drm/mediatek: Fix wrong check of nvmem_cell_read

2024-09-25 Thread Liankun Yang
If the len is 0, kernel crash will occur when performing operations. Add the len check conditions to prevent kernel crash. Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver") Signed-off-by: Liankun Yang --- drivers/gpu/drm/mediatek/mtk_dp.c | 2 +- 1 file

[PATCH v3 1/1] drm/mediatek: dp: Add sdp path reset

2024-09-24 Thread Liankun Yang
. Through experiments, it can be restored by resetting the SDP path when unplugging it. Signed-off-by: Liankun Yang Reviewed-by: AngeloGioacchino Del Regno --- Changes in V3: - No change. Per suggestion from the previous thread: https://patchwork.kernel.org/project/linux-mediatek/patch

[PATCH v2 1/1] drm/mediatek: dp: Add sdp path reset

2024-09-24 Thread Liankun Yang
. Through experiments, it can be restored by resetting the SDP path when unplugging it. Signed-off-by: Liankun Yang --- Changes in V2: - Fix build error. Per suggestion from the previous thread: https://patchwork.kernel.org/project/linux-mediatek/patch/20240923133610.23728-1-liankun.y...@mediatek.com

[PATCH v1 1/1] drm/mediatek: dp: Add sdp path reset

2024-09-23 Thread Liankun Yang
. Through experiments, it can be restored by resetting the SDP path when unplugging it. Signed-off-by: Liankun Yang --- drivers/gpu/drm/mediatek/mtk_dp.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu/drm/mediatek/mtk_dp.c index

[PATCH v5 1/1] drm/mediatek: Fix get efuse issue for MT8188 DPTX

2024-09-23 Thread Liankun Yang
cchino Del Regno Signed-off-by: Liankun Yang --- Changes in V5: - No change. Per suggestion from the previous thread: https://patchwork.kernel.org/project/linux-mediatek/patch/20240905124041.3658-1-liankun.y...@mediatek.com/ Changes in V4: - Remove excess newlines. Per suggestion from the previ

[PATCH v4 1/1] drm/mediatek: Fix get efuse issue for MT8188 DPTX

2024-09-05 Thread Liankun Yang
Update efuse data for MT8188 displayport. The DP monitor can not display when DUT connected to USB-c to DP dongle. Analysis view is invalid DP efuse data. Fixes: 350c3fe907fb ("drm/mediatek: dp: Add support MT8188 dp/edp function") Reviewed-by: Matthias Brugger Signed-off-by: Li

[PATCH v3 1/1] drm/mediatek: Fix get efuse issue for MT8188 DPTX

2024-09-03 Thread Liankun Yang
Update efuse data for MT8188 displayport. The DP monitor can not display when DUT connected to USB-c to DP dongle. Analysis view is invalid DP efuse data. Fixes: 350c3fe907fb ("drm/mediatek: dp: Add support MT8188 dp/edp function") Signed-off-by: Liankun Yang --- Changes in V3: - Add

[PATCH v2 1/1] drm/mediatek: Fix get efuse issue for MT8188 DPTX

2024-09-02 Thread Liankun Yang
mmit title. - Update the commit description. Per suggestion from the previous thread: https://patchwork.kernel.org/project/linux-mediatek/patch/ 20240510061716.31103-1-liankun.y...@mediatek.com/ Signed-off-by: Liankun Yang --- drivers/gpu/drm/mediatek/mtk_dp.c | 85 ++- 1 fi

[PATCH v2 0/2] Add PHY-dp bindings

2024-05-10 Thread Liankun Yang
Update write DP phyd register and add phy-dp bindings. Liankun Yang (2): Add write DP phyd register from parse dts Add dp PHY dt-bindings .../display/mediatek/mediatek.phy-dp.yaml | 45 +++ drivers/phy/mediatek/phy-mtk-dp.c | 37 +++ 2 files

[PATCH v2 1/2] Add write DP phyd register from parse dts

2024-05-10 Thread Liankun Yang
-off-by: Liankun Yang --- drivers/phy/mediatek/phy-mtk-dp.c | 37 +++ 1 file changed, 37 insertions(+) diff --git a/drivers/phy/mediatek/phy-mtk-dp.c b/drivers/phy/mediatek/phy-mtk-dp.c index d7024a144335..ce78112d5938 100644 --- a/drivers/phy/mediatek/phy-mtk-dp.c

[PATCH v2 2/2] Add dp PHY dt-bindings

2024-05-10 Thread Liankun Yang
Add dp PHY dt-bindings. Changeds in v2: - Add dp PHY dt-bindings. https://patchwork.kernel.org/project/linux-mediatek/patch/ 20240403040517.3279-1-liankun.y...@mediatek.com/ Signed-off-by: Liankun Yang --- .../display/mediatek/mediatek.phy-dp.yaml | 45 +++ 1 file changed

[PATCH v1 1/1] Support YUV422 for DPTX.

2024-05-10 Thread Liankun Yang
Adjust the training sequence.Detects the actual link condition and calculates the bandwidth where the relevant resolution resides. The bandwidth is recalculated and modes that exceed the bandwidth are filtered. Example Modify bandwidth filtering requirements. Signed-off-by: Liankun Yang

[PATCH v1 1/1] Fix get efuse issue for MT8188 DPTX

2024-05-10 Thread Liankun Yang
Fix get efuse issue for MT8188 DPTX. Signed-off-by: Liankun Yang --- drivers/gpu/drm/mediatek/mtk_dp.c | 85 ++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dp.c b/drivers/gpu/drm/mediatek/mtk_dp.c index 2136a596efa1

[PATCH v1 1/1] drm/mediatek/dp: The register is written with the parsed DTS SSC value.

2024-04-03 Thread Liankun Yang
SSC can solve the screen flickering problem. [Test] The SSC configuration values are read from DTS, parsed in the driver, and then written to the hardware. The test results indicate that there is no screen flickering. Signed-off-by: Liankun Yang --- drivers/phy/mediatek/phy-mtk-dp.c | 61

[PATCH v1 1/1] drm/mediatek/ dp: Adjust bandwidth limit for DP

2024-03-15 Thread Liankun Yang
. Subsequently, DP work can proceed based on the actual maximum bandwidth. It should training in the hpd event thread. Check the mode with lane count and link rate of training. Signed-off-by: Liankun Yang --- drivers/gpu/drm/mediatek/mtk_dp.c | 57 +++ 1 file changed