Unverified Commit 1dafb29c authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!12331 LoongArch: prevent LS7A Bus Master clearing on kexec

parents d007cc92 c879b2f1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -526,7 +526,11 @@ static void pci_device_shutdown(struct device *dev)
	 * If it is not a kexec reboot, firmware will hit the PCI
	 * devices with big hammer and stop their DMA any way.
	 */
#ifdef CONFIG_LOONGARCH
	if (kexec_in_progress && !pci_is_bridge(pci_dev) && (pci_dev->current_state <= PCI_D3hot))
#else
	if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot))
#endif
		pci_clear_master(pci_dev);
}