<html><body><p>
<pre>
On Mon, 2025-08-11 at 17:28 +0800, CK Hu wrote:
> On Sun, 2025-08-10 at 14:17 +0800, Haru Zheng wrote:
> > External email : Please do not click links or open attachments until you have verified the sender or the content.
> >
> >
> > When suspending and resuming DisplayPort via Type-C,
> > link training will be fail.
> >
> > This patch backports the software IRQ handling for DP,
> > as eDP uses hardware IRQ while DP uses software IRQ.
>
> This patch just modify the flow of DP, not eDP, so do not mention eDP here.
> For DP, I don't know why hardware IRQ would fail.
> HDMI support suspend and resume and it does not software IRQ.
> Please describe the hardware behavior when resume and point out why hardware would not trigger hardware hot plug interrupt.

In addition, resume flow is similar to boot up flow.

In boot up flow, the step is:
1. Plug in cable
2. Power on DP hardware.
3. DP HDP hardware interrupt happen.

So, in resume flow:
1. Plug in cable
2. Power on DP hardware
3. DP HDP hardware interrupt happen. (disappear?)

The flow is the same, why resume has no hardware interrupt?

Regards,
CK

>
> > Additionally, cable_plugged_in is flipped in
> > mtk_dp_hpd_event to ensure correct hotplug detection
> > during resume.
> >
> > These changes fix the DP training failure after suspend/resume.
> >
> > Fixes: f70ac097a2cf ("drm/mediatek: Add MT8195 Embedded DisplayPort driver")
> > Signed-off-by: Haru Zheng <towwy321@gmail.com>
> >
> > ---


</pre>
</p></body></html><!--type:text--><!--{--><pre>************* MEDIATEK Confidentiality Notice
 ********************
The information contained in this e-mail message (including any 
attachments) may be confidential, proprietary, privileged, or otherwise
exempt from disclosure under applicable laws. It is intended to be 
conveyed only to the designated recipient(s). Any use, dissemination, 
distribution, printing, retaining or copying of this e-mail (including its 
attachments) by unintended recipient(s) is strictly prohibited and may 
be unlawful. If you are not an intended recipient of this e-mail, or believe
 
that you have received this e-mail in error, please notify the sender 
immediately (by replying to this e-mail), delete any and all copies of 
this e-mail (including any attachments) from your system, and do not
disclose the content of this e-mail to any other person. Thank you!
</pre><!--}-->