diff options
| author | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-08-30 16:06:38 -0700 | 
| commit | 1ac731c529cd4d6adbce134754b51ff7d822b145 (patch) | |
| tree | 143ab3f35ca5f3b69f583c84e6964b17139c2ec1 /drivers/dma/ioat/init.c | |
| parent | 07b4c950f27bef0362dc6ad7ee713aab61d58149 (diff) | |
| parent | 54116d442e001e1b6bd482122043b1870998a1f3 (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.6 merge window.
Diffstat (limited to 'drivers/dma/ioat/init.c')
| -rw-r--r-- | drivers/dma/ioat/init.c | 12 | 
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/dma/ioat/init.c b/drivers/dma/ioat/init.c index 5d707ff63554..c4602bfc9c74 100644 --- a/drivers/dma/ioat/init.c +++ b/drivers/dma/ioat/init.c @@ -15,7 +15,6 @@  #include <linux/workqueue.h>  #include <linux/prefetch.h>  #include <linux/dca.h> -#include <linux/aer.h>  #include <linux/sizes.h>  #include "dma.h"  #include "registers.h" @@ -1191,13 +1190,13 @@ static int ioat3_dma_probe(struct ioatdma_device *ioat_dma, int dca)  		ioat_dma->dca = ioat_dca_init(pdev, ioat_dma->reg_base);  	/* disable relaxed ordering */ -	err = pcie_capability_read_word(pdev, IOAT_DEVCTRL_OFFSET, &val16); +	err = pcie_capability_read_word(pdev, PCI_EXP_DEVCTL, &val16);  	if (err)  		return pcibios_err_to_errno(err);  	/* clear relaxed ordering enable */ -	val16 &= ~IOAT_DEVCTRL_ROE; -	err = pcie_capability_write_word(pdev, IOAT_DEVCTRL_OFFSET, val16); +	val16 &= ~PCI_EXP_DEVCTL_RELAX_EN; +	err = pcie_capability_write_word(pdev, PCI_EXP_DEVCTL, val16);  	if (err)  		return pcibios_err_to_errno(err); @@ -1380,15 +1379,11 @@ static int ioat_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)  		if (is_skx_ioat(pdev))  			device->version = IOAT_VER_3_2;  		err = ioat3_dma_probe(device, ioat_dca_enabled); - -		if (device->version >= IOAT_VER_3_3) -			pci_enable_pcie_error_reporting(pdev);  	} else  		return -ENODEV;  	if (err) {  		dev_err(dev, "Intel(R) I/OAT DMA Engine init failed\n"); -		pci_disable_pcie_error_reporting(pdev);  		return -ENODEV;  	} @@ -1411,7 +1406,6 @@ static void ioat_remove(struct pci_dev *pdev)  		device->dca = NULL;  	} -	pci_disable_pcie_error_reporting(pdev);  	ioat_dma_remove(device);  }  |