From d2397ff590582040a3973b6d6f0aadab63a69cca Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 19 Jul 2021 10:42:27 +0000 Subject: [PATCH] drm/radeon: Call radeon_suspend_kms() in radeon_pci_shutdown() for Loongson64 From Tiezhu Yang 0d50d93d05d6571347f3ab9d28d0b80e5d142d81 in linux 5.10.y/5.10.51 c1bfd74bfef77bcefc88d12eaf8996c0dfd51331 in mainline linux --- sys/dev/pci/drm/radeon/radeon_drv.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/pci/drm/radeon/radeon_drv.c b/sys/dev/pci/drm/radeon/radeon_drv.c index 99fd33bd047..7b88401bedf 100644 --- a/sys/dev/pci/drm/radeon/radeon_drv.c +++ b/sys/dev/pci/drm/radeon/radeon_drv.c @@ -426,13 +426,13 @@ radeon_pci_shutdown(struct pci_dev *pdev) if (radeon_device_is_virtual()) radeon_pci_remove(pdev); -#ifdef CONFIG_PPC64 +#if defined(CONFIG_PPC64) || defined(CONFIG_MACH_LOONGSON64) /* * Some adapters need to be suspended before a * shutdown occurs in order to prevent an error - * during kexec. - * Make this power specific becauase it breaks - * some non-power boards. + * during kexec, shutdown or reboot. + * Make this power and Loongson specific because + * it breaks some other boards. */ radeon_suspend_kms(pci_get_drvdata(pdev), true, true, false); #endif -- 2.20.1