OSDN Git Service

habanalabs: improve a couple of error messages
authorOded Gabbay <oded.gabbay@gmail.com>
Sat, 4 May 2019 13:43:20 +0000 (16:43 +0300)
committerOded Gabbay <oded.gabbay@gmail.com>
Sat, 4 May 2019 13:43:20 +0000 (16:43 +0300)
commitcfc2f35006cbecbbb6672652120cdaf0ec796593
treed0bac25e3760e68ecac5fdceb1e70c983c830371
parent60e8523e2ea18dc0c0cea69d6c1d69a065019062
habanalabs: improve a couple of error messages

This patch improves the error message that is shown when a new user tries
to open a new FD while there is already an existing user that is working
on the device.

It also improves the error message in case of missing firmware file.

Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/firmware_if.c
drivers/misc/habanalabs/habanalabs_drv.c