Skip to content
Commit 680cb399 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: ratelimit warnings at start of IOCTLs



At the start of some IOCTLs we check if the device is disabled or in reset.
If it is, we return -EBUSY and print a message to kernel log.

Because these IOCTLs can be called at very high frequency, use ratelimit
to avoid spamming the kernel log. Also use the same type of message -
dev_warn - in all the relevant IOCTLs.

Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
parent e0a29952
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment