From 14a844c42a31b91245599e8a66172c7b3bd2ae56 Mon Sep 17 00:00:00 2001 From: Andrew Lewycky Date: Tue, 25 Jun 2024 15:43:28 -0400 Subject: [PATCH] Replace wormhole_reboot with wormhole_cleanup_hardware --- wormhole.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/wormhole.c b/wormhole.c index 69f48fc..0c1d1cf 100644 --- a/wormhole.c +++ b/wormhole.c @@ -208,12 +208,6 @@ static void wormhole_cleanup(struct tenstorrent_device *tt_dev) { pci_iounmap(wh_dev->tt.pdev, wh_dev->bar4_mapping); } -static void wormhole_reboot(struct tenstorrent_device *tt_dev) { - struct wormhole_device *wh_dev = tt_dev_to_wh_dev(tt_dev); - - grayskull_shutdown_firmware(tt_dev->pdev, reset_unit_regs(wh_dev)); -} - struct tenstorrent_device_class wormhole_class = { .name = "Wormhole", .instance_size = sizeof(struct wormhole_device), @@ -222,5 +216,5 @@ struct tenstorrent_device_class wormhole_class = { .post_hardware_init = wormhole_post_hardware_init, .cleanup_hardware = wormhole_cleanup_hardware, .cleanup_device = wormhole_cleanup, - .reboot = wormhole_reboot, + .reboot = wormhole_cleanup_hardware, };