habanalabs: print warning when reset is requested
authorOded Gabbay <oded.gabbay@gmail.com>
Fri, 27 Mar 2020 13:32:33 +0000 (16:32 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Sun, 17 May 2020 09:06:22 +0000 (12:06 +0300)
commit49aba0bbab20a581dc3e32a6ee636c07a542eb9e
treeb875bd5478885833ffdd47c5240ee739d4765359
parent7e1c07dd35250971cd29c60c786ac676179eb7f9
habanalabs: print warning when reset is requested

When the system administrator asks the driver to soft or hard reset the
device through sysfs, the driver should display a warning in the kernel log
to explain why it suddenly resets the device.

Reviewed-by: Omer Shpigelman <oshpigelman@habana.ai>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/sysfs.c