From: Dmitry Osipenko <dmitry.osipenko@collabora.com>
To: Alexander Shiyan <eagle.alexander923@gmail.com>,
linux-media@vger.kernel.org, Hans Verkuil <hverkuil@kernel.org>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Shreeya Patel <shreeya.patel@collabora.com>,
Dingxian Wen <shawn.wen@rock-chips.com>
Subject: Re: [PATCH] media: synopsys: hdmirx: use request_any_context_irq() for 5V detection IRQ
Date: Fri, 3 Jul 2026 17:45:29 +0300 [thread overview]
Message-ID: <3f9b7fe7-de08-4dde-94af-408dce1060f4@collabora.com> (raw)
In-Reply-To: <20260703070029.1762457-1-eagle.alexander923@gmail.com>
On 7/3/26 10:00, Alexander Shiyan wrote:
> Replace devm_request_irq() with devm_request_any_context_irq()
> for the 5V detection interrupt handler. This allows the kernel
> to choose the appropriate execution context (hardirq or threaded)
> depending on the underlying interrupt controller. On some platforms,
> the interrupt may be nested or require a threaded handler, and
> using the fixed hardirq version can cause probe failures.
> Switching to the more flexible function improves driver portability
> without affecting functionality.
>
> Fixes: 7b59b132ad43 ("media: platform: synopsys: Add support for HDMI input driver")
> Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
> ---
> drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c | 9 +++++----
> 1 file changed, 5 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
> index 4c8957505a50..fa9818705f42 100644
> --- a/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
> +++ b/drivers/media/platform/synopsys/hdmirx/snps_hdmirx.c
> @@ -2609,10 +2609,11 @@ static int hdmirx_setup_irq(struct snps_hdmirx_dev *hdmirx_dev,
> irq_set_status_flags(irq, IRQ_NOAUTOEN);
>
> hdmirx_dev->det_irq = irq;
> - ret = devm_request_irq(dev, irq, hdmirx_5v_det_irq_handler,
> - IRQF_TRIGGER_FALLING | IRQF_TRIGGER_RISING,
> - "rk_hdmirx-5v", hdmirx_dev);
> - if (ret) {
> + ret = devm_request_any_context_irq(dev, irq, hdmirx_5v_det_irq_handler,
> + IRQF_TRIGGER_FALLING |
> + IRQF_TRIGGER_RISING,
> + "rk_hdmirx-5v", hdmirx_dev);
> + if (ret < 0) {
> dev_err_probe(dev, ret, "failed to request hdmirx-5v irq\n");
> return ret;
> }
Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
--
Best regards,
Dmitry
prev parent reply other threads:[~2026-07-03 14:45 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-03 7:00 [PATCH] media: synopsys: hdmirx: use request_any_context_irq() for 5V detection IRQ Alexander Shiyan
2026-07-03 14:45 ` Dmitry Osipenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3f9b7fe7-de08-4dde-94af-408dce1060f4@collabora.com \
--to=dmitry.osipenko@collabora.com \
--cc=eagle.alexander923@gmail.com \
--cc=hverkuil@kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=shawn.wen@rock-chips.com \
--cc=shreeya.patel@collabora.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.