]> git.ipfire.org Git - thirdparty/linux.git/commit
fpga: of-fpga-region: Fail if any bridge is missing
authorRomain Gantois <romain.gantois@bootlin.com>
Thu, 27 Nov 2025 15:58:48 +0000 (16:58 +0100)
committerXu Yilun <yilun.xu@linux.intel.com>
Fri, 19 Dec 2025 15:39:20 +0000 (23:39 +0800)
commitc141c8221bc5089de915d9f26044df892c343c7e
tree2ad1c7aeba48f4eff3448ff1c6ff34efc3218db3
parent8f0b4cce4481fb22653697cced8d0d04027cb1e8
fpga: of-fpga-region: Fail if any bridge is missing

When parsing the region bridge list from the "fpga-bridges" device tree
property, the of-fpga-region driver will silently ignore bridges which fail
to be obtained, for example due to a missing bridge driver or invalid
phandle.

This can lead to hardware issues if a region bridge stays coupled when
partial programming is performed.

Fail if any of the bridges specified in "fpga-bridges" cannot be obtained.

Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
Link: https://lore.kernel.org/r/20251127-of-fpga-region-fail-if-bridges-not-found-v1-1-ca674f8d07eb@bootlin.com
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
drivers/fpga/of-fpga-region.c