]> git.baikalelectronics.ru Git - kernel.git/commit
habanalabs: fixes to the poll-timeout macros
authorOhad Sharabi <osharabi@habana.ai>
Mon, 4 Jul 2022 05:33:57 +0000 (08:33 +0300)
committerOded Gabbay <ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:30 +0000 (09:09 +0300)
commitb40f6b8157190a4ad46b3b45bebf67454f638305
tree6e9a0589ddd87fa18365084c81c343cb93f7b3be
parent2a6a1166962eedd16bb52e9a8ee4b06b4ffe37e6
habanalabs: fixes to the poll-timeout macros

- use conventional internal macro variables (double underscore prefix)
- adjust address casting
- on register poll using ELBI use ELBI read rather than BAR read on
  error condition
- remove unused macro

Signed-off-by: Ohad Sharabi <osharabi@habana.ai>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
drivers/misc/habanalabs/common/habanalabs.h