From: sashiko-bot@kernel.org
To: "Sascha Hauer" <s.hauer@pengutronix.de>
Cc: robh@kernel.org, media-ci@linuxtv.org,
devicetree@vger.kernel.org, conor+dt@kernel.org
Subject: Re: [PATCH v3 09/10] media: v4l2-subdev: notify the bridge when the source power changes
Date: Mon, 05 Oct 2026 14:02:40 +0000 [thread overview]
Message-ID: <20261005140240.644461F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20261005-hdmirx-media-v3-9-71a11a2e3e76@pengutronix.de>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] media: missing V4L2_DEVICE_NOTIFY_RX_POWER_PRESENT producers breaks hotplug
--
commit 6a92b4c6dc1e86451bb217218d03ed0f4be33caf
Author: Sascha Hauer <s.hauer@pengutronix.de>
media: v4l2-subdev: notify the bridge when the source power changes
This commit adds a new V4L2_DEVICE_NOTIFY_RX_POWER_PRESENT notification
macro. It allows subdevices to notify the bridge when the source power
changes on the connector's +5V line, so devices can act on hardware
changes instead of only handing the value to userspace.
> diff --git a/include/media/v4l2-subdev.h b/include/media/v4l2-subdev.h
> --- a/include/media/v4l2-subdev.h
> +++ b/include/media/v4l2-subdev.h
[ ... ]
> @@ -29,6 +29,14 @@
>
> #define V4L2_DEVICE_NOTIFY_EVENT _IOW('v', 2, struct v4l2_event)
>
> +/*
> + * The source power state a receiver publishes as
> + * V4L2_CID_DV_RX_POWER_PRESENT has changed. The argument points at an
> + * unsigned int holding the same per-input mask as that control, so zero
> + * means no input sees a source.
> + */
> +#define V4L2_DEVICE_NOTIFY_RX_POWER_PRESENT _IOW('v', 3, unsigned int)
[Severity: Medium]
Is this notification actually emitted by any subdevices in this series?
While this macro is added to allow subdevices to notify the bridge of power
changes (and is consumed by hdmirx_notify in patch 10 to detect hotplug
events on boards lacking a dedicated 5V GPIO), it doesn't appear to be
used by any upstream subdevice drivers like adv7604 or tc358743 in this
patch series.
When a user plugs or unplugs the HDMI cable at runtime, the upstream
subdevice updates the V4L2_CID_DV_RX_POWER_PRESENT control but fails to
emit this V4L2_DEVICE_NOTIFY_RX_POWER_PRESENT event. Without the producer
side implemented, the receiver (e.g. snps_hdmirx) never receives the
notification and fails to rescan the link state.
Does this leave runtime hotplug functionality incomplete or broken on
boards that rely on this notification rather than a dedicated 5V GPIO?
> +
> struct v4l2_device;
> struct v4l2_ctrl_handler;
> struct v4l2_event;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261005-hdmirx-media-v3-0-71a11a2e3e76@pengutronix.de?part=9
next prev parent reply other threads:[~2026-10-05 14:02 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-05 13:28 [PATCH v3 00/10] media: synopsys: hdmirx: support an HDMI bridge in front of the receiver Sascha Hauer
2026-10-05 13:28 ` [PATCH v3 01/10] media: synopsys: hdmirx: free the driver data when the last user is gone Sascha Hauer
2026-10-05 13:43 ` sashiko-bot
2026-10-07 11:20 ` Dmitry Osipenko
2026-10-05 13:28 ` [PATCH v3 02/10] media: synopsys: hdmirx: add media device infrastructure Sascha Hauer
2026-10-05 13:28 ` [PATCH v3 03/10] media: synopsys: hdmirx: add media entity for video capture device Sascha Hauer
2026-10-05 13:28 ` [PATCH v3 04/10] dt-bindings: media: snps,dw-hdmi-rx: add a port for a bridge in front Sascha Hauer
2026-10-05 13:28 ` [PATCH v3 05/10] media: synopsys: hdmirx: add async subdevice support Sascha Hauer
2026-10-05 13:28 ` [PATCH v3 06/10] media: synopsys: hdmirx: give the signal lock wait a real timeout Sascha Hauer
2026-10-05 13:28 ` [PATCH v3 07/10] media: synopsys: hdmirx: skip the 5V detect interrupt without a GPIO Sascha Hauer
2026-10-05 13:28 ` [PATCH v3 08/10] media: v4l2-device: wait for notifications when unregistering a subdev Sascha Hauer
2026-10-05 13:28 ` [PATCH v3 09/10] media: v4l2-subdev: notify the bridge when the source power changes Sascha Hauer
2026-10-05 14:02 ` sashiko-bot [this message]
2026-10-05 13:28 ` [PATCH v3 10/10] media: synopsys: hdmirx: get the 5V state from the upstream subdev Sascha Hauer
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=20261005140240.644461F000FF@smtp.kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=media-ci@linuxtv.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=sashiko-reviews@lists.linux.dev \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox