mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 07:04:04 +08:00
habanalabs: print message with correct device
During hard-reset, the driver rejects further IOCTL calls and prints an error message. That error message should be printed with the correct device instead of using only the control device. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
This commit is contained in:
parent
5a2998f46c
commit
92ede12a07
@ -573,7 +573,7 @@ static long _hl_ioctl(struct file *filep, unsigned int cmd, unsigned long arg,
|
||||
int retcode;
|
||||
|
||||
if (hdev->hard_reset_pending) {
|
||||
dev_crit_ratelimited(hdev->dev_ctrl,
|
||||
dev_crit_ratelimited(dev,
|
||||
"Device HARD reset pending! Please close FD\n");
|
||||
return -ENODEV;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user