From: Oded Gabbay <ogabbay@kernel.org>
To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: [PATCH 6/9] accel/habanalabs: print device name when it is removed
Date: Tue, 26 Sep 2023 11:13:42 +0300 [thread overview]
Message-ID: <20230926081345.240927-6-ogabbay@kernel.org> (raw)
In-Reply-To: <20230926081345.240927-1-ogabbay@kernel.org>
Notifies the user which device was removed. It is important in
a server with multiple devices.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
---
drivers/accel/habanalabs/common/device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/accel/habanalabs/common/device.c b/drivers/accel/habanalabs/common/device.c
index b1d330cd2537..9711e8fc979d 100644
--- a/drivers/accel/habanalabs/common/device.c
+++ b/drivers/accel/habanalabs/common/device.c
@@ -2420,7 +2420,7 @@ void hl_device_fini(struct hl_device *hdev)
u64 reset_sec;
int i, rc;
- dev_info(hdev->dev, "Removing device\n");
+ dev_info(hdev->dev, "Removing device %s\n", dev_name(&(hdev)->pdev->dev));
hdev->device_fini_pending = 1;
flush_delayed_work(&hdev->device_reset_work.reset_work);
--
2.34.1
next prev parent reply other threads:[~2023-09-26 8:14 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 8:13 [PATCH 1/9] accel/habanalabs: minor cosmetics update to cpucp_if.h Oded Gabbay
2023-09-26 8:13 ` [PATCH 2/9] accel/habanalabs: minor cosmetics update to trace file Oded Gabbay
2023-09-26 8:13 ` [PATCH 3/9] accel/habanalabs: change Greco to Gaudi2 Oded Gabbay
2023-09-26 8:13 ` [PATCH 4/9] accel/habanalabs/gaudi: remove unused structure definition Oded Gabbay
2023-09-26 8:13 ` [PATCH 5/9] accel/habanalabs: remove unused field Oded Gabbay
2023-09-26 8:13 ` Oded Gabbay [this message]
2023-09-26 8:13 ` [PATCH 7/9] accel/habanalabs: remove leftover code Oded Gabbay
2023-09-26 8:13 ` [PATCH 8/9] accel/habanalabs/gaudi: remove define used for simulator Oded Gabbay
2023-09-26 8:13 ` [PATCH 9/9] accel/habanalabs: minor cosmetic update to habanalabs.h Oded Gabbay
2023-10-01 9:13 ` [PATCH 1/9] accel/habanalabs: minor cosmetics update to cpucp_if.h Ofir Bitton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230926081345.240927-6-ogabbay@kernel.org \
--to=ogabbay@kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.