]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
platform/x86/intel/vsec: Return real error codes from registration path
authorDavid E. Box <david.e.box@linux.intel.com>
Fri, 13 Mar 2026 01:51:44 +0000 (18:51 -0700)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 17 Mar 2026 16:51:17 +0000 (18:51 +0200)
commita6ce8bf3c993d8c2e8a6aeb2596429c101fe4462
tree1e1b8c546de86cc511f88de39fd9d87f6f678c3a
parent353042d54d82f6c46449f0ee38c244b5a13c1fe4
platform/x86/intel/vsec: Return real error codes from registration path

Stop collapsing registration results into booleans. Make
intel_vsec_walk_header() return int and propagate the first non-zero error
from intel_vsec_register_device(). intel_vsec_register() now returns that
error directly and 0 on success.

This preserves success behavior while surfacing meaningful errors instead
of hiding them behind a bool/-ENODEV, which makes debugging and probe
ordering issues clearer.

Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: David E. Box <david.e.box@linux.intel.com>
Link: https://patch.msgid.link/20260313015202.3660072-6-david.e.box@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/vsec.c