]> Gentwo Git Trees - linux/.git/commit
accel/habanalabs: add Infineon version check
authorPavan S <pavan.sreenivas@intel.com>
Wed, 2 Oct 2024 07:46:40 +0000 (10:46 +0300)
committerKoby Elbaz <koby.elbaz@intel.com>
Thu, 25 Sep 2025 06:14:45 +0000 (09:14 +0300)
commit6ca282c3e635cd98cc5a9bb24606b41379e1fd8e
tree93d1b4c6612c2771300bc44929f0c4494ac7108f
parenta0d866bab184161ba155b352650083bf6695e50e
accel/habanalabs: add Infineon version check

On HL338 ASICs, the Infineon first‑stage firmware is not present and
the reported version is 0. In this case printing a version number is
misleading, as it suggests valid firmware when it does not exist.

Fix this by printing the first‑stage Infineon firmware version only
if the reported value is non‑zero. This avoids confusing or incorrect
log messages on devices where the first stage is not applicable.

Signed-off-by: Pavan S <pavan.sreenivas@intel.com>
Reviewed-by: Koby Elbaz <koby.elbaz@intel.com>
Signed-off-by: Koby Elbaz <koby.elbaz@intel.com>
drivers/accel/habanalabs/common/sysfs.c