]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: v4l2-fwnode: Return -EPROBE_DEFER on parsing NULL endpoints
authorSakari Ailus <sakari.ailus@linux.intel.com>
Wed, 4 Mar 2026 22:16:10 +0000 (00:16 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 24 Mar 2026 10:58:02 +0000 (11:58 +0100)
commit8015a49d8b33f2b1fb191017055ce3de933d547a
tree54510170021e2c2b35e706cdb83d406edaae900c
parent8cd35ceadcfc8c5da2eb7f7ce24525ce9d4ee62e
media: v4l2-fwnode: Return -EPROBE_DEFER on parsing NULL endpoints

In general drivers get their firmware graph endpoints from system
firmware, but on some systems this information is conveyed to drivers via
software nodes. The software nodes may be instantiated only after the
drivers are first probed, requiring drivers to explicitly issue
-EPROBE_DEFER when endpoints aren't found.

Instead of doing this in all (or at least most) drivers, make v4l2-fwnode
endpoint parsing functions v4l2_fwnode_endpoint_parse() and
v4l2_fwnode_endpoint_alloc_parse() return -EPROBE_DEFER when an endpoint
is NULL.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/v4l2-core/v4l2-fwnode.c
include/media/v4l2-fwnode.h