diff options
author | Dan Williams <dan.j.williams@intel.com> | 2022-01-25 21:24:09 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2022-02-08 23:15:10 -0800 |
commit | 7004cc9d1585fb7fc9ec7e3e92b70b65e13b11fd (patch) | |
tree | b42cecc5e81e7c4bf4ca760ae0fea49b944c11d2 /include/linux/fpga/fpga-mgr.h | |
parent | 0909b4e5287bcda34f00da878ac1f37a0921d959 (diff) |
cxl/core/port: Handle invalid decoders
In case init_hdm_decoder() finds invalid settings, skip to the next
valid decoder. Only fail port enumeration if zero valid decoders are
found. This protects the driver init against broken hardware and / or
future interleave capabilities.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/164317464918.3438644.12371149695618136198.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions