[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250828085911.81266-5-inbaraj.e@samsung.com>
Date: Thu, 28 Aug 2025 14:29:08 +0530
From: Inbaraj E <inbaraj.e@...sung.com>
To: rmfrfs@...il.com, laurent.pinchart@...asonboard.com, martink@...teo.de,
kernel@...i.sm, mchehab@...nel.org, robh@...nel.org, krzk+dt@...nel.org,
conor+dt@...nel.org, shawnguo@...nel.org, s.hauer@...gutronix.de
Cc: kernel@...gutronix.de, festevam@...il.com, linux-media@...r.kernel.org,
devicetree@...r.kernel.org, imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
linux-samsung-soc@...r.kernel.org, pankaj.dubey@...sung.com,
ravi.patel@...sung.com, shradha.t@...sung.com, Inbaraj E
<inbaraj.e@...sung.com>
Subject: [PATCH v3 4/7] media: imx-mipi-csis: Move irq flag and handler to
mipi_csis_info structure
The Tesla FSD CSIS IP has single IRQ line, which is shared between
imx-mipi-csis and fsd-csis drivers. To extend this driver for Tesla FSD
SoC support, move the IRQ flag and IRQ handler into the device
data(structure mipi_csis_info).
Signed-off-by: Inbaraj E <inbaraj.e@...sung.com>
---
drivers/media/platform/nxp/imx-mipi-csis.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/drivers/media/platform/nxp/imx-mipi-csis.c b/drivers/media/platform/nxp/imx-mipi-csis.c
index cec035059445..2443906377bd 100644
--- a/drivers/media/platform/nxp/imx-mipi-csis.c
+++ b/drivers/media/platform/nxp/imx-mipi-csis.c
@@ -322,6 +322,8 @@ struct mipi_csis_info {
enum mipi_csis_version version;
unsigned int num_clocks;
const char *clk_names[MIPI_CSIS_MAX_CLOCKS];
+ unsigned int irq_flag;
+ irq_handler_t irq_handler;
};
struct mipi_csis_device {
@@ -1532,7 +1534,7 @@ static int mipi_csis_probe(struct platform_device *pdev)
mipi_csis_phy_reset(csis);
/* Now that the hardware is initialized, request the interrupt. */
- ret = devm_request_irq(dev, irq, mipi_csis_irq_handler, 0,
+ ret = devm_request_irq(dev, irq, csis->info->irq_handler, csis->info->irq_flag,
dev_name(dev), csis);
if (ret) {
dev_err(dev, "Interrupt request failed\n");
@@ -1606,6 +1608,8 @@ static const struct of_device_id mipi_csis_of_match[] = {
.version = MIPI_CSIS_V3_3,
.num_clocks = 3,
.clk_names = {"pclk", "wrap", "phy"},
+ .irq_flag = 0,
+ .irq_handler = mipi_csis_irq_handler,
},
}, {
.compatible = "fsl,imx8mm-mipi-csi2",
@@ -1613,6 +1617,8 @@ static const struct of_device_id mipi_csis_of_match[] = {
.version = MIPI_CSIS_V3_6_3,
.num_clocks = 4,
.clk_names = {"pclk", "wrap", "phy", "axi"},
+ .irq_flag = 0,
+ .irq_handler = mipi_csis_irq_handler,
},
},
{ /* sentinel */ },
--
2.49.0
Powered by blists - more mailing lists