]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/habanalabs/gaudi2: revise return value handling in gaudi2_hbm_sei_handle_read_err()
authorTomer Tayar <ttayar@habana.ai>
Sun, 10 Mar 2024 10:03:22 +0000 (12:03 +0200)
committerOfir Bitton <obitton@habana.ai>
Sun, 23 Jun 2024 06:53:03 +0000 (09:53 +0300)
commitc754bcf9dd06e9b532633ede41e7c5146d132249
treeb803603e13a72a2d16213ed3913c35e4c854ba29
parent990e0d91bf7d2e6dbacfa8af9048b9c4cedaa0f5
accel/habanalabs/gaudi2: revise return value handling in gaudi2_hbm_sei_handle_read_err()

The return value in gaudi2_hbm_sei_handle_read_err() is boolean and not
a bitmask, so there is need for "|= true".
In addition, rename the 'rc' variable, as no "return code" is returned
here but an indication if a hard reset is required.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Ofir Bitton <obitton@habana.ai>
Signed-off-by: Ofir Bitton <obitton@habana.ai>
drivers/accel/habanalabs/gaudi2/gaudi2.c