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)
commit20cd88a775381e3ea4c2e88447a79f8715db1af7
tree6e9a0589ddd87fa18365084c81c343cb93f7b3be
parent3fc252670bd53f139d24c3aaafa566d54b631ca7
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