mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
drm/rockchip: dw_hdmi: Fix rk3576 hpd misrecognition
When mask rk3576 hpd irq, hpd irq status bit `ohpd_int` will be clear automatically. Change-Id: Ia3261ee439657f33bce36e244d52573586f2d92c Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
@@ -1352,7 +1352,7 @@ static irqreturn_t rk3576_hdmi_hardirq(int irq, void *dev_id)
|
||||
|
||||
regmap_read(hdmi->regmap, RK3576_IOC_HDMITX_HPD_STATUS, &intr_stat);
|
||||
|
||||
if (intr_stat) {
|
||||
if (intr_stat & RK3576_HDMITX_OHPD_INT) {
|
||||
dev_dbg(hdmi->dev, "hpd irq %#x\n", intr_stat);
|
||||
|
||||
val = HIWORD_UPDATE(RK3576_HDMITX_HPD_INT_MSK,
|
||||
@@ -1397,9 +1397,6 @@ static irqreturn_t rk3576_hdmi_thread(int irq, void *dev_id)
|
||||
|
||||
regmap_read(hdmi->regmap, RK3576_IOC_HDMITX_HPD_STATUS, &intr_stat);
|
||||
|
||||
if (!intr_stat)
|
||||
return IRQ_NONE;
|
||||
|
||||
val = HIWORD_UPDATE(RK3576_HDMITX_HPD_INT_CLR,
|
||||
RK3576_HDMITX_HPD_INT_CLR);
|
||||
if (intr_stat & RK3576_HDMITX_LEVEL_INT)
|
||||
|
||||
Reference in New Issue
Block a user