drm/rockchip: dw_hdmi: Fix rk3588 hpd misrecognition

When mask rk3588 hpd irq, hpd irq status bit
`ohpd_int` will be clear automatically.

Change-Id: I462e1f9e5e2b1ac923e32a0c7e08a06d4f867083
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
Algea Cao
2024-03-21 14:52:03 +08:00
committed by Tao Huang
parent 16c04d8838
commit edcadb8bb9

View File

@@ -1372,6 +1372,11 @@ static irqreturn_t rk3588_hdmi_hardirq(int irq, void *dev_id)
regmap_read(hdmi->regmap, RK3588_GRF_SOC_STATUS1, &intr_stat);
if (!hdmi->id)
intr_stat = intr_stat & RK3588_HDMI0_OHPD_INT;
else
intr_stat = intr_stat & RK3588_HDMI1_OHPD_INT;
if (intr_stat) {
dev_dbg(hdmi->dev, "hpd irq %#x\n", intr_stat);
@@ -1433,9 +1438,6 @@ static irqreturn_t rk3588_hdmi_thread(int irq, void *dev_id)
regmap_read(hdmi->regmap, RK3588_GRF_SOC_STATUS1, &intr_stat);
if (!intr_stat)
return IRQ_NONE;
if (!hdmi->id) {
val = HIWORD_UPDATE(RK3588_HDMI0_HPD_INT_CLR,
RK3588_HDMI0_HPD_INT_CLR);