* [PATCH] media: rkvdec: Propagate platform_get_irq() errors
@ 2026-07-01 11:12 Narasimharao Vadlamudi
2026-07-02 17:57 ` Detlev Casanova
0 siblings, 1 reply; 2+ messages in thread
From: Narasimharao Vadlamudi @ 2026-07-01 11:12 UTC (permalink / raw)
To: Detlev Casanova
Cc: Ezequiel Garcia, Mauro Carvalho Chehab, Heiko Stuebner,
Hans Verkuil, Boris Brezillon, linux-media, linux-rockchip,
linux-arm-kernel, linux-kernel, Narasimharao Vadlamudi
platform_get_irq() returns a positive IRQ number on success and a
negative error code on failure. It no longer returns zero. The driver
currently returns -ENXIO for all failures, which loses useful errors
such as -EPROBE_DEFER.
Return the error from platform_get_irq() directly.
Fixes: cd33c830448b ("media: rkvdec: Add the rkvdec driver")
Signed-off-by: Narasimharao Vadlamudi <ahmisaranrao@gmail.com>
---
drivers/media/platform/rockchip/rkvdec/rkvdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/platform/rockchip/rkvdec/rkvdec.c b/drivers/media/platform/rockchip/rkvdec/rkvdec.c
index 1d1e9bfef8e9..37683a6bb40f 100644
--- a/drivers/media/platform/rockchip/rkvdec/rkvdec.c
+++ b/drivers/media/platform/rockchip/rkvdec/rkvdec.c
@@ -1818,8 +1818,8 @@ static int rkvdec_probe(struct platform_device *pdev)
vb2_dma_contig_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32));
irq = platform_get_irq(pdev, 0);
- if (irq <= 0)
- return -ENXIO;
+ if (irq < 0)
+ return irq;
ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
rkvdec_irq_handler, IRQF_ONESHOT,
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] media: rkvdec: Propagate platform_get_irq() errors
2026-07-01 11:12 [PATCH] media: rkvdec: Propagate platform_get_irq() errors Narasimharao Vadlamudi
@ 2026-07-02 17:57 ` Detlev Casanova
0 siblings, 0 replies; 2+ messages in thread
From: Detlev Casanova @ 2026-07-02 17:57 UTC (permalink / raw)
To: Narasimharao Vadlamudi
Cc: Ezequiel Garcia, Mauro Carvalho Chehab, Heiko Stuebner,
Hans Verkuil, Boris Brezillon, linux-media, linux-rockchip,
linux-arm-kernel, linux-kernel, Narasimharao Vadlamudi
Hi Vadlamudi,
On Wednesday, July 1, 2026 7:12:03 a.m. Eastern Daylight Time Narasimharao
Vadlamudi wrote:
> platform_get_irq() returns a positive IRQ number on success and a
> negative error code on failure. It no longer returns zero. The driver
> currently returns -ENXIO for all failures, which loses useful errors
> such as -EPROBE_DEFER.
>
> Return the error from platform_get_irq() directly.
>
> Fixes: cd33c830448b ("media: rkvdec: Add the rkvdec driver")
> Signed-off-by: Narasimharao Vadlamudi <ahmisaranrao@gmail.com>
> ---
> drivers/media/platform/rockchip/rkvdec/rkvdec.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/platform/rockchip/rkvdec/rkvdec.c
> b/drivers/media/platform/rockchip/rkvdec/rkvdec.c index
> 1d1e9bfef8e9..37683a6bb40f 100644
> --- a/drivers/media/platform/rockchip/rkvdec/rkvdec.c
> +++ b/drivers/media/platform/rockchip/rkvdec/rkvdec.c
> @@ -1818,8 +1818,8 @@ static int rkvdec_probe(struct platform_device *pdev)
> vb2_dma_contig_set_max_seg_size(&pdev->dev, DMA_BIT_MASK(32));
>
> irq = platform_get_irq(pdev, 0);
> - if (irq <= 0)
> - return -ENXIO;
> + if (irq < 0)
> + return irq;
>
> ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
> rkvdec_irq_handler,
IRQF_ONESHOT,
Thank you for the patch ! And sorry for the HTML email before. So for the
record:
Reviewed-by: Detlev Casanova <detlev.casanova@collabora.com>
--
Detlev.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-07-02 17:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-01 11:12 [PATCH] media: rkvdec: Propagate platform_get_irq() errors Narasimharao Vadlamudi
2026-07-02 17:57 ` Detlev Casanova
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox