diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-07-19 10:42:28 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2021-07-19 10:42:28 +0000 |
commit | d2bb01d3ce05767f49de164e7eb89f6de62b430a (patch) | |
tree | b8341d8f1c2e8bcc148c521916a65ae985505050 | |
parent | 48726fd23ef4a94a8478a85510aedcb94883e539 (diff) |
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
-rw-r--r-- | sys/dev/pci/drm/radeon/radeon_drv.c | 8 |
1 files 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 |