mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 10:49:28 +00:00
drm/omap: ratelimit OCP error
Use dev_err_ratelimited() when an OCP error happens, to slightly easen the flood. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
4b9cdd96e7
commit
dc50be89d7
1 changed files with 4 additions and 3 deletions
|
@ -182,12 +182,13 @@ static void omap_irq_fifo_underflow(struct omap_drm_private *priv,
|
||||||
pr_cont("(0x%08x)\n", irqstatus);
|
pr_cont("(0x%08x)\n", irqstatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void omap_irq_ocp_error_handler(u32 irqstatus)
|
static void omap_irq_ocp_error_handler(struct drm_device *dev,
|
||||||
|
u32 irqstatus)
|
||||||
{
|
{
|
||||||
if (!(irqstatus & DISPC_IRQ_OCP_ERR))
|
if (!(irqstatus & DISPC_IRQ_OCP_ERR))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
DRM_ERROR("OCP error\n");
|
dev_err_ratelimited(dev->dev, "OCP error\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static irqreturn_t omap_irq_handler(int irq, void *arg)
|
static irqreturn_t omap_irq_handler(int irq, void *arg)
|
||||||
|
@ -218,7 +219,7 @@ static irqreturn_t omap_irq_handler(int irq, void *arg)
|
||||||
omap_crtc_error_irq(crtc, irqstatus);
|
omap_crtc_error_irq(crtc, irqstatus);
|
||||||
}
|
}
|
||||||
|
|
||||||
omap_irq_ocp_error_handler(irqstatus);
|
omap_irq_ocp_error_handler(dev, irqstatus);
|
||||||
omap_irq_fifo_underflow(priv, irqstatus);
|
omap_irq_fifo_underflow(priv, irqstatus);
|
||||||
|
|
||||||
spin_lock_irqsave(&priv->wait_lock, flags);
|
spin_lock_irqsave(&priv->wait_lock, flags);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue