Commit 86b5196f authored by Federico Vaga's avatar Federico Vaga

kernel: use the vic ack function to ack the VIC

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 182e30e7
......@@ -150,6 +150,7 @@ static irqreturn_t spec_vic_irq_handler(int id, void *data)
*/
spin_lock(&spec->irq_lock);
rv = spec_vic_irq_dispatch(spec);
spec_vic_irq_ack(spec, 0);
spin_unlock(&spec->irq_lock);
spec_shared_irq_ack(fmc);
......
......@@ -137,7 +137,6 @@ irqreturn_t spec_vic_irq_dispatch(struct spec_dev *spec)
rv = vec->handler(vec->saved_id, vec->requestor);
vic_writel(vic, 0, VIC_REG_EOIR); /* ack the irq */
return rv;
fail:
......@@ -237,5 +236,5 @@ void spec_vic_irq_free(struct spec_dev *spec, unsigned long id)
void spec_vic_irq_ack(struct spec_dev *spec, unsigned long id)
{
/* fixme: do we need anything special here? */
vic_writel(spec->vic, 0, VIC_REG_EOIR); /* ack the irq */
}
......@@ -158,6 +158,7 @@ int spec_vic_irq_request(struct spec_dev *spec, struct fmc_device *fmc,
unsigned long id, irq_handler_t handler);
void spec_vic_irq_free(struct spec_dev *spec, unsigned long id);
irqreturn_t spec_vic_irq_dispatch(struct spec_dev *spec);
extern void spec_vic_irq_ack(struct spec_dev *spec, unsigned long id);
extern int vic_is_managed(struct vic_irq_controller *vic, unsigned long id);
#endif /* __SPEC_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment