Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: verisilicon: imx8m: Use the default Hantro G1 irq handler

The existing imx8m_vpu_g1_irq implementation is an exact copy of the
default hantro_g1_irq one. Switch over to it instead of keeping a
duplicated implementation.

Signed-off-by: Paul Kocialkowski <paulk@sys-base.io>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>

authored by

Paul Kocialkowski and committed by
Hans Verkuil
3d4a87ad bffcb127

+1 -19
+1 -19
drivers/media/platform/verisilicon/imx8m_vpu_hw.c
··· 234 234 }, 235 235 }; 236 236 237 - static irqreturn_t imx8m_vpu_g1_irq(int irq, void *dev_id) 238 - { 239 - struct hantro_dev *vpu = dev_id; 240 - enum vb2_buffer_state state; 241 - u32 status; 242 - 243 - status = vdpu_read(vpu, G1_REG_INTERRUPT); 244 - state = (status & G1_REG_INTERRUPT_DEC_RDY_INT) ? 245 - VB2_BUF_STATE_DONE : VB2_BUF_STATE_ERROR; 246 - 247 - vdpu_write(vpu, 0, G1_REG_INTERRUPT); 248 - vdpu_write(vpu, G1_REG_CONFIG_DEC_CLK_GATE_E, G1_REG_CONFIG); 249 - 250 - hantro_irq_done(vpu, state); 251 - 252 - return IRQ_HANDLED; 253 - } 254 - 255 237 static int imx8mq_vpu_hw_init(struct hantro_dev *vpu) 256 238 { 257 239 vpu->ctrl_base = vpu->reg_bases[vpu->variant->num_regs - 1]; ··· 310 328 */ 311 329 312 330 static const struct hantro_irq imx8mq_irqs[] = { 313 - { "g1", imx8m_vpu_g1_irq }, 331 + { "g1", hantro_g1_irq }, 314 332 }; 315 333 316 334 static const struct hantro_irq imx8mq_g2_irqs[] = {