Skip to content

utils/lib_video: make video_clean_and_refresh_v4l additive-only (never prune /dev/media)* - #319

Merged
abbajaj806 merged 1 commit into
qualcomm-linux:mainfrom
smuppand:video
Feb 26, 2026
Merged

abbajaj806 merged 1 commit into
qualcomm-linux:mainfrom
smuppand:video

Conversation

@smuppand

Copy link
Copy Markdown
Contributor

This PR updates video_clean_and_refresh_v4l() in Runner/utils/lib_video.sh to be additive-only:

  • Triggers udev for video4linux and media (best-effort).
  • Never deletes or modifies existing /dev/video* or /dev/media* nodes.
  • If a node is missing, it can be recreated from sysfs (/sys/dev/char/:), but no pruning is performed.

video_clean_and_refresh_v4l() now only triggers udev and recreates missing
nodes from sysfs. Existing /dev/media* and /dev/video* entries are left
untouched to avoid disrupting libcamera enumeration.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>

@abbajaj806 abbajaj806 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@abbajaj806
abbajaj806 merged commit d2585b7 into qualcomm-linux:main Feb 26, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants