From nobody Fri Oct 3 15:31:39 2025 Received: from leonov.paulk.fr (leonov.paulk.fr [185.233.101.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEE4D30F944; Thu, 28 Aug 2025 13:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.233.101.22 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756389531; cv=none; b=PM30Kjd/TgmqLdRToThDuqov0eC7w8PcgEqYuTRoKEVKOBi+d73VGMQr/Ty2OBLwQ8KT4PNCrFt/iGXmmgJKJr2EQLEGnPGluxrPRgVFC18aoakMzCGSW7lV3jNpW1Oi78+t+kfZlbLODTQuiVJJ4uKtF+sDoeLCEnpxXFLhyv8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756389531; c=relaxed/simple; bh=h0pnYiLpVOm9ScPXci3LHPTFEOcR0Th23+I4oCnDGo8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pB4wo9sfJ+lCSZdB0/t5eeKBy5QV9pMMsT5K6SVM4mb+tgW9h63oDka7bovWIFqH9JT/dikClog8nDQEdfwycvBWp6PEb1EfplEh4j3IYdvJ4wi7knOGOgIOde2XBVW5v7xVpOhLrGw1Mz0JdK1xEpR4/n2QryipdCy/zI7xI4o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io; spf=pass smtp.mailfrom=sys-base.io; arc=none smtp.client-ip=185.233.101.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sys-base.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sys-base.io Received: from laika.paulk.fr (12.234.24.109.rev.sfr.net [109.24.234.12]) by leonov.paulk.fr (Postfix) with ESMTPS id 0D76E1F0003D; Thu, 28 Aug 2025 13:58:48 +0000 (UTC) Received: by laika.paulk.fr (Postfix, from userid 65534) id 683AAB02226; Thu, 28 Aug 2025 13:58:47 +0000 (UTC) X-Spam-Level: * Received: from shepard (unknown [192.168.1.65]) by laika.paulk.fr (Postfix) with ESMTP id 1B81BB02226; Thu, 28 Aug 2025 13:58:21 +0000 (UTC) From: Paul Kocialkowski To: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Nicolas Dufresne , Benjamin Gaignard , Philipp Zabel , Mauro Carvalho Chehab , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Paul Kocialkowski Subject: [PATCH] media: verisilicon: imx8m: Use the default Hantro G1 irq handler Date: Thu, 28 Aug 2025 15:58:20 +0200 Message-ID: <20250828135820.1859316-1-paulk@sys-base.io> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Philipp Zabel --- .../media/platform/verisilicon/imx8m_vpu_hw.c | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/drivers/media/platform/verisilicon/imx8m_vpu_hw.c b/drivers/me= dia/platform/verisilicon/imx8m_vpu_hw.c index 35799da534ed..f9f276385c11 100644 --- a/drivers/media/platform/verisilicon/imx8m_vpu_hw.c +++ b/drivers/media/platform/verisilicon/imx8m_vpu_hw.c @@ -234,24 +234,6 @@ static const struct hantro_fmt imx8m_vpu_g2_dec_fmts[]= =3D { }, }; =20 -static irqreturn_t imx8m_vpu_g1_irq(int irq, void *dev_id) -{ - struct hantro_dev *vpu =3D dev_id; - enum vb2_buffer_state state; - u32 status; - - status =3D vdpu_read(vpu, G1_REG_INTERRUPT); - state =3D (status & G1_REG_INTERRUPT_DEC_RDY_INT) ? - VB2_BUF_STATE_DONE : VB2_BUF_STATE_ERROR; - - vdpu_write(vpu, 0, G1_REG_INTERRUPT); - vdpu_write(vpu, G1_REG_CONFIG_DEC_CLK_GATE_E, G1_REG_CONFIG); - - hantro_irq_done(vpu, state); - - return IRQ_HANDLED; -} - static int imx8mq_vpu_hw_init(struct hantro_dev *vpu) { vpu->ctrl_base =3D vpu->reg_bases[vpu->variant->num_regs - 1]; @@ -328,7 +310,7 @@ static const struct hantro_codec_ops imx8mq_vpu_g2_code= c_ops[] =3D { */ =20 static const struct hantro_irq imx8mq_irqs[] =3D { - { "g1", imx8m_vpu_g1_irq }, + { "g1", hantro_g1_irq }, }; =20 static const struct hantro_irq imx8mq_g2_irqs[] =3D { --=20 2.50.1